html頁面出現白邊,這個白邊是由不一樣瀏覽器body默認的外邊距形成的。css
只要用css重寫頁面邊距便可:html
1 body { 2 margin:0px; 3 } 4 5 #container { 6 position:relative; 7 margin-right:auto; 8 margin-lef:auto; 9 10 }