.span { position:relative; padding:5px; } .tip { display:block; background:#f00; border-radius:50%; width:8px; height:8px; top:0px; right:0px; position:absolute; }
红点大小修改:
.tip{width:8px;height:8px;}
红点位置修改:
.span{padding:5px;} .tip{top:0px;right:0px;}