[英]How can I detect whether a browser supports CSS3 blur?
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. 我正在尝试用JS编写一些东西,让我可以判断用户的浏览器是否支持CSS3 blur
,并根据需要显示(或不显示)元素。 It doesn't look like Modernizr supports it , and I really couldn't figure out another way to check this. 它看起来不像Modernizr支持它 ,我真的想不出另一种方法来检查它。 How can I do this? 我怎样才能做到这一点?
blur
is actually a value of the CSS filter
property, and not a CSS property within itself. blur
实际上是CSS filter
属性的值,而不是CSS属性本身。
To check for support of the CSS3 filter
property with modernizr, you can simply use the Modernizr.cssfilters
value. 要使用modernizr检查CSS3 filter
属性的支持,您只需使用Modernizr.cssfilters
值即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.