CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  ASP.NET

新手请教div样式问题!!

楼主wangrenda123()2004-09-03 20:33:54 在 .NET技术 / ASP.NET 提问

能否改变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

相关问题

  • 怎么让一个div层的鼠标样式变为自己的样式文件?
  • 如何动态改变一个div块的样式?
  • 请问对于DIV层中的样式表
  • 为什么通过CSS给<DIV>无法加样式?我的系统是win2000 server
  • 样式表
  • 样式表
  • 窗口样式
  • dropdownlist option样式
  • 窗体样式
  • css样式

关键词

  • below
  • element
  • color
  • you can change
  • istext inside

得分解答快速导航

  • 帖主:wangrenda123
  • saucer

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo