zoukankan      html  css  js  c++  java
  • 优化浏览器进度条(兼容性不是很好在谷歌浏览器生效)

    *定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/
    
    ::-webkit-scrollbar {
        width: 16px;
        height: 16px;
        background-color: #f5f5f5;
    }
    
    
    /*定义滚动条的轨道,内阴影及圆角*/
    
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        border-radius: 10px;
        background-color: #f5f5f5;
    }
    
    
    /*定义滑块,内阴影及圆角*/
    
    ::-webkit-scrollbar-thumb {
        height: 20px;
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px#ebebeb;
        background-color: #555;
    }
    
    ::-webkit-scrollbar-corner {
        background-color: transparent;
    }
    
    ::-webkit-scrollbar-button {
        width: 0;
        height: 0;
        display: none;
    }
    
    ::-webkit-scrollbar-thumb {
        width: 7px;
        background-color: #999999;
        border-radius: 7px;
    }
    
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }
    
    ::-webkit-scrollbar-track {
        width: 15px;
    }
    
    ::-webkit-scrollbar:hover {
        background-color: transparent;
    }
    /*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸 end*/
  • 相关阅读:
    redis
    装饰器之functools与before_request
    版本
    git常用命令
    支付宝支付示例
    ContentType
    vue的基础使用
    es6简单介绍
    解析器、路由控制、分页与响应器
    元素水平居中的方法
  • 原文地址:https://www.cnblogs.com/lst619247/p/14291369.html
Copyright © 2011-2022 走看看