什么是{font-size:100.01%; }?而且甚至在html {}中也提到font-size是非常好的
如果我正在使用body {font-size:62.5%;}
编辑:2010年5月3日
今天我在这里发现了约100.01%的信息 – http://www.communitymx.com/content/article.cfm?cid=FAF76&print=true
This odd 100.01% value for the font
size compensates for several browser
bugs. First,setting a default body
font size in percent (instead of em)
eliminates an IE/Win problem with
growing or shrinking fonts out of
proportion if they are later set in
ems in other elements. Additionally,
some versions of Opera will draw a
default font-size of 100% too small
compared to other browsers. Safari,on
the other hand,has a problem with a
font-size of 101%. The current “best”
suggestion is to use the 100.01% value
for this property.
保持身体{font-size:100.01%}代替{font-size:100%}很好
解决方法
相对字体大小(%,em)总是相对于父元素的字体大小来解释.所以在顶部元素中实现一种初始化复位并不是个坏主意,您可以使用body {font-size:100%}来实现.
原文地址:https://www.jb51.cc/css/216720.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。