我试图在一个<div>
图层中使用background-image
的两个实例。 第一个background-image
(部分透明)应显示在<div>
的top
,第二个应直接显示在第一个background-image
(此作品)下。在第一个图像下重复第二个背景图像
应有的动态内容与高度为1px
的第二张图片应垂直重复(repeat-y
),并在第一张background-image
下开始重复。我的问题是,当我尝试重复第二个background-image
它在整个<div>
层上重复。
.mainFrameRoundBorder {
border: none;
background: url(../images/theme_box_main_l.png), url(../images/theme_box_main_2.png);
background-repeat: no-repeat, repeat-y;
border-radius: 0 0 0 0;
box-shadow:0 0 0 0;
background-attachment: scroll;
background-clip: border-box;
background-color: transparent;
background-position: center top, 0px 364px;
margin-top:10px;
padding: 6px 15px;
overflow: hidden;
color: #FFFFFF;
}
请发表小提琴...您的描述不是很明确。 – pixelass 2012-01-08 16:17:40
对不起,你是什么意思与小提琴? – user1137236 2012-01-08 17:15:29
http://jsfiddle.net使用此服务来制作一个代码的小例子。我在这里为你开始了一个:http://jsfiddle.net/pixelass/E9Xbu/ – pixelass 2012-01-08 17:33:43