纯CSS如何实现状态圆点

.circle {
    display: inline-block;
    width: 12px;
    height: 12px;
}
.circle:after {
    content: '';
    margin: 3px;
    display: table;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}
Html: 我的是一个<i class="circle"></i>圆点

效果:

 

posted @ 2020-06-11 16:18  心无引擎,眼无流派  阅读(1039)  评论(0编辑  收藏  举报