当前第2页 返回上一页
或者如果需要修改滚动条样式使用下面样式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <style>
div{
font-size: 15px;
margin-bottom: 20px;
}
.content{
height: 300px;v
background-color: cadetblue;
color: antiquewhite;
overflow-x: hidden;
overflow-y: scroll;
}
.content::-webkit-scrollbar{
width:8px;
height:8px
}
.content::-webkit-scrollbar-track{
-webhit-box-shadow: inset 0 0 5px transparent;
border-radius:0;
background:transparent;
}
.content::-webkit-scrollbar-thumb{
border-radius:5px;
-webkit-box-shadow:inset 0 0 5px #242B56;
background:#242B56;
}
p{
margin-bottom: 30px;
font-size: 17px;
color: #333;
}
</style>
|
【推荐学习:css视频教程】
以上就是css怎么隐藏div滚动条的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
css不透明度怎么设置
css如何关闭浮动
css如何换行
css外部样式表有两种引用方法,分别是什么
一分钟了解css的主要功能
利用css实现一个简单的对号效果
css实现聚光灯效果的代码分享
css 布局之两端布局实现
css怎么设置间距
jquery怎么改变css样式
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css怎么隐藏div滚动条