css - webkit-scrollbar 在 chrome 中不起作用
问题描述
我的 css 文件中有以下代码:
.workarea-view-scroll-wrapper::-webkit-scrollbar {
width:0px;
background: transparent;
}
当我在 chrome 中打开页面时,chrome 似乎将这些宽度和背景视为“无效的属性值”。我不确定是什么问题。
解决方案
但是为什么你不去 # (id= ?, 无论如何试试这个:
/* width */
.workarea-view-scroll-wrapper::-webkit-scrollbar {
width: 0.1px !important;
}
/* Track */
.workarea-view-scroll-wrapper::-webkit-scrollbar-track {
background: transparent !important;
}
/* Handle */
.workarea-view-scroll-wrapper::-webkit-scrollbar-thumb {
background: transparent !important;
}
/* Handle on hover */
.workarea-view-scroll-wrapper::-webkit-scrollbar-thumb:hover {
background: transparent !important;
}
推荐阅读
- ios - 当夏令时结束时,在 Date 对象中添加/减少日期会返回错误的日期
- xml - 查找 xmls 之间的差异并列出 Xquery 中的差异
- ios - UITextField 选择器函数没有被调用 iOS Swift
- django - 如何在 Django 用户模型中搜索对象
- sql - SQL查询每天外出考勤
- ssl - Wireshark 无法将数据包识别为 TLS ClientHello
- binary-tree - 二叉树上 BFS 和 DFS 的时间复杂度:为什么是 O(n)?
- scala - Spark数据框过滤器/在多个条件下不起作用
- c - 在C中成功发送和接收文件大小
- regex - VIM 语法高亮匹配