jQuery jQuery.cssHooksMethod
Example
Define a new css hook
Try it yourself »
Definition and Usage
$.cssHooks provides a way to get and set specific CSS values by defining functions.
Note:1. It is intended to normalize CSS property names or create custom properties.
2. For example, some versions of Webkit-based browsers require the -webkit-border-radius property to set the border-radius of an element, while early Firefox versions use the -moz-border-radius property. A CSS hook can normalize these prefixed properties, allowing .css() to accept a single, standard property name (border-radius, or in DOM property syntax, borderRadius).
Syntax
More Examples
Test browser vendor prefix variants
Before normalizing vendor-specific CSS properties, first determine whether the browser supports the standard property or the vendor-prefixed variant.
Define a complete css hook
Define a complete css hook.
Other Extensions
jQuery HTML/CSS Methods