Document    "> html根字体设置成很大的值后, 包裹了行内元素的div莫名变高是什么原因?-PHP Chinese Network Q&A
html根字体设置成很大的值后, 包裹了行内元素的div莫名变高是什么原因?
小白
小白 2017-03-07 09:28:14
0
2
1208
    Document  
dsflfij


小白
小白

好好学习,天天向上!!!

reply all (2)
数据分析师

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.

    迷茫
        Document  
    
    dsflfij1

    因为font-size可继承,你这样写了后div的font-size也变大了。

    并且需要注意的一点line-height里面 12 != 12px,详情百度一下差异

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!