#container{
background:url(images/bg-main.png) repeat-y;
width: 903px;
background-position: 0px 687px;
background-position: bottom;
height: 1200px;
margin-left: auto;
margin-right: auto;
}
#content{
background:url(images/bg-wood.png) repeat-y;
width: 903px;
height: 678px;
margin-left: auto;
margin-right: auto;
}
#content
div在#container
div中。我想让#container
的背景从顶部开始重复,距离顶部687像素。这可能吗?
编辑:是否可能让div的前x像素(从顶部开始)为空白空间,并在x像素后开始背景?
background : url('image path') 0px 287px repeat-y;
这是我已经尝试过的(你可以查看我的问题(第2行和第4行)- 但它不起作用 :)。 - ilija veselica