css实现关闭按钮X .close::before {
  content: "\2716";
}
然后就显⽰出来了
这⾥有个更直接的例⼦
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
lady gaga 麦当娜
<style>
.close {
background: orange;
color: red;
八角亭迷雾结局
border-radius: 12px;
line-height: 20px;
text-align: center;
height: 20px;
width: 20px;王姿允
font-size: 18px;
padding: 1px;
top: -10px;
right: -10px;
position: absolute;
}
个体工商户执照/* use cross as close button */
.close::before {
content: "\2716";大名府是哪里
}
</style>
<body>
<div >描写人物品质的成语
<span class="close"></span>
</div>
</body>
</html>