开发者

IEs(7&8) render basic fonts slightly larger

开发者 https://www.devze.com 2023-02-27 09:52 出处:网络
a {font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9p开发者_C百科x;} Apparently IEs render font-size: 9px slightly larger. \'slightly-large\' enough to break a layout. Can somebody pleas
a {font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9p开发者_C百科x;}

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 :(


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.

a {font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9px; line-height: 1.3em; }


Try to use a reset css. On google you can find lots of information about that.

0

精彩评论

暂无评论...
验证码 换一张
取 消