HTML frame scrolling 屬性
實例
一個總是顯示滾動條的框架:
<frameset cols="50%,50%">
<frame src="frame_a.htm" scrolling="yes">
<frame src="frame_b.htm">
</frameset>
<frame src="frame_a.htm" scrolling="yes">
<frame src="frame_b.htm">
</frameset>
嘗試一下»
瀏覽器支持
Internet Explorer 8 及之前的版本、Firefox、Opera 都支持scrolling 屬性。
注意: Internet Explorer 9及之後的版本不再支持scrolling屬性。
定義和用法
HTML5不支持<frame>標籤。
scrolling 屬性規定是否在<frame> 中顯示滾動條。
默認地,如果內容大於<frame>,就會在<frame> 中出現滾動條。
語法
<frame scrolling="auto|yes|no">
屬性值
值 | 描述 |
---|---|
auto | 在需要的时候显示滚动条(默认)。 |
yes | 始终显示滚动条(即使不需要)。 |
no | 从不显示滚动条(即使需要)。 |
HTML <frame>標籤