CSS背景位置不工作
我这里有这个代码CSS背景位置不工作,css,background-image,background-position,Css,Background Image,Background Position,我这里有这个代码 .madactive{background: url(/graphics/madarrow.jpg) no-repeat center top 20px !important;} 但是图像不再出现,我检查了元素,css被划掉了 我想做的是在我的背景图像上加一个顶部 我做错了什么?声明值中的参数太多。根据您的具体需要,以下任一项都可以使用: .madactive{background: url(/graphics/madarrow.jpg) no-repeat center t
.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top 20px !important;}
但是图像不再出现,我检查了元素,css被划掉了
我想做的是在我的背景图像上加一个顶部
我做错了什么?声明值中的参数太多。根据您的具体需要,以下任一项都可以使用:
.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top !important;}
或
声明值中的参数太多。根据您的具体需要,以下任一项都可以使用:
.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top !important;}
或
20像素是干什么用的?您正在定义中心顶部的位置20px的用途是什么?您正在定义中心顶部的位置