我的目标是使用媒体查询更改某些浏览器大小的背景图像......我还需要它来覆盖元素样式,所以我需要在我的背景图像标签之后有 !important......
这是到目前为止..
@media only screen and (min-width : 690px) and (max-width : 1000px) {
#featured article[data-background-cover="1"] {
background-image: url('#')!important;
}
}
上面的代码似乎工作..但我需要背景图像重复...我怎样才能添加它,同时仍然保留!重要。
我尝试了几种方法,但似乎不起作用..喜欢
@media only screen and (min-width : 690px) and (max-width : 1000px) {
#featured article[data-background-cover="1"] {
background-image: url('#')repeat!important;
}
}
和
@media only screen and (min-width : 690px) and (max-width : 1000px) {
#featured article[data-background-cover="1"] {
background-image: url('#')!important repeat;
}
}
任何帮助将不胜感激..谢谢