我在做我的网站,但我有一个问题。我有一个背景图片,在此图片中,不同图层: 图层的大小和位置完全相同。我尝试这样做:CSS3 HTML5图层
HTML
CSS
body {
background-color: #feecc5;
font-size: 13px;
position: absolue;
background-image: url(images/fond.png);
width: 600px;
height: 960px;
background-position: center top;
background-repeat: no-repeat;
}
#1 {
background-image: url(images/formation.png);
width: 600px;
height: 960px;
z-index: 1;
}
#2 {
background-image: url(images/experiences.png);
width: 600px;
height: 960px;
z-index: 2;
}
对身体的背景图片是完美的,经过不同的层都非常糟糕......我唐吨理解后,我也尝试了一个位置:为div的中心,没有。也把所有的div“图层”放在普通div中,它也不起作用。我不知道我必须这样做。非常感谢您的帮助。
2013-10-04
mhsc90
+0
请创建一个小提琴。 (jsfiddle.com) –
+1
将您的'ID'改为数字以外的东西,比如'#one'和'#two' –