0
我正在嘗試使用Modernizr.prefixed()函數來避免在JS中編寫所有供應商代碼,但似乎並不奏效。 我想使用它的CSS濾鏡,這裏是我的代碼: Modernizr.prefixed('filter') // returns 'filter' on Chrome which actually needs '-webkit-filter'
用Modernizr獲取css過濾器的前綴
我已經看了Modernizr的源代碼,但它並沒有幫助(https://github.com/Modernizr/Modernizr/blob/master/feature-detects/css/filters.js)。
請注意,過濾器的特徵檢測出現在我的Modernizr版本中。
謝謝!