通过伪类在圆内添加一个圆

<div class="cu-handle"><div>

 

.cu-handle{
    width: 40rpx;
    height: 40rpx;
    background-color: black;
    border-radius: 50%;
}
.cu-handle::after{
    content: '';
    position: absolute;
    background-color: orange;
    top: 16rpx;
    left: 16rpx;
    width: 12rpx;
    height: 12rpx;
    border-radius: 50%;
}

posted @ 2020-06-30 18:11  夜輩  阅读(227)  评论(0)    收藏  举报