我正在 iframe 窗口中从另一个站点加载内容,但是当我选择任何链接时,它会在窗口中打开父站点。我需要在同一个 iframe 中打开所有内容吗?如何解决?
代码:
<div class="calculator" style="display: block;width: 900px; height: 440px; overflow: hidden; ">
<iframe src="http://www.avtosojuz.ua/technical_service/" align="middle" width="962" height="100%" scrolling="no" frameborder="0" style="margin-top: -440px;
"></iframe>
</div>
最佳答案
这个问题之前有人问过:How to open a iframe link within the same iframe? .似乎在引用外部网站时无法控制这一点。
关于javascript - iframe 在父窗口外加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25514841/