我的javascript嵌入在iframe中,我无法访问正在实现它的主html。
基本上,这就是正在发生的事情:
<html>
<head>
</head>
<body>
<iframe id='1' src='myscript.js'/>
</body>
</html>
现在,我想要一种方法来查看iframe与整个html的关系,和/或与浏览器窗口本身的关系,就像我一样: How to tell if a DOM element is visible in the current viewport?
答案 0 :(得分:0)
这在很大程度上取决于你如何设定位置。您是否可以分享任何代码,以便我们了解如何操作?
干杯