2013-04-18 84 views
0

我有一个iframe当网页在滚动内部呼叫时,它不能与Mozilla Firefox一起使用。Mozilla iframe滚动

它工作正常Internet ExplorerGoogle 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无法做到这一点。

+0

你能不能使它工作?我遇到同样的问题。 – Joar 2014-03-18 02:17:35

+0

我通过其他机制解决了这个问题,会提供给你。希望你也能解决。 – Devendra 2014-03-19 06:58:16

+0

@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

回答

0

尝试使用overflow: auto;我很奇怪,为什么这是工作与IE和Chrome

+0

无法正常工作,我试过了。 – Devendra 2013-04-18 07:21:02

+0

我需要边框滚动条不在iframe内。所以这个解决方案并非必需 – Devendra 2013-04-18 07:32:40

0

尝试把像素后的宽度和高度值

像这样:宽=“780px”

+0

不能正常工作.... – Devendra 2013-04-19 09:43:20

+0

尝试设置样式内的宽度和高度 – 2013-04-19 10:02:41