media queries not working in safari or chrome. working fine in firefox

廉价感情. 提交于 2019-12-11 08:34:39

问题


http://timenoplace.com/releases/

this is a site i am working on.

media queries are working perfectly in firefox and not in safari or chrome.

if you drop the width to below 960 - you will see the background turn yellow in firefox... but in safari and chrome, the changes do not register.

i have never had this problem before. it is driving me insane.

can't find anything online ... does anyone have any ideas ??? css validates...

the project is a theme i built for wordpress. could that have anything to do with this?

thank you.


回答1:


in your style.css on line 282, you have a block for @media screen { without a closing }. Add the closing bracket after your css rules for the media screen (line 1320) - that should do the trick.

I guess firefox, unlike chrome and safari, isn't too picky about syntax.



来源:https://stackoverflow.com/questions/10826564/media-queries-not-working-in-safari-or-chrome-working-fine-in-firefox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!