How can I override the minimum-font-size in Firefox?

后端 未结 8 1576
醉酒成梦
醉酒成梦 2020-12-14 22:35

My site displays just like in need in IE and Opera, but in Firefox I can\'t get (via CSS) to have font sizes smaller than Firefox\' default minimum-font-size. Of course I ca

8条回答
  •  没有蜡笔的小新
    2020-12-14 23:11

    If you set the default CSS font size in your web pages to a percentage ... then through em sizing you can provide cross-browser scalability ... Setting the font size to 62.5% is a basis for rescaling fonts base hx sizes to 10px.

    body {
    
        font-size: 62.5%;
    
    }
    
    p  {
    
        font-size: 1em;
    }
    

    So if you really wanted to make your standard paragraph text say 10px ... You would just state it in your CSS as 1em and it would render as 10px. Please note that if you really want to do this correctly ... you need to do a CSS reset too as you want your display to be consistent ...

    Eric Meyers CSS Reset HTH

提交回复
热议问题