你好,朋友,我想知道是否有任何方法可以避免在CSS3中重复火狐兼容性和chrome,因为为了兼容性,我们需要重复输入-moz- and -webkit-。以任何方式在一页中只写一次是可能的吗?
发布于 2014-09-29 12:41:28
使用无前缀
-prefix-free lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed.
发布于 2014-09-29 15:20:38
发布于 2014-09-29 13:24:47
刚在网上找到
js
// For detecting browser prefix and capabilities
var el = document.createElement( 'div' );
var re = /^(Moz|(w|W)ebkit|O|ms)(?=[A-Z])/;https://stackoverflow.com/questions/26099351
复制相似问题