为什么IE 11忽略我的CSS3多背景图像代码



好的,所以我使用CSS3在我的网站http://portfolio.yoursitedesigned.com/index.php上实现两个不同的背景图像。除了opera(最新)和IE 11,它在所有其他浏览器中都可以正常工作,我不知道为什么。我读了一些类似的问题,但没有一个答案能解决我的问题。这是我的CSS代码。

我最近的一次尝试:

background:url(images/background.png) no-repeat top center, url(images/bgbottom.png) repeat-x bottom center, #e5decf;

我的第一次尝试:

background-image:url(images/background.png), url(images/bgbottom.png);
background-repeat:no-repeat, repeat-x;
background-position:top center, bottom center;
background-color:#e5decf;

都将在IE 11和第一张图像中显示颜色,但不显示第二张图像。

谁能告诉我为什么?

通常IE在语法上很挑剔,而其他浏览器则比较宽容。

我想背景位置可能不对。第一个值是水平位置,第二个值是垂直

试着改成:

background-position:center top, center bottom;

更多信息:http://www.w3schools.com/cssref/pr_background-position.asp

最新更新