<!DOCTYPE html>
<html>
<head>
<title>W3.CSS(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
</head>
<body>
<div class="w3-container">
<h2>可关闭列表项目</h2>
<p>单击“ x”以关闭/隐藏列表项:</p>
<ul class="w3-ul">
<li class="w3-display-container">吉尔
<span onclick="this.parentElement.style.display='none'"
class="w3-button w3-display-right">×</span>
</li>
<li>夏娃</li>
<li>亚当</li>
</ul>
</div>
</body>
</html>