久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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怎樣讓背景圖片不平鋪

      在css中,可以利用“background-repeat”屬性讓背景圖片不平鋪,該屬性用于設(shè)置背景圖片的平鋪模式,只需要給元素添加“background-repeat:no-repeat;”樣式,即可讓背景圖片不平鋪顯示。

      css怎樣讓背景圖片不平鋪

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

      css怎樣讓背景圖片不平鋪

      在css中可以利用background-repeat屬性設(shè)置背景圖片不平鋪,background-repeat 屬性設(shè)置是否及如何重復(fù)背景圖像。默認(rèn)地,背景圖像在水平和垂直方向上重復(fù)。background-repeat 屬性定義了圖像的平鋪模式。

      其中屬性值如下圖:

      css怎樣讓背景圖片不平鋪

      下面我們通過(guò)示例來(lái)看一下:

      <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <meta http-equiv="X-UA-Compatible" content="ie=edge">     <title>Document</title>     <style>     body{  background-image: url(1118.02.png); }</style> </head> <body>      </body> </html>

      輸出結(jié)果:

      css怎樣讓背景圖片不平鋪

      添加不平鋪樣式之后:

      <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <meta http-equiv="X-UA-Compatible" content="ie=edge">     <title>Document</title>     <style>     body{  background-image: url(1118.02.png); background-repeat: no-repeat; }</style> </head> <body> </body> </html>

      輸出結(jié)果:

      css怎樣讓背景圖片不平鋪

      (學(xué)習(xí)視頻分享:css視頻教程)

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