overflow捲軸樣式設定,ie和webkit核心

來源:互聯網
上載者:User

標籤:ace   url   display   overflow   ack   ble   round   無效   win   

 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4     <meta charset="UTF-8"> 5     <title>Document</title> 6      7     <style> 8         body{ 9             /*ie下修改捲軸樣式,在webkit核心瀏覽器無效*/10             /*scrollbar-arrow-color: #f4ae21;三角箭頭的顏色 11             scrollbar-face-color: #333; *立體捲軸的顏色12             scrollbar-3dlight-color: #666; 立體捲軸亮邊的顏色13             scrollbar-highlight-color: #666; 捲軸空白部分的顏色14             scrollbar-shadow-color: #999; 立體捲軸陰影的顏色 15             scrollbar-darkshadow-color: #666; 立體捲軸強陰影的顏色 16             scrollbar-track-color: #666; 立體捲軸背景顏色17             scrollbar-base-color:#f8f8f8; 捲軸的基本顏色18             Cursor:url(mouse.cur);自訂個性滑鼠*/19         }20         div{21             height:100px;22             width:200px;23             overflow:auto;24         }25         td{26             display:inline-block;27             margin:10px 20px;28         }29         /*webkit核心瀏覽器修改捲軸樣式*/30         ::-webkit-scrollbar {  31             width: 8px;  32         }  33         ::-webkit-scrollbar-thumb {  34             border-radius: 10px;  35             background: rgba(0,0,0,0.2);   36         }  37         ::-moz-scrollbar {  38             width: 8px;  39         }  40         ::-moz-scrollbar-thumb {  41             border-radius: 10px;  42             background: rgba(0,0,0,0.2);   43         }  44         /*當前視窗未啟用的情況下*/ 45         ::-webkit-scrollbar-thumb:window-inactive {  46             background: rgba(0,0,0,0.1);   47         }  48         /*hover到捲軸上*/  49         ::-webkit-scrollbar-thumb:vertical:hover{  50             background-color: rgba(0,0,0,0.3);  51         }  52         /*捲軸按下*/  53         ::-webkit-scrollbar-thumb:vertical:active{  54             background-color: rgba(0,0,0,0.7);  55         }  56     </style>57 </head>58 <body>59     <div>60         <table>61             <tr>62                 <td>12345</td>63                 <td>12345</td>64             </tr>65             <tr>66                 <td>12345</td>67                 <td>12345</td>68             </tr>69             <tr>70                 <td>12345</td>71                 <td>12345</td>72             </tr>73             <tr>74                 <td>12345</td>75                 <td>12345</td>76             </tr>77         </table>78     </div>79 </body>80 </html>

如有錯誤,請您指正!

overflow捲軸樣式設定,ie和webkit核心

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.