久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      實(shí)現(xiàn)方法:1、利用“<div class="pre-scrollable">”排版類(lèi)實(shí)現(xiàn)滾動(dòng)條;2、利用“<div style="overflow:scroll;width:寬度;height:高度;">”實(shí)現(xiàn)滾動(dòng)條。

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      本教程操作環(huán)境:Windows10系統(tǒng)、bootstrap3.3.7版、DELL G3電腦

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      一:添加bootstrap樣式增加滾動(dòng)條

      其實(shí)只要在 相關(guān)模塊的 class屬性中,再加上 pre-scrollable 即可。

      例如是在<div >中添加pre-scrollable:

      <div class="pre-scrollable">

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      二:通過(guò)設(shè)置overflow增加滾動(dòng)條

      <div style=" overflow:scroll; width:400px; height:400px;”></div>

      記住寬和高一定要設(shè)置噢,否則不成的,不過(guò)在不超出時(shí),會(huì)有下面的滾動(dòng)條,所以不是最好的選擇.

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      <div style=" overflow-y:auto; overflow-x:auto; width:400px; height:400px;”></div>

      記住寬和高一定要設(shè)置噢,否則不成的.這樣比較好的是,在寬和高不超出時(shí),只是一條線.

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      三:直接為div指定overflow屬性為auto即可,但是必須指定div的高度,如下:

      <div style="position:absolute; height:400px; overflow:auto"></div>

      bootstrap怎么實(shí)現(xiàn)滾動(dòng)條

      如果要出現(xiàn)水平滾動(dòng)條,則: overflow-x:auto

      同理,垂直滾動(dòng)條為: overflow-y:auto

      如果該div被包含在其他對(duì)象例如td中,則位置可設(shè)為相對(duì):position:relative

      三:隱藏滾動(dòng)條

      {overflow: hidden !important;} 或者 {overflow-x: hidden; overflow-y: hidden;}可分別隱藏x軸或y軸的滾動(dòng)條

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