您好,登錄后才能下訂單哦!
body{ background-color: #0078b3; } .p_w_picpath{ border: 1px solid darkgray; width: auto; height: auto; float: left; text-align: center; margin: 5px; } img{ margin: 5px; opacity: 1; } .text{ font-size: 12px; margin-bottom: 5px; } a:hover{ background-color: aqua; }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>圖片</title> <link href="style.css" type="text/css" rel="stylesheet"> </head> <body> <div class="p_w_picpath"> <a href="#" target="_self"> <img src="2.jpg" alt="背景" width="200px" height="200px"> </a> <div class="text">一張背景圖</div> </div> <div class="p_w_picpath"> <a href="#" target="_self"> <img src="2.jpg" alt="背景" width="200px" height="200px"> </a> <div class="text">一張背景圖</div> </div> <div class="p_w_picpath"> <a href="#" target="_self"> <img src="2.jpg" alt="背景" width="200px" height="200px"> </a> <div class="text">一張背景圖</div> </div> <div class="p_w_picpath"> <a href="#" target="_self"> <img src="2.jpg" alt="背景" width="200px" height="200px"> </a> <div class="text">一張背景圖</div> </div> </body> </html>
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。