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

    // Scrollbars
    .no-overlay-scrollbar {
      ::-webkit-scrollbar {
         8px;
        height: 8px;
      }
    
      ::-webkit-scrollbar:hover {
        height: 8px;
      }
    
      ::-webkit-scrollbar-button:start:decrement,
      ::-webkit-scrollbar-button:end:increment {
        display: none;
      }
      ::-webkit-scrollbar-button:horizontal:decrement {
        display: none;
      }
      ::-webkit-scrollbar-button:horizontal:increment {
        display: none;
      }
      ::-webkit-scrollbar-button:vertical:decrement {
        display: none;
      }
      ::-webkit-scrollbar-button:vertical:increment {
        display: none;
      }
      ::-webkit-scrollbar-button:horizontal:decrement:active {
        background-image: none;
      }
      ::-webkit-scrollbar-button:horizontal:increment:active {
        background-image: none;
      }
      ::-webkit-scrollbar-button:vertical:decrement:active {
        background-image: none;
      }
      ::-webkit-scrollbar-button:vertical:increment:active {
        background-image: none;
      }
      ::-webkit-scrollbar-track-piece {
        background-color: transparent;
      }
    
      ::-webkit-scrollbar-thumb:vertical {
        height: 50px;
        background: -webkit-gradient(
          linear,
          left top,
          right top,
          color-stop(0%, $scrollbarBackground),
          color-stop(100%, $scrollbarBackground2)
        );
        border: 1px solid $scrollbarBorder;
        border-top: 1px solid $scrollbarBorder;
        border-left: 1px solid $scrollbarBorder;
      }
    
      ::-webkit-scrollbar-thumb:horizontal {
        width: 50px;
        background: -webkit-gradient(
          linear,
          left top,
          left bottom,
          color-stop(0%, $scrollbarBackground),
          color-stop(100%, $scrollbarBackground2)
        );
        border: 1px solid $scrollbarBorder;
        border-top: 1px solid $scrollbarBorder;
        border-left: 1px solid $scrollbarBorder;
      }
    }
  • 相关阅读:
    WebAPI实现移动端上传头像接口
    WebAPI发布IIS报错问题
    EF 解除属性映射到数据库中 NotMappedAttribute无效解决办法
    更改MVC注册Areas的顺序,掌控Areas的运作
    js判断字符串是否为JSON格式
    docker commit命令
    强大的strace命令用法详解
    Openshift概念
    如何在生产环境使用Btrace进行调试
    kill-9 kill-15
  • 原文地址:https://www.cnblogs.com/zhizhi0810/p/15060701.html
Copyright © 2011-2022 走看看