【发布时间】:2016-09-11 06:01:39
【问题描述】:
嗨,如果有人在 iframe 上使用我的网址,我想我的代码检测到 iframe 及其大小 喜欢
<iframe name="test" src="http://mydomin.com/show.php" style="border: 0; position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%" scrolling="no" border="0" frameborder="0"></iframe>
如果有人在 iframe 上使用 mydomin 我的 show.php 文件检测到它,请使用我们在 iframe 上的 url 和他的大小。
它可能吗?请告诉我怎么做
【问题讨论】:
-
如果我正确理解了您的问题,您想在其他网站上调整 iframe 的大小,对吗?如果是这样,你不能这样做......
-
我不确定我是否理解这个问题,但我认为您可能指的是帧破坏的做法?在这种情况下,请阅读:davidwalsh.name/javascript-framebuster
标签: javascript php html css iframe