After setting the html root font to a very large value, why does the div that wraps the inline elements become inexplicably taller? -PHP Chinese website Q&A-After setting the HTML root font to a very large value, why does the div that wraps the inline elements become inexplicably taller? -PHP Chinese website Q&A
After setting the html root font to a very large value, why does the div that wraps the inline elements become inexplicably taller? -PHP Chinese website Q&A-After setting the HTML root font to a very large value, why does the div that wraps the inline elements become inexplicably taller? -PHP Chinese website Q&A
Let’s take a look and learn.
因为font-size可继承,你这样写了后div的font-size也变大了。
并且需要注意的一点line-height里面 12 != 12px,详情百度一下差异