久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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怎樣給按鈕設(shè)置背景圖片

      在css中,可以利用“background-image”屬性給按鈕設(shè)置背景圖片,該屬性的作用是設(shè)置元素的背景圖像,只需要給按鈕元素添加“background:url("圖片路徑");”樣式即可。

      css怎樣給按鈕設(shè)置背景圖片

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

      css怎樣給按鈕設(shè)置背景圖片

      在css中,可以利用background-image屬性來設(shè)置按鈕的背景圖片,該屬性為元素設(shè)置背景圖像。

      下面我們通過示例來看一下,怎樣通過background-image屬性來設(shè)置按鈕背景圖片,示例如下:

      <!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> button {   width:200px;   height:150px;   background-image:url("1118.02.png");     } </style> </head> <body> <button type="button" >按鈕</button> </body> </html>

      輸出結(jié)果:

      css怎樣給按鈕設(shè)置背景圖片

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

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