div를 만들 때 항상 상단과 왼쪽에 공백을 추가합니다. 이미지는 다음과 같습니다. http://img265.imageshack.us/img265/7346/83425851cc8d4fc49eb78a9.pngCSS 조정 div, 위쪽과 아래쪽 사이의 공백.
공간을 원하지 않으므로 해결하려면 어떻게해야합니까?
HTML 코드 :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Wozzies Blog</title><meta charset="utf-8"></meta>
<link rel="stylesheet" type="text/css" href="css/layout.css" />
</head>
<body>
<div id="container">
</div>
</body>
</html>
CSS 코드 :
body{
background-image:url('../img/bg.png');
background-repeat:repeat-y;
}
#container{
background-image:url('../img/bgcontentor.png');
background-repeat:repeat-y;
width: 798px;
height: 685px;
margin: auto;
}
감사합니다. 세스 – vvhat