Chrome 最近更新到(版本 33.0.1750.117 m),我正在使用自定义滚动条,因为我讨厌那个白色的滚动条。此更新已发布,此代码不再影响此浏览器。
::-webkit-scrollbar {height: 12px!important;width: 12px!important;background: -webkit-linear-gradient(40deg , #000000 , #1e1e1e , #000000 100%)!important;}
::-webkit-scrollbar-thumb {background-color: #840000!important;border-radius: 16px!important;}
::-webkit-scrollbar-corner {background: #0000!important;}
任何人都知道他们做了什么,最重要的是如何让它再次工作。谢谢 :)
最佳答案
这是在 Google Chrome 中恢复自定义 CSS 的解决方法:
CustomCss
manifest.json
的文件。具有以下内容:{
"name": "My Style Sheet",
"content_scripts": [
{
"matches": ["*://*/*"],
"css": ["Custom.css"]
}
],
"version": "1.0.0",
"description": "User StyleSheet replacement",
"manifest_version": 2
}
Custom.css
用户样式表文件夹中的文件。 来源:Comment #4 on Chromium Issue 340072
关于google-chrome - Google Chrome Custom.css webkit-scrollbar 不再有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21948850/