久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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è)置banner圖自適應(yīng)

      在css中,可以使用“background-size”設(shè)置banner圖自適應(yīng),語(yǔ)法“background-size:cover”;其中cover是指把背景圖像擴(kuò)展至足夠大,以使背景圖像完全覆蓋背景區(qū)域。

      css如何設(shè)置banner圖自適應(yīng)

      本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

      //test.css .index-banner-top {     width: 100%;     background: url(../imgs/guanyu.png) no-repeat center center;     height: 210px;     background-size:cover } @media only screen and (max-width: 640px){      .index-banner-top {         height: 100px;     } }
      //test.html <p class="index-banner-top"></p>

      電腦端顯示:

      css如何設(shè)置banner圖自適應(yīng)

      手機(jī)端顯示:

      css如何設(shè)置banner圖自適應(yīng)

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