html div 文字左右居中
text-align:center
html div 文字垂直居中
height: 100px;
line-height: 100px;/*让黄色div中的文字内容垂直居中*/
text-align: center;/*让文字水平居中*/
设置文字高度等于行高,
html div 文字左右居中
text-align:center
html div 文字垂直居中
height: 100px;
line-height: 100px;/*让黄色div中的文字内容垂直居中*/
text-align: center;/*让文字水平居中*/
设置文字高度等于行高,