lka*_*htz 1 html iframe firefox
原始链接:http://www.webdeveloper.com/forum/showthread.php? 2355680-FF-has-problems-with-IFrames-scrolling-and- height
我一直是FireFox的粉丝,但现在我开始讨厌它了.我正在改变我的页面以获得IFrame,现在FireFox是一个痛苦的屁股,而IE就像一个魅力!
我的iframe如下:代码:
<iframe id="leftiframe" src="<?=$page?>" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%;">
</iframe>
Run Code Online (Sandbox Code Playgroud)
但FireFox继续在我的IFrame中向我展示Scrollbars,在那里scrolling=no.为什么FireFox不理解我不想要滚动条.此外,在FireFox中未正确报告IFrame的大小.不offsetHeight,clientHeight,scrollHeight或什么的.
HTML5中不支持iframe滚动属性.您需要使用CSS删除滚动条.
#leftiframe {
overflow: hidden;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3917 次 |
| 最近记录: |