문제

Hi (please excuse me for my ugly english ;-) )

Do you know if the default CSS of any user agent ... :

  • depends on its release number ?
  • depends on its layout engine ?
  • depends on the release number of its layout engine ?
  • depends on the OS ?
  • depends on the OS release number ?

If yes (for any choice), have you any example do demonstrate it ?

Thank you very much. :-)

도움이 되었습니까?

해결책

It only depends on the browser make/version. You can find here an overview of default styles.

The main differences are in the margins of the block elements. One would recommend to use a CSS reset sheet to clean it up, but I'd just specify the margin for every actually-to-be-used block element yourself.

다른 팁

It depends on the rendering engine used by the browser.

Unless you specifically need to know the defaults properties for your project - I'd recommend looking into using a 'reset script'.

If you use such a script, it will standardise the CSS defaults so they're the same across a range of browsers. Yahoo produce a good one, which is updated with each browser release (http://developer.yahoo.com/yui/reset/)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top