Does the <html> element have a default margin or padding in any browser, since normalize.css doesn't reset it?

前端 未结 3 1616
天命终不由人
天命终不由人 2020-12-03 19:42

I\'m using normalize.css, and I saw that it doesn\'t reset margins or padding for the element. Since I assume they\'ve done their research I was wo

3条回答
  •  执笔经年
    2020-12-03 20:13

    The tag does not have any CSS rules automatically applied to it. You can apply styles if you like, but the only time I've ever done it is to get 100% height and width.

    Default styling for each browser:

    http://mxr.mozilla.org/mozilla-central/source/layout/style/html.css

    http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css

    http://www.iecss.com/

提交回复
热议问题