我已经上传了网站mrandmrsmagic.com,虽然它看起来很好,但是当它最大化时,最小化只显示了它的一半(我拿走了滚动条,因为它在最大化时显示所以也许会有一些悬念。)该网站本身,我使用5个不同的背景图像,因为我在Photoshop中切片(这是一段时间,因为我从头开始建立一个网站,所以编码可能相当混乱。)下面是我使用的5个div的css身体。屏幕调整大小以适应分辨率
#body {
width: 1024px;
height: 583px;
marin: 0;
padding: 0;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body_02.jpg) no-repeat left top;
}
#body2 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body2_02.jpg) no-repeat left top;
}
#body3 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body3_02.jpg) no-repeat left top;
}
#body4 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body4_02.jpg) no-repeat left top;
}
#body5 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body5_02.jpg) no-repeat left top;
}
#body6 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body6_02.jpg)
}
我试图带走高度,并把宽度设置为100%,但后来没有补救,它几乎成了最糟糕的。那么有什么方法可以去切换CSS,我可以保留5个div吗?也许我应该只制作一个初始div标签,然后为这些机构制作5个类标签。这可能吗?任何和所有的帮助表示赞赏,谢谢。
我不知道你是问。我去了网站,当我调整我的浏览器窗口时,一切都显得很正常。 – tw16