我试着把X正好放在圆里面,但是由于某些原因我不能让它们互相匹配,请看下面
html格式:
CSS格式:
.messages {
position: sticky;
width: 235px;
z-index: 1;
float: right;
border-radius: 1px;
margin: 0 20px;
}
.closebtn {
color: #535353;
font-size: 30px;
cursor: pointer;
position: absolute;
z-index: 1;
margin: -25px 0 0 -10px;
}
.dot {
height: 25px;
width: 25px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
}