0

我有一个iframe,当网页在滚动中调用时,它不工作Mozilla Firefox

它在Internet Explorer和中运行良好Google Chrome

<iframe name="contentFrame" id="contentFrame" SRC="<c:out value='${CONTENT_FRAME_URL}'/>" margin width=0 marginheight=0 

 vspace=0 hspace=0 scrolling=no WIDTH=780 height="350" frameborder="0" allowtransparency="true"
        style="position:absolute;overflow:hidden;border:none;">
</iframe>

为什么 Mozilla firefox 不支持这个?

crom 将此解释为

<iframe name="contentFrame" id="contentFrame" src="empty.jsp" marginwidth="0" marginheight="0" scrolling="no" width="780" height="180%" frameborder="0" allowtransparency="true" style="position: absolute; overflow: hidden; border: none; height: 1003px;">

                    </iframe>

atomatic 在样式中添加一些高度以调整滚动条的大小。但 mozzila 无法做到这一点。

4

2 回答 2

0

尝试使用overflow: auto;我想知道为什么这适用于 IE 和 chrome

于 2013-04-18T07:18:43.447 回答
0

尝试将 px 放在宽度和高度值之后

像这样:width="780px"

于 2013-04-19T09:31:55.860 回答