1.给予文字的行高居中 预期效果不对
2.居中对象殊是谁阿。
<!DOCTYPE html>
Title
<br> .box {<br> width: 500px;<br> height: 600px;<br> background-color: slateblue;<br> }<br> .box em {<br> display: inline-block;<br> color: #fff;<br> font-size: 20px;<br> font-style: normal;<br> width: 80px;<br> height: 40px;<br> background-color: sandybrown;<br> text-align: center;<br> }<br> .test1 {<br> line-height: 40px;<br> }<br> .test2 {<br> line-height: 80px;<br> }<br>
测试
测试
测试
测试
测试
11111
</body>
https://blog.csdn.net/m0_46744635/article/details/108194187