0

我知道嵌套在父 div 中的任何东西都会继承父 div 的属性,但我仍然无法弄清楚这一点。我喜欢一切的布局,原样。但是当我调整我的窗口大小时,如果我将浏览器的右侧向左滑动,所有居中的东西都会被向右推。我已经制作了其他网页。我看不出我做错了什么。想法?我在下面包含了一些 css。我没有包含 html,因为它不是移动的对象……它是整个身体。

body {
background: #f5f5f5 url(../images/logo.png) no-repeat left top;
color: #78394e;
font-family: Verdana;
font-size: 12px;
min-width: 960px;
padding: 0;
margin: 0;
width: 100%;
border-width: 3px; 
border-style: dotted; 
border-color: teal; 
}

#header {
width: 100%;
}
4

0 回答 0