最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I detect whether a browser supports CSS3 blur? - Stack Overflow

programmeradmin0浏览0评论

I'm trying to write something in JS that allows me to tell whether a user's browser supports CSS3 blur, and display (or not display) an element as necessary. It doesn't look like Modernizr supports it, and I really couldn't figure out another way to check this. How can I do this?

I'm trying to write something in JS that allows me to tell whether a user's browser supports CSS3 blur, and display (or not display) an element as necessary. It doesn't look like Modernizr supports it, and I really couldn't figure out another way to check this. How can I do this?

Share Improve this question edited Oct 20, 2013 at 11:10 Boaz 20.2k9 gold badges66 silver badges72 bronze badges asked Oct 15, 2013 at 6:44 daviesgeekdaviesgeek 8313 gold badges14 silver badges30 bronze badges 4
  • raw.github./Modernizr/Modernizr/master/feature-detects/css/… – Derek 朕會功夫 Commented Oct 15, 2013 at 7:06
  • I saw, but that's the filter property, which most browsers support… – daviesgeek Commented Oct 15, 2013 at 21:47
  • Currently, only webkit browsers support the filter property. – Boaz Commented Oct 19, 2013 at 18:26
  • According to jQuery.support.filter…Firefox supports it… – daviesgeek Commented Oct 19, 2013 at 21:02
Add a ment  | 

1 Answer 1

Reset to default 13

blur is actually a value of the CSS filter property, and not a CSS property within itself.

To check for support of the CSS3 filter property with modernizr, you can simply use the Modernizr.cssfilters value.

发布评论

评论列表(0)

  1. 暂无评论