【发布时间】:2016-04-23 05:21:58
【问题描述】:
查看我的网站 - http://icestartup.com/testsites/site2/
背景应该是由 2 张图像和背景颜色组成的图层。但是当我这样做时,它在 Chrome 检查器中显示“无效属性错误”。
这是我使用的代码:
body {
background: url(http://icestartup.com/testsites/site2/wp-content/uploads/2016/04/gradient.png) no-repeat scroll center top transparent, url(http://icestartup.com/testsites/site2/wp-content/uploads/2016/04/background-pattern.png) repeat scroll transparent, #90B601;
}
要查看确切的错误,我已经上传了一个屏幕截图 - 可以在这张图片的 Chrome 检查器中看到该错误
我能做什么?
【问题讨论】:
-
在你的帖子上说你使用了
backgroundproperty,但在屏幕截图上说你使用了background-color -
那是旧截图。我改变了那个。您可以再次查看该网站 - icestartup.com/testsites/site2 并尝试检查。您将再次看到错误。
-
对不起,由于我在手机上,所以现在帮不上忙……没有检查
-
要我发新的截图吗?
-
你可以试试,但是错误很明显,属性有问题,可能是html元素不支持或者属性有无效属性。