2013-08-25 4 views
0

저는 Dreamweaver를 사용하여 웹 사이트를 만들려고 노력하고 있지만 왼쪽에 흰색 갭과 같은 여백이 생성되는 작은 문제가 있습니다. CSS를 사용하여 왼쪽 여백을 0으로 설정하려고했으나 없습니다. 당신이이 같은 나중에 문제에 충돌하지 않으려면, 당신의 CSS 편집을 시작하면 그 값을 다시 설정해야합니다 그래서 운HTML Dreamweaver 왼쪽 여백

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Untitled Document</title> 
<style type="text/css"> 
.Header { 
    background-attachment: scroll; 
    background-color: #FFF; 
    background-image: url(Background/images/images/Untitled-1_01.gif); 
    background-size: cover; 
    background-repeat: no-repeat; 
    height: 48px; 
    width: 100%; 
    position: fixed; 
    top: 0px; 
    background-position: center; 
    margin-left: 0px; 
} 
.Wrapper { 
    background-color: #FFF; 
    height: auto; 
    width: auto; 
    margin-left: 0px; 
} 
</style> 
</head> 

<body> 
<div class="Wrapper"> 
<div class="Header"></div> 
<div> 
</div> 
    <p>d sdsd </p> 
    <p>&nbsp;</p> 


</div> 


</body> 
</html> 

답변

0

페이지의 본문은, 브라우저 기본 마진이 포함되어 있습니다. 당신이 당신이이 문제를 해결하기 위해 삽입 한 여백에 불필요한 업데이트를 제거 할 수 있습니다와

html, body{ 
    margin: 0; 
    padding: 0; 
} 

: 당신의 상단에 다음과 같은

복사 파일/태그 CSS.

0

될 수 있습니다. 브라우저의 기본 스타일 때문에. reset.css 또는 bootstrap.css와 같은 다른 프로그램을 사용하여 브라우저 CSS를 지울 수 있습니다. 희망이 있습니다. 감사합니다.

관련 문제