修改捲軸樣式的方法

來源:互聯網
上載者:User
這次給大家帶來修改捲軸樣式的方法,修改捲軸樣式的注意事項有哪些,下面就是實戰案例,一起來看一下。

支援360極速 chrome firfox 不支援ie9

/*捲軸樣式*/::-webkit-scrollbar {/*捲軸整體樣式*/    width: 6px!important;;     /*高寬分別對應橫豎捲軸的尺寸*/    height: 6px!important;;    background: #ffffff!important;;    cursor: pointer!important;}::-webkit-scrollbar-thumb {/*捲軸裡面小方塊*/    border-radius: 5px!important;    -webkit-box-shadow: inset 0 0 5px rgba(240,240,240,.5)!important;;    background: rgba(95,168,255,0.8)!important;;    cursor: pointer!important;}::-webkit-scrollbar-track {/*捲軸裡面軌道*/    -webkit-box-shadow: inset 0 0 5px rgba(240,240,240,.5)!important;;    border-radius: 0!important;;    background: rgba(240,240,240,0.5)!important;;    cursor: pointer!important;}

相信看了本文案例你已經掌握了方法,更多精彩請關注php中文網其它相關文章!

相關閱讀:

table tr th 及table tr td 字型太多超出怎樣用CSS解決

讓頁面動起來的WOW.js

怎樣設定預設開啟360極速模式

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.