【发布时间】:2014-04-17 23:11:16
【问题描述】:
我需要创建具有固定(绝对)位置的 iframe。 我用过
<iframe src="http://www.whatismyreferer.com" width="300" height="300" style="position: fixed; left: 100; top: 10"></iframe>
但它不起作用:( 我的 iframe 显示样式“左”和“上”为 0
那么问题是如何在页面上创建具有固定位置的 iframe 并正确设置 left 和 top 参数?
问候!
【问题讨论】:
-
在这里找到可能的重复项:stackoverflow.com/questions/4195971/…
-
单位。
10没有任何意义。10px确实如此。