达到

的

by panxiaoxian

HTML

<div id='father'>
  <div id='son'>
    潘小闲 潘小闲
  </div>
</div>

CSS

#father {
  background-color: red;
  text-align: center;
}

#son {
  display: inline-block;
  background-color: yellow;
}