如何只将目标文字内的文字定位在圆圈中? https://jsfiddle.net/Amidi/nevg4gcq/3/div中的文字内容
<div class="beads">1</div>
<div class="beads">2</div>
<div class="beads">3</div>
.beads{
background-color: coral;
border-radius: 100%;
height: 35px;
width: 35px;
text-align: center;
color: whitesmoke;
margin-top: 5px;
}
加上'的line-height:35px;'。或者使用'padding'来玩并移除'height'。 –
另外,一次发布一个问题。然后在你的第一个问题得到解答时做出跟进问题。 –