开发者

CSS: <h2> is longer in IE7 than in FF

开发者 https://www.devze.com 2023-01-02 11:00 出处:网络
The string \"Fernando Salgado Alonso\" is much longer in IE7 than in FF. Why? What can I do to fix i开发者_StackOverflowt?That happens because different browsers have slightly different default css f

The string "Fernando Salgado Alonso" is much longer in IE7 than in FF.

Why? What can I do to fix i开发者_StackOverflowt?


That happens because different browsers have slightly different default css for displaying unstyled content.

You need to use a css reset and apply your own rules on top of that. That way you will be sure that it displays the same on all browsers.

Some well know resets are:

  • http://meyerweb.com/eric/tools/css/reset/
  • http://code.google.com/p/blueprintcss/
  • http://developer.yahoo.com/yui/reset/
  • http://developer.yahoo.com/yui/3/cssreset/

Also have a look at: https://stackoverflow.com/questions/116754/best-css-reset

0

精彩评论

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

关注公众号