我有一个iframe
当网页在滚动内部呼叫时,它不能与Mozilla Firefox
一起使用。Mozilla iframe滚动
它工作正常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不支持这个?
克罗姆将此解释
<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>
函的增加一些高度风格调整滚轮的大小。 但mozzila无法做到这一点。
你能不能使它工作?我遇到同样的问题。 – Joar 2014-03-18 02:17:35
我通过其他机制解决了这个问题,会提供给你。希望你也能解决。 – Devendra 2014-03-19 06:58:16
@Joar尝试使用下面的LInk http://stackoverflow.com/questions/9975810/make-iframe-automatically-adjust-height-according-to-the-contents-without-using/9976309#9976309 – Devendra 2014-03-19 07:10:48