我想延长我的网页的长度,但我不完全确定如何。现在,我在网页上有一张照片。在照片的底部,我想再放一张。但是,当我在代码中插入新图片时,由于层叠样式表,它与现有的图片重叠。
.background-pic .number-1 {
background-image: url('../resources/images/hoth4.jpg');
background-repeat: no-repeat;
background-size: 109%;
height: 930px;
position: fixed;
width: 100%;
background-color: white;
z-index: 1;
}
.background-pic .number-2 {
background-image: url('../resources/images/hoth2.jpg');
background-repeat: no-repeat;
background-size: 109%;
height: 930px;
position: fixed;
width: 100%;
background-color: white;
z-index: 1;
}发布于 2014-10-10 19:40:01
删除position:fixed
再加上
.background-pic [class^=number]{
display:block;
clear:both
}https://stackoverflow.com/questions/26306846
复制相似问题