IE(7&8)渲染基本字体稍大
a {font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9px;}
显然 IE 渲染的 font-size: 9px 稍大一些。 “稍大”足以破坏布局。有人可以帮我解决这个问题吗?我现在有点生气:(
a {font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9px;}
Apparently IEs render font-size: 9px slightly larger. 'slightly-large' enough to break a layout. Can somebody please please help me with this issue?? I am kinda annoyed now :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
根据您使用的浏览器和安装的字体,布局会略有不同。您永远不能指望 9px 文本恰好是某个特定大小。
网页设计的部分挑战是在布局中建立足够的灵活性,这样就不会成为问题。
The layout will be slightly different depending on what browser you're using and what fonts are installed. You can never count on 9px text being exactly a certain size.
Part of the challenge of web design is to build enough flexibility in your layout so that this doesn't become an issue.
尝试设置行高。这将有助于统一不同浏览器之间的字体。
Try setting the line-height. This will help uniform the font across different browsers.
尝试使用重置CSS。在谷歌上你可以找到很多相关信息。
Try to use a reset css. On google you can find lots of information about that.