自定義滾動條

body {
    line-height: 1.6;
    font-family: -apple-system-font,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif;
    color: #353535;
    font-size: 14px;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

@media (-webkit-max-device-pixel-ratio: 1){
  
::-webkit-scrollbar { width: 6px; height: 6px; }
 
}


@media (-webkit-max-device-pixel-ratio: 1)
{html

  ::-webkit-scrollbar-thumb {
    background-color: #c2c2c2;
    background-clip: padding-box;
    min-height: 28px;
   }web

}app

 

@media (-webkit-max-device-pixel-ratio: 1)
{spa

  ::-webkit-scrollbar-track-piece {
    background-color: #fff;
   }code

}htm

相關文章
相關標籤/搜索