我正在写一个css (使用手写笔)来匹配我的火狐的深色皮肤。
但是我只想要主滚动条改变它的颜色,但是我不希望页面中的每个滚动条都改变。
我能做些什么来只选择css中的主滚动条?
html {
scrollbar-color: #6c6c6c #000; /* thumb and track color */
scrollbar-width: thin;
}
我尝试让jQuery处理一个菜单,而CSS则在调整浏览器大小时处理窗口背景。
所以jQuery做了这样的事情:
if ( $(window).innerWidth() < mediaQueries['small']) {
// (where 'small' would be 966)
// Perform jQuery stuff on a menu ul
}
CSS的内容是这样的:
@media all and (max-width: 966px) {
body {
background: url(smallbac