Css 背景图像不会显示在最新版本的ie中

Css 背景图像不会显示在最新版本的ie中,css,Css,链接只是一个例子。我知道真正的链接是有效的,因为它出现在Chrome和firefox中。为什么背景图像没有显示在internet explorer中。您的错误在这里: body { background-position: right; color: #FF7F27; background-color: transparent; background-image url('../cityage_background3.png'); background-size:

链接只是一个例子。我知道真正的链接是有效的,因为它出现在Chrome和firefox中。为什么背景图像没有显示在internet explorer中。

您的错误在这里:

body {
   background-position: right;
   color: #FF7F27;
   background-color: transparent; 
   background-image url('../cityage_background3.png');
   background-size: 1386px 861px;
   background-repeat: no-repeat;
   background-attachment: fixed;
}
应该是:

background-image url('../cityage_background3.png');
你失踪了:


编辑*IE不喜欢错误。

您忘记了背景图像和url之间的如果它不起作用,那是因为您的路径不正确。确保您的图像位于正确的位置。

路径正确,我检查了它。该问题是由在doctype之前加载代码引起的。
background-image: url('../cityage_background3.png');