2010-10-23 46 views
-1

我需要做一個HTML框架集,我看到垂直滾動不顯示在IE8上,但它在Firefox中完美。HTML框架垂直滾動在IE8上不起作用?

爲什麼垂直滾動不起作用在IE瀏覽器?我能做些什麼來做到這一點,就像在Firefox中一樣?

的代碼是這樣的:

<frameset rows="121,*" cols="*" framespacing="3" frameborder="yes" border="3" bordercolor="#009933"> 
    <frame src="arriba.html" name="topFrame" scrolling="NO" noresize > 

    <frameset rows="*" cols="135,*" framespacing="3" frameborder="yes" border="3" bordercolor="#009933"> 
    <frame src="izquierda.html" name="leftFrame" scrolling="YES" noresize> 
    <frame src="centro.html" name="mainFrame" scrolling="YES" noresize> 
    </frameset> 
</frameset> 

滾動= 「是」 從izquierda.html和cenhtro.html不起作用。

回答

2

IE8有滾動=「是」的問題。使用CSS來代替,適用於centro.html和izquierda.html的身體標記:

<style type="text/css"> 
body { 
    overflow: scroll; 
    /* In IE and CSS 3 you can even use these: */ 
    overflow-x: scroll; /* Horizontal */ 
    overflow-y: scroll; /* Vertical */ 
} 

</style> 

我想我並不需要補充一點,你不應該使用的幀結構都沒有。

+0

它的工作原理!謝謝!!! – NullPointerException 2010-10-23 11:38:12

+0

@ Karel Petranek:我正在研究centos。滾動條在mozila和chrome瀏覽器中不起作用。怎麼辦? – mkHun 2015-01-26 05:27:15