I need an easy way to detect CSS3 media query support using jquery
问题 I need a quick and dirty way to detect media query support using jquery. I defined a function as follows: function mediaQueriesEnabled () { var v = parseFloat($.browser.version); if ($.browser.msie) { if (v < 9) return (false); } return (true); } Can someone help me fix this up a bit? Looking at this page: http://caniuse.com/css-mediaqueries I realized that there are some complexities here. For example, when I test my version of safari, I get "534.57.2". I want to avoid installing modernizr