JSFiddle - React, Tailwind, and code Playground
by panxiaoxian
HTML
<div id='father'>
<span id='son'>
潘小闲 潘小闲
</span>
</div>
CSS
#father {
background-color: red;
width: 300px;
height:60px;
text-align:center;
}
#son {
background-color: yellow;
line-height:60px;
}