我的目标是改变使用媒体查询在某些浏览器大小的背景图像.... 我需要它重写元素样式,所以我需要有!重要的权利我的背景图像标记后...背景图片重复!!重要的正确的css代码
这是迄今为止..
@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;
}
}
任何帮助,将不胜感激..谢谢
将是一件好事知道:http://www.w3fools.com/ – vitozev
不是一切从W3Schools的是错误的;) –