How to margin the body of the page (html)?

后端 未结 8 1684
萌比男神i
萌比男神i 2020-12-15 18:14

I used the following


which works only on IE6. I want it to work with firefo

相关标签:
8条回答
  • 2020-12-15 18:46

    Try using CSS.

    body {
       margin: 0 0 auto 0;
    }
    

    The order is clockwise from the top, so top right bottom left.

    0 讨论(0)
  • 2020-12-15 18:47

    I would say: (simple zero will work, 0px is a zero ;))

    <body style="margin: 0;">
    

    but maybe something overwrites your css. (assigns different style after you ;))

    If you use Firefox - check out firebug plugin.

    And in Chrome - just right-click on the page and chose "inspect element" in the menu. Find BODY in elements tree and check its properties.

    0 讨论(0)
提交回复
热议问题