html+css3+jquery轻量级上下滚动条插件

 时间:2024-10-15 13:34:53

1、新建html文档。

html+css3+jquery轻量级上下滚动条插件

3、书写css代码。* { margin: 0; padding: 0; }body { text-align: left; font-size: 12px; }h1 { font-size: 16px; }#scrollbar { width: 520px; margin: 10px auto; }#scrollbar .scrollbar { position: relative; background-position: 0 0; float: right; width: 8px; }#scrollbar .viewport { width: 500px; height: 200px; overflow: hidden; position: relative; }#scrollbar .track { background: #ccc; height: 100%; width: 8px; position: relative; }#scrollbar .thumb { background: #CC0071; height: 20px; width: 8px; cursor: pointer; overflow: hidden; position: absolute; top: 0; }#scrollbar .viewport { width: 500px; height: 200px; overflow: hidden; position: relative; }#scrollbar .overview { list-style: none; position: absolute; left: 0; top: 0; padding: 0; margin: 0; }#scrollbar .overview p { color: #999; line-height: 200%; text-indent: 2em; }#scrollbar2 { margin: 10px auto; width: 520px; }#scrollbar2 .scrollbar { clear: both; height: 8px; margin: 0 0 5px; position: relative; background: #ccc; }#scrollbar2 .track { background: #ccc; height: 8x; position: relative; width: 100%; }#scrollbar2 .thumb { background: #CC0071; cursor: pointer; height: 8px; left: 0; overflow: hidden; position: absolute; }#scrollbar2 .viewport { height: 125px; overflow: hidden; position: relative; width: 520px; }#scrollbar2 .overview { left: 0; list-style: none outside none; margin: 0; padding: 0; position: absolute; top: 0; width: 3000px; }.use { width: 500px; height: auto; margin: 30px auto; color: #999; }.use p { text-align: left; color: #999; line-height: 180%; text-indent: 2em; }

html+css3+jquery轻量级上下滚动条插件

5、代码整体结构。

html+css3+jquery轻量级上下滚动条插件
  • li:first-child 伪类向元素第一个子元素添加css
  • 如何安装最新版64位WebStorm并新建Web项目
  • 如何使用CSS3属性控制文字段内容分列展示
  • java之switch的使用?
  • HTML教程 活动框架(iframe)
  • 热门搜索
    商洛旅游景点大全 春节旅游去哪里 华山旅游网 江西有哪些旅游景点 十堰旅游景点大全 上海旅游人才网 梵蒂冈旅游攻略 关于旅游的ppt 山西旅游职业学院贴吧 旅游鞋女