CSS makes the font evenly spread across the container

<div class="label">账号</div>
.label {
  width: 60px;
  height: 31px;
  line-height: 31px;
  padding-right: 10px;
  text-align: justify;
}

.label::after {
  display: inline-block;
  width: 100%;
  content: "";
}

effect

Guess you like

Origin blog.csdn.net/joyvonlee/article/details/108220554