CSS3 媒体查询故障排除
我的媒体查询曾经有效,但现在不行了。我错过了出问题的地方。当我检查 Chrome 版本的 Firebug 中的 html 元素时,它表明媒体查询规则正在被编译过程中先前定义的规则覆盖。
有人能发现这个问题吗?
My media queries were working, but now they're not. I missed the point where something went wrong. As I inspect html elements in Chrome's version of Firebug, it shows that the media query rules are being overwritten by rules defined earlier in the compile process.
Can anyone spot the issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的查询语法可能已关闭。尝试将:更改
为
此外,您的
*
选择器在街道上肆虐,并且不加区别地消除了所有的填充和边距。请参阅此问题的答案:(为什么)CSS 星号选择器被认为是有害的?
The syntax on your queries might be off. Try changing:
to
Also, your
*
selector is running rampant through the streets and obliterating all your padding and margin indiscriminately. See the answers to this question:(why) is the CSS star selector considered harmful?