字体是高度的90% 也就是高度是字体的110%html <div class="test"> <p>aaaaaaaaa</p> </div> css body { font-size: 15px; } .test p { height: 1.1em; background: blue; line-height: 1.1; } .test p:after { content: ''; display: inline-block; height: 1.1em; vertical-align: middle; }
字体是高度的90% 也就是高度是字体的110%
html
css