【Web前端笔记】浏览器页面白边问题,css修改默认边距

html页面出现白边,这个白边是由不同浏览器body默认的外边距造成的。

只要用css重写页面边距即可:

 1 body {
 2   margin:0px;
 3 }
 4 
 5 #container {
 6   position:relative;
 7   margin-right:auto;
 8   margin-lef:auto;
 9 
10 }

 

posted @ 2015-06-26 11:17  Fion_安  阅读(2306)  评论(0编辑  收藏  举报