新手请教div样式问题!!
能否改变div中得滚动条得样式?
例如颜色,宽窄,等等.
如果能得话再css中怎么写?
问题点数:20、回复次数:7Top
1 楼wangrenda(浪人)回复于 2004-09-03 22:31:15 得分 0
upTop
2 楼saucer(思归)回复于 2004-09-03 22:50:29 得分 20
not sure if you can change width, but you can change color,
http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollbarColor.htm
<HTML>
<HEAD>
<STYLE>
.TA {scrollbar-3dlight-color:;
scrollbar-arrow-color:blue;
scrollbar-base-color:;
scrollbar-darkshadow-color:blue;
scrollbar-face-color:chartreuse;
scrollbar-highlight-color:;
scrollbar-shadow-color:}
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="TA" style="overflow:scroll;height:100;width:100">This is text inside a element.<BR>
You can change the color of the scrollbars for this element with the controls below.<BR>
This is text inside a element.<BR>
You can change the color of the scrollbars for this element with the controls below.<BR>
This is text inside a element.<BR>
You can change the color of the scrollbars for this element with the controls below.<BR>
This is text inside a element.<BR>
You can change the color of the scrollbars for this element with the controls below.<BR>
This is text inside a element.<BR>
You can change the color of the scrollbars for this element with the controls below.</DIV>
</BODY>
</HTML>
you probably want to use your own scrollbar, see
http://www.dyn-web.com/dhtml/scroll/Top
3 楼wangrenda(浪人)回复于 2004-09-04 13:50:35 得分 0
那么如何实现再需要时再出现scrollbars哪,
例如包含得控件高>500时才出现??Top
4 楼onlytiancai(谁染枫林醉)回复于 2004-09-04 14:04:28 得分 0
关注一下Top
5 楼wangrenda(浪人)回复于 2004-09-04 15:36:35 得分 0
UPTop
6 楼saucer(思归)回复于 2004-09-04 19:15:27 得分 0
<DIV CLASS="TA" style="overflow:auto;height:100;width:100">Top
7 楼wangrenda123()回复于 2004-09-04 19:32:18 得分 0
多谢Top




