【发布时间】:2019-07-23 17:18:24
【问题描述】:
我将此 iframe 放在我的网站上。问题是当您单击它在新选项卡中打开的链接时。我想在灯箱中打开它,这样它就不会离开我的网站。我尝试添加 target="_parent" 但它没有用。我正在尝试做的事情可能吗?
<iframe width="500" scrolling="no" height="400" frameborder="0" target="_parent" src="https://www.freemedicarereport.com/comparison_form/aaibsolutions.com?bg_color=9DB3DC&amp;cta_color=E6EBE0&amp;plan=F"> </iframe><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div>
【问题讨论】:
-
不是这方面的专家,但通常您使用 target = self 在当前窗口中打开