Margin and Padding of <Body> Tag

后端 未结 4 1605
-上瘾入骨i
-上瘾入骨i 2021-01-01 15:46

I am writing a very simple HTML code which is listed below. Written in notepad and opening in IE-8 and Firefox (OS: Window Vista).



         


        
4条回答
  •  猫巷女王i
    2021-01-01 16:08

    1. First of all, it's probably 4px and not 4. Second, that's just the way the browser vendor decided should be the default.
    2. It is saved in the default browser stylesheets.
    3. You can, but you shouldn't. It differs with each browser. Google it! How do I change default stylesheet on ?
    4. There probably are slight differences, you should be able to tell... by looking at the default stylesheets :)

    That difference is one of the main reasons we as designers use a CSS reset, to normalize all of the CSS awkwardness that follows different browser implementations.

提交回复
热议问题