Why margin-top of the top div would apply to `<body>`?

后端 未结 7 1592
长情又很酷
长情又很酷 2020-12-15 21:26

Here I posted a demo http://jsfiddle.net/LxYMv/1/.

As you can see gets margin-top:10px from the top div, and therefor

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 21:49

    Try to add this:

    Here the top div begins

    I think, it solves your problems.

提交回复
热议问题