小编Cor*_*zuu的帖子

将文本水平和垂直居中放置在圆圈中

我有一个问题,文本没有出现在圆圈的中心,我该如何解决?

#indexClient {
  float: left;
  margin-top: 10px;
  margin-left: 20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  font-size: 30px;
  color: yellow;
  line-height: 20px;
  text-align: center;
  background: #99CCCC
}
Run Code Online (Sandbox Code Playgroud)
<div id="indexClient">
  <p>Client Side</p>
</div>
Run Code Online (Sandbox Code Playgroud)

html css css3

3
推荐指数
1
解决办法
4761
查看次数

标签 统计

css ×1

css3 ×1

html ×1