久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      css如何設(shè)置元素高度自適應(yīng)

      css設(shè)置元素高度自適應(yīng)的方法是采用元素定位及padding的方式使特定元素高度自適應(yīng),代碼為【position: relative;padding: 60px 0 0;】。

      css如何設(shè)置元素高度自適應(yīng)

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

      css設(shè)置元素高度自適應(yīng)的方法:

      可以采用元素定位 + padding 的方式使特定元素高度自適應(yīng)。

      css 樣式:

      html,body{     height:100%;     margin:0;     padding:0;   } .wrap {     height:100%;     box-sizing: border-box ;      position: relative;     padding: 60px 0 0;    } .header {     height: 60px;     position: absolute;     top: 0;     width: 100%; } .content {     height:100%; }

      html:

      <div class="wrap">         <div class="header">             我是頭部信息         </div>         <div class="content">             我要高度自適應(yīng)         </div>     </div>

      效果如下:

      css如何設(shè)置元素高度自適應(yīng)

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

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