
<text class="add-dot">文本</text>
.add-dot{
position: relative;
}
.add-dot::after {
content: ' ';
position: absolute;
right: -8rpx;
top: -3rpx;
width: 12rpx;
height: 12rpx;
background-color: red;
border-radius: 50%;
}
<text class="add-dot">文本</text>
.add-dot{
position: relative;
}
.add-dot::after {
content: ' ';
position: absolute;
right: -8rpx;
top: -3rpx;
width: 12rpx;
height: 12rpx;
background-color: red;
border-radius: 50%;
}
本文标题:小程序文字右上角加红点
本文链接:https://www.haomeiwen.com/subject/ooxtohtx.html
网友评论