Home  >  Article  >  Web Front-end  >  不继承父class的line-height_html/css_WEB-ITnose

不继承父class的line-height_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:47:471575browse

IE11有问题,chrome firefox 没问题。
html大致内容如下:
body {     line-height :20px      }


  

        

                     
font-size: 72pt; " >
                                   0
                     

         

  



问题:因为有个body {     line-height :20px    }的限制,最里层DIV的line-height: 72pt;不起作用。
           导致数字【0】超出了DIV的范围。
           如果修改body为 {     line-height: 72pt      },就没有超出范围的问题了。
          但是,因为是共通,不能这么修改。
          怎么修改,才能解决这个超出范围的问题呢?
          麻烦高手给个建议。谢谢了

       


回复讨论(解决方案)

overflow:hidden;能行不,试试看

overflow:hidden;能行不,试试看


谢谢  但是这个不行,他是超出的就不显示的意思。

暂停回答 ,不是css的问题。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn