Lea Verou 10.02.2009

Check whether a CSS property is supported

Przeczytaj oryginał

This technical article explains how to programmatically check if a CSS property is supported by the current browser using JavaScript. It demonstrates using the 'in' operator with a DOM element's style object for reliable feature detection, avoiding browser-specific hacks. The guide includes a reusable function and important notes about using JavaScript-style property names.

Check whether a CSS property is supported

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet