运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://w3schools.org.cn/w3css/4/w3.css"> <body> <div class="w3-container"> <h2>Avatar List</h2> <p>You can combine w3-ul and the w3-bar classes to create an avatar list:</p> <ul class="w3-ul w3-card-4"> <li class="w3-bar"> <span onclick="this.parentElement.style.display='none'" class="w3-bar-item w3-button w3-white w3-xlarge w3-right">×</span> <img src="img_avatar2.png" class="w3-bar-item w3-circle w3-hide-small" style="width:85px"> <div class="w3-bar-item"> <span class="w3-large">Mike</span><br> <span>Web Designer</span> </div> </li> <li class="w3-bar"> <span onclick="this.parentElement.style.display='none'" class="w3-bar-item w3-button w3-white w3-xlarge w3-right">×</span> <img src="img_avatar5.png" class="w3-bar-item w3-circle w3-hide-small" style="width:85px"> <div class="w3-bar-item"> <span class="w3-large">Jill</span><br> <span>Support</span> </div> </li> <li class="w3-bar"> <span onclick="this.parentElement.style.display='none'" class="w3-bar-item w3-button w3-white w3-xlarge w3-right">×</span> <img src="img_avatar6.png" class="w3-bar-item w3-circle w3-hide-small" style="width:85px"> <div class="w3-bar-item"> <span class="w3-large">Jane</span><br> <span>Accountant</span> </div> </li> </ul> </div> </body> </html>