0

我在我的 css 中使用了多个图像,它在 firefox 和 chrome 最新版本中看起来不错,但是在 opera v12.0 中它没有很好地定位我的第二张图片。它显示在页面中间(即使 Opera 12 支持多个图像)。

这是我正在使用的CSS:

body{
background:url(../images/bg.png) top repeat-x,url(../images/bg_footer.png) bottom repeat-x, #fff;
}

也试过这个:(同样的结果)

身体{

background-image: url('../images/bg.png'), url('../images/bg_footer.png');
background-position: left top, left bottom;
background-repeat: repeat-x;

}

知道如何解决这个问题吗?

4

2 回答 2

0

尝试这个

 display: inline-block;
background-image: url('../images/bg.png'), url('../images/bg_footer.png');
background-position: left top, left bottom;
background-repeat: repeat-x, repeat-x;
于 2012-08-23T05:33:58.360 回答
0

尝试这个:

background-image: url(../images/bg.png), url(../images/bg_footer.png);
background-position: left top, left bottom;
background-repeat: repeat-x;
于 2012-08-05T01:17:48.013 回答