【发布时间】:2013-11-22 16:31:27
【问题描述】:
这是我的 CSS:
@media screen and (max-width: 640px){
.double{width:260px;}
.double img{width:100%;height:auto;}
.title {font-size:50px;}
}
无论我如何编辑@media screen and (max-width: 640px) 属性,都没有任何效果。我也尝试过添加!important,但它不起作用。
似乎我的 @media 属性被忽略/覆盖,因为当我调整浏览器大小并检查元素(在 FireFox 上)时,使用的 CSS 仍然是 .double img{width:560px;} 而应该是 .double img {width:100%;height:auto;}
任何帮助将不胜感激! :)
Here's my Tumblr. 如果有帮助,我的 JSFiddle 是 here。
【问题讨论】:
标签: image responsive-design media-queries