我有一个圆,在这个圆中,我不能用文本将div居中.
这是代码
.circle {
border-radius: 50%;
transition: all 2s;
transition-delay: 0s;
background-color: #14b1e7;
width: 100%;
padding-top: 100%;
text-align: center;
}
.words {
font-size: 40px;
font-family: 'Montserrat', sans-serif;
display: flex;
animation-name: fade;
animation-delay: 4s;
animation-duration: 0.5s;
animation-timing-function: ease-out;
animation-iteration-count: forwards;
animation-direction: absolute;
font-weight: bold;
justify-content: center;
align-items: center;
}
<div class="circle">
<div class="words"></div>
<div class="words1"></div>
<div class="words2"></div>
</div>