① html 自動顯示橫向滾動條
overflow:scroll; /*任何時候都強制顯示滾動條*/
overflow:auto; /*需要的時候會出現滾動條*/
overflow-x:auto; /*控制X方向的滾動條*/
overflow-y:auto; /*控制Y方向的滾動條*/
示例:
<HTML>
<HEAD>
<TITLE>測試表格內的滾動條</TITLE>
</HEAD>
<BODY>
<table>
<tr>
<td>表格內的滾動條:</td>
<td>
<div id="wins"
style="position:absolute;height:200;width:200;overflow:auto;background:#EEEEEE;">
<p> </p>
<p> </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
<p>ppppppppppppppppppppppppp </p>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<span onmouseover='scrollb=setInterval("wins.scrollLeft-=10",100)'
onmouseout=clearInterval(scrollb)>向左</span>
<span onmouseover='scrollb=setInterval("wins.scrollTop-=10",100)'
onmouseout=clearInterval(scrollb)>向上</span>
<span onmouseover='scrollb=setInterval("wins.scrollLeft+=10",100)'
onmouseout=clearInterval(scrollb)>向右</span>
<span onmouseover='scrollb=setInterval("wins.scrollTop+=10",100)'
onmouseout=clearInterval(scrollb)>向下</span>
</td>
</tr>
</table>
</BODY>
</HTML>
② HTML中,滾動代碼是什麼怎麼設置
<marquee scrollAmount=2 width=300>滾動字幕</marquee>
各參數詳解:
③ html 怎麼讓網頁強制出現瀏覽器的滾動條
可以使用css的overflow標簽實現讓網頁強制出現瀏覽器的滾動條。
具體步驟如下:
需要准備的材料分別是:電腦、瀏覽器、ultraedit。
1、在ue編輯器中新建一個空白的html文件,css文件。
④ html裡面的滾動條代碼怎麼寫啊
<divid="bar">
<spanid="topBtn"><iid="top"></i></span>
<divid="block-box">
<spanid="block"></span>
</div>
<spanid="downBtn"><iid="down"></i></span>
</div>
CSS樣式:有點丑,湊活著看吧:
#bar{position:relative;width:20px;height:380px;float:right;background:#ccc;border-radius:5px;display:none;}
#topBtn{width:20px;height:20px;position:absolute;border-radius:5px;}
#top{border:7pxdashedtransparent;border-bottom:7pxsolidyellow;position:absolute;top:0px;left:3px;}
#downBtn{width:20px;height:20px;position:absolute;border-radius:5px;bottom:0px;left:0px}
#down{border:7pxdashedtransparent;border-top:7pxsolidyellow;position:absolute;bottom:0px;left:3px;}
#block-box{width:20px;height:340px;border-radius:5px;position:absolute;top:20px;left:0px;}
#block{width:20px;border-radius:5px;position:absolute;background:red;height:0px;}
⑤ HTML下的table滾動實現
1、首先打開myeclipse獲取idea這樣的編輯器,在編輯器中寫一個table標簽,這里給出table的值。