我想擺脫我的網站周圍的白色邊緣。我已設置#body #header和#html頁邊距:0;和填充:0;是否有人可以幫助與身體,標題和html設置在0的白色邊緣
下面是HTML代碼:
<DOCTYPE html>
<html>
<header>
<link href="CSS/stylesheet.css" rel=stylesheet>
</header>
<body>
<div id="bannertop"></div>
</body>
</html>
而CSS:
#html{
margin: 0 !important;
padding: 0 !important;
}
#header{
margin: 0 !important;
padding: 0 !important;
}
#body{
margin: 0 !important;
padding: 0 !important;
}
#bannertop{
height: 200px;
width: 100%;
background-color: cadetblue;
margin-top:0px;
}
下面是該網站的picure Website