fang5566
管理员
管理员
  • UID3719
  • 注册日期2005-03-07
  • 最后登录2024-05-09
  • 发帖数18483
  • 经验4837枚
  • 威望5点
  • 贡献值4316点
  • 好评度1116点
  • 社区居民
  • 最爱沙发
  • 忠实会员
  • 终身成就
阅读:5208回复:11

[样式] Autohiding Translucent Scrollbars(自动隐藏滚动条)

楼主#
更多 发布于:2013-12-07 20:18
http://userstyles.org/styles/95820/autohiding-translucent-scrollbars

之前有人问的CSS样式,自动隐藏滚动条,鼠标移上去以后显示出来,并且为半透明,去除滚动条的上下箭头。图就不给了。如果没安装Stylish,可以添加到userChrome.css里面,代码如下:

/* Hides scrollbar */
scrollbar[orient="vertical"]:not(:hover),
scrollbar[orient="horizontal"]:not(:hover) {
    opacity: 0 !important;
}
   
/* Hides scrollbar buttons */
scrollbar scrollbarbutton {
    visibility: collapse !important;
}
   
/* Removes whitespace and allows scrollbar to appear */
 scrollbar {
    position: relative !important;
    -moz-appearance: none !important;
    background: none !important;
    z-index: 9999 !important;
}
   
/* Appearance of scrollbar thumb */
 scrollbar thumb {
    position: relative !important;
    -moz-appearance: none !important;
    background: rgba(110,110,110, .6) !important;
    border: 0 !important;
}
   
/* Color of scrollbar thumb on mouseover */
 scrollbar thumb:hover {
    background: rgba(110,110,110,.8) !important;
}
   
/* Color of scrollbar when clicked */
 scrollbar thumb:active {
    background: rgba(110,110,110, 1) !important;
}
   
/* Scrollbar sizes */
 scrollbar[orient="vertical"] {
    margin-left: -10px !important;
}
 scrollbar[orient="horizontal"] {
    margin-top: -10px !important;
}

最新喜欢:

wlqdevilwlqdev... haoeverhaoeve... cmlxcmlx
Firefox More than meets your experience
游客

返回顶部