CSS 圆圈数字

一个好看的圆圈数字

先上效果图:
CSS 圆圈数字_第1张图片

<div class="wrap">
  <div class="numOut">
    <div class="numIn">100div>
    <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;
}

你可能感兴趣的:(前端)