修改滚动条的样式

    .panel-body{
        overflow: auto;
        padding: 8px 16px;
        border: 1px solid #e8e8e8;
        &::-webkit-scrollbar {
          width:2px;
        }
        &::-webkit-scrollbar-thumb {
          border-radius: 5px;
          -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
          background: #737372;
        }
        &::-webkit-scrollbar-track {
          -webkit-box-shadow: 0;
          border-radius: 0;
          background-color: #fff;
          background-color: rgba(177, 172, 172, 0.5);
          filter: "alpha(opacity=75)";
          -ms-filter: "alpha(opacity=75)";
        }
    }

  

  

posted @ 2019-11-15 14:39  甜甜宝宝  阅读(...)  评论(...编辑  收藏