久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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í)現(xiàn)鼠標(biāo)點(diǎn)擊后顯示圖片效果

      在css中,可以利用“:active”選擇器和“background-image”屬性來實(shí)現(xiàn)鼠標(biāo)點(diǎn)擊顯示圖片效果,語法為“元素:active{background-image:url(圖片路徑);}”。

      css怎么實(shí)現(xiàn)鼠標(biāo)點(diǎn)擊后顯示圖片效果

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

      css怎么實(shí)現(xiàn)鼠標(biāo)點(diǎn)擊后顯示圖片效果

      可以通過:active選擇器和background-image屬性來實(shí)現(xiàn)鼠標(biāo)點(diǎn)擊后顯示圖片效果,:active 選擇器用于選擇活動(dòng)鏈接。在一個(gè)鏈接上點(diǎn)擊時(shí),它就會(huì)成為活動(dòng)的(激活的)。background-image屬性用于設(shè)置點(diǎn)擊后顯示的圖片。

      示例如下:

      <!DOCTYPE html> <html>     <head>         <meta charset="utf-8">         <style type="text/css">             div{                 width: 400px;                 height: 300px;                 border: 1px solid red;               }             div:active{                 background-image: url(1118.02.png);                 background-size: 400px;             }         </style>     </head>     <body>         <div>鼠標(biāo)點(diǎn)擊div盒子</div>     </body> </html>

      輸出結(jié)果:

      css怎么實(shí)現(xiàn)鼠標(biāo)點(diǎn)擊后顯示圖片效果

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

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