宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页

  2. Warning: Undefined array key 0 in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 30

    Warning: Attempt to read property "term_id" on null in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 30

    Warning: Undefined property: WP_Error::$term_id in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 35

    Warning: Undefined property: WP_Error::$name in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 37

    Warning: Undefined property: WP_Error::$parent in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 38
  3. 正文

更改滚动条样式 细细的滚动条样式

2022年11月16日 1260点热度 0人点赞 0条评论

1.改变浏览器默认的滚动条样式

::-webkit-scrollbar-track-piece { //滚动条凹槽的颜色,还可以设置边框属性
background-color:#f8f8f8;
}
::-webkit-scrollbar {//滚动条的宽度
width:9px;
height:9px;
}
::-webkit-scrollbar-thumb {//滚动条的设置
background-color:#dddddd;
background-clip:padding-box;
min-height:28px;
}
::-webkit-scrollbar-thumb:hover {
background-color:#bbb;
}

2.给某个div .test1加滚动条样式

.test1::-webkit-scrollbar {
width: 8px;
}
.test1::-webkit-scrollbar-track {
background-color:red;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius:2em;
}
.test1::-webkit-scrollbar-thumb {
background-color:green;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius:2em;
}

原文连接:点击进入

标签: 暂无
最后更新:2022年11月16日

小渔民

这个人很懒,什么都没留下

点赞

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2