我有 2 张图像需要在将它们保留在背景中的同时使用,目前我使用了以下代码:
<div id="about_splash">
<img style="width:85%" src="image_src" />
</div>
其中 about_splash 具有背景 css 属性
问题是,这两张图片需要在其他一些 html 对象的背景中。这将在 div#about_splash 的上方和下方。
我尝试放置 z-index,但没有奏效。
如果我使用以下代码,如何缩放内部图像使其比父图像大一点
<div style="background: url(layout/images/illustration.gif)
no-repeat center;min- height:500px;">
</div>
</div>