一个好看的圆圈数字
先上效果图:

<div class="wrap">
<div class="numOut">
<div class="numIn">100</div>
<h3 class="tag">数字标签</h3>
</div>
</div>
.wrap {
height: 400px;
width: 400px;
position: relative
}
.numOut {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.numIn {
display: table-cell;
border: 10px solid rgb(102, 177, 255);
border-radius: 50%;
background-color: #fff;
width: 200px;
height: 200px;
line-height: 180px;
text-align: center;
vertical-align: middle;
color: #000;
font-size: 5em;
}
.tag {
text-align: center;
}
本文介绍了如何使用CSS创建带有圆圈的数字效果,展示了一种美化数字展示的方法,适用于各种列表或计数场景。
381

被折叠的 条评论
为什么被折叠?



