use*_*625 1 css background-image background-position
我这里有这个代码......
.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top 20px !important;}
Run Code Online (Sandbox Code Playgroud)
但是图像不再出现了,我检查了元素并且css被划掉了......
我想要做的是在我的背景图像上放置一个顶部.
我究竟做错了什么?
您的声明值中有太多参数.根据您的具体需求,以下任何一项都可以使用:
.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top !important;}
Run Code Online (Sandbox Code Playgroud)
要么
.madactive{background: url(/graphics/madarrow.jpg) no-repeat center 20px !important;}
Run Code Online (Sandbox Code Playgroud)