<span class="icon-red-dot" style="
position: absolute;
width: 10px;
height: 10px;
background: red;
right: -5px;
top: -5px;
border-radius: 50%;"></span>
只有当外层的position是relative才可以生效
<span class="icon-red-dot" style="
position: absolute;
width: 10px;
height: 10px;
background: red;
right: -5px;
top: -5px;
border-radius: 50%;"></span>
只有当外层的position是relative才可以生效