[英]CSS Media queries works in Chrome but not firefox or safari
I'm new on stackoverflow and would appreciate and help/input on this matter. 我是stackoverflow的新手,希望能对此提供帮助和帮助。
I have been working on a site and it works fine on chrome and is responsive to different device sizes. 我一直在一个网站上工作,它在chrome上可以正常工作,并且可以响应不同的设备尺寸。 I tested it on numerous devices. 我在众多设备上进行了测试。 However, on firefox it looks good on my 27"mac which i designed it too, but smaller screen devices it's not working. It's like it's not detecting the media queries at all. 但是,在firefox上,我也在我设计的27英寸Mac上看起来不错,但是在较小的屏幕设备上却无法使用。这就像它根本没有检测到媒体查询一样。
Here is a link to the site: www.ujimatrading.com 这是该网站的链接:www.ujimatrading.com
and here is a paste of the media query css: http://pastebin.com/uQgzxeTQ 这是媒体查询CSS的粘贴: http : //pastebin.com/uQgzxeTQ
Sorry but i'm a backend developer and not really into front-end stuff so any tips would be highly appreciated. 抱歉,但是我是一个后端开发人员,并不真正涉足前端工作,因此任何提示都将受到高度赞赏。
Many Thanks 非常感谢
You've got some bad nesting going on. 您正在进行一些不良的嵌套。
Try cleaning it up like this: 尝试像这样清理它:
@media screen and (max-width://pixels) {
}
@media screen and (max-width://pixels) {
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.