2015-11-04 171 views

回答

1

嘗試

body { 
    margin: 0px; 
    padding: 0px; 
} 

如果您不需要邊框您可以添加第三個規則(之一):如果你只需要在向下刪除此

border-width: 0px; 
border: none; 

的屏幕,使用:

margin-bottom: 0px; 
padding-bottom: 0px; 

這甚至不會左右碰這個。

0

在你的CSS添加以下代碼:

html, body{ 
    height:100%; 
}