久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css如何超出顯示滾動條

      css超出顯示滾動條的方法:1、使用三個容器包圍起來,不需要計算滾動條的寬度;2、 自定義滾動條的偽對象選擇器【::webkit-scrollbar】。

      css如何超出顯示滾動條

      本教程操作環(huán)境:windows7系統(tǒng)、css3版,DELL G3電腦。

      css超出顯示滾動條的方法:

      方法1:使用三個容器包圍起來,不需要計算滾動條的寬度

      這個方法相對于方法1多加了一個盒子,將內(nèi)容限制在盒子里面了,這樣就看不到滾動條的同時也可以滾動。

       <div class="outer-container">      <div class="inner-container">         <div class="content">             ......         </div>      </div>  </div> .element, .outer-container {   width: 200px;   height: 200px; } .outer-container {   border: 5px solid purple;   position: relative;   overflow: hidden; } .inner-container {   position: absolute;   left: 0;   overflow-x: hidden;   overflow-y: scroll; } .inner-container::-webkit-scrollbar {   display: none; }

      方法2:自定義滾動條的偽對象選擇器::webkit-scrollbar

      這種方法不兼容IE,做移動端的可以使用。

      1 .element::-webkit-scrollbar { width: 0 !important }   IE 10+ 1 .element { -ms-overflow-style: none; }   Firefox 1 .element { overflow: -moz-scrollbars-none; }

      詳情:

        以下為自定義webkit滾動條樣式

      使用谷歌Chrome瀏覽器的最新版本,滾動條樣式已經(jīng)是非常漂亮了。這個webkit-scrollbar僅適用于webkit內(nèi)核。

      webkit屬性

      ::-webkit-scrollbar { /* 1 */ } ::-webkit-scrollbar-button { /* 2 */ } ::-webkit-scrollbar-track { /* 3 */ } ::-webkit-scrollbar-track-piece { /* 4 */ } ::-webkit-scrollbar-thumb { /* 5 */ } ::-webkit-scrollbar-corner { /* 6 */ } ::-webkit-resizer { /* 7 */ }

      相關(guān)教程推薦:CSS視頻教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號