浏览器中的速记背景CSS属性失败
我有以下css/sass代码:浏览器中的速记背景CSS属性失败,css,Css,我有以下css/sass代码: lc{ background-image: url(../img/header.png) ; background-position: center center; background-size: cover; background-repeat: no-repeat; } 我试着用速记法把它简化为: background-image: url(/img/backgrounds/header.png) no-repeat center / c
lc{
background-image: url(../img/header.png) ;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
}
我试着用速记法把它简化为:
background-image: url(/img/backgrounds/header.png) no-repeat center / cover;
但是速记失败了,浏览器无法识别(例如:Firefox)不要
背景图像
正确背景
:
background: url(/img/backgrounds/header.png) no-repeat center / cover;
是否有类似于
的标记?此外,速记是background
,而不是background image
。请使用background
作为速记属性。让我们将其作为输入关闭<代码>:)我们不要添加答案。让我们以打字错误结束此操作。