我有一个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不支持这个?
crome将此解释为
<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>发布于 2013-04-18 15:18:43
尝试使用overflow: auto;,我想知道为什么它适用于IE和chrome
发布于 2013-04-19 17:31:56
尝试将px放在width和height值之后
像这样: width="780px“
https://stackoverflow.com/questions/16076742
复制相似问题