① 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的值。