CSS
These methods get and set CSS-related properties of elements.
-
.addClass()
Adds the specified class(es) to each of the set of matched elements.
-
.css()
Get the value of a style property for the first element in the set of matched elements.
-
jQuery.cssHooks
Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
-
.hasClass()
Determine whether any of the matched elements are assigned the given class.
-
.height()
Get the current computed height for the first element in the set of matched elements.
-
.innerHeight()
Get the current computed height for the first element in the set of matched elements, including padding but not border.
-
.innerWidth()
Get the current computed width for the first element in the set of matched elements, including padding but not border.
-
.offset()
Get the current coordinates of the first element in the set of matched elements, relative to the document.
-
.outerHeight()
Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin.
-
.outerWidth()
Get the current computed width for the first element in the set of matched elements, including padding and border.
-
.position()
Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
-
.removeClass()
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
-
.scrollLeft()
Get the current horizontal position of the scroll bar for the first element in the set of matched elements.
-
.scrollTop()
Get the current vertical position of the scroll bar for the first element in the set of matched elements.
-
.toggleClass()
Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
-
.width()
Get the current computed width for the first element in the set of matched elements.