zoukankan      html  css  js  c++  java
  • 滚动条样式

    /*半透明的滚动条*/
    ::-webkit-scrollbar/*整体部分*/
    {
    width: 13px;
    height:13px;
    border: 1px solid #6E6F71;
    }
    
    ::-webkit-resizer{
    background: transparent;
    }
    
    ::-webkit-scrollbar-corner{
    background: transparent;
    }
    
    ::-webkit-scrollbar-track/*滑动轨道*/
    {
    background: transparent;
    }
    ::-webkit-scrollbar-thumb:vertical/*滑块*/
    {
    border-width: 2px;
    border-image: url('../images/scrollbar-border.png') 2 repeat;
    background: url("../images/scrollbar-thumb-center-vertical.png") center no-repeat,-webkit-linear-gradient(top,#999 20%, #777 70%) center no-repeat;
    }
    ::-webkit-scrollbar-thumb:horizontal/*滑块*/
    {
    border-width: 2px;
    border-image: url('../images/scrollbar-border.png') 2 repeat;
    background: url("../images/scrollbar-thumb-center-horizontal.png") center no-repeat,-webkit-linear-gradient(top,#999 20%, #777 70%) center no-repeat;
    }
    
    ::-webkit-scrollbar-thumb:hover/*滑块效果*/
    {
    /*opacity: 0.5;*/
    }
    
    ::-webkit-scrollbar-thumb:active/*滑块效果*/
    {
    /*opacity: 1;*/
    }
    /*半透明的滚动条*/
    ::-webkit-scrollbar/*整体部分*/
    {
    width: 10px;
    height:10px;
    }
    ::-webkit-scrollbar-track/*滑动轨道*/
    {
    -webkit-box-shadow: inset 0 0 5px rgba(11,64,71,1.0);
    border-radius: 0px;
    background: rgba(11,64,71,1.0);
    }
    ::-webkit-scrollbar-thumb/*滑块*/
    {
    /*border-radius: 5px;*/
    -webkit-box-shadow: inset 0 0 5px rgba(9,128,116,0.2);
    background: rgba(9,128,116,0.8);
    }
    ::-webkit-scrollbar-thumb:hover/*滑块效果*/
    {
    /*border-radius: 5px;*/
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: rgba(9,128,116,0.6);
    }
    ::-webkit-scrollbar-thumb:active/*滑块效果*/
    {
    /*border-radius: 5px;*/
    -webkit-box-shadow:
    }
  • 相关阅读:
    锂电池充电!
    触电
    记录一次调试过程中烧毁电脑主板的经历!
    如何计算一个CPU的MIPS
    铜线的载流能力问题。
    用格西烽火串口助手制作程控命令协议!
    从qt编程看内存分区。
    贴片LED用法
    RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
    uboot学习——基于S3C2440的u-boot-1.1.6分析(一)
  • 原文地址:https://www.cnblogs.com/as3lib/p/4865768.html
Copyright © 2011-2022 走看看