<style type="text/css">
.scroll {
width: 600px; /*宽度*/
height: 200px; /*高度*/
color: ; /*颜色*/
font-family:黑体; /*字体*/
padding-left: 10px; /*层内左边距*/
padding-right: 10px; /*层内右边距*/
padding-top: 10px; /*层内上边距*/
padding-bottom: 10px; /*层内下边距*/
overflow-x: scroll; /*横向滚动条(scroll:始终出现;auto:必要时出现;具体参考CSS
文档)*/
overflow-y: scroll; /*竖向滚动条*/
scrollbar-face-color: #D4D4D4; /*滚动条滑块颜色*/
scrollbar-hightlight-color: #ffffff; /*滚动条3D界面的亮边颜色*/
scrollbar-shadow-color: #919192; /*滚动条3D界面的暗边颜色*/
scrollbar-3dlight-color: #ffffff; /*滚动条亮边框颜色*/
scrollbar-arrow-color: #919192; /*箭头颜色*/
scrollbar-track-color: #ffffff; /*滚动条底色*/
scrollbar-darkshadow-color: #ffffff; /*滚动条暗边框颜色*/
}
</style>
如图:
--------------------------------------------------------------------------------------------
调用如下:
<html>
<body>
<div class="scroll">
<!--在此添加想要显示的内容 -->
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
</div>
</body>
</html>
================================================================
一下是简单的滚动条
<DIV style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; SCROLLBAR-FACE-COLOR: #889b9f; SCROLLBAR-HIGHLIGHT-COLOR: #c3d6da; OVERFLOW: auto;WIDTH: 445px; SCROLLBAR-SHADOW-COLOR: #3d5054; SCROLLBAR-3DLIGHT-COLOR: #3d5054; SCROLLBAR-ARROW-COLOR: #ffd6da;SCROLLBAR-DARKSHADOW-COLOR: #85989c; HEIGHT: 200px" align=center> <P align=left>文字内容啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</P> </DIV>