jQuery CSS Methods
The following table lists all the methods used to manipulate CSS properties.
| Method | Description |
|---|---|
| addClass() | Adds one or more classes to selected elements |
| css() | Sets or returns one or more style properties for selected elements |
| hasClass() | Checks if any of the selected elements have a specified class |
| height() | Sets or returns the height of selected elements |
| offset() | Sets or returns the position (relative to the document) for selected elements |
| offsetParent() | Returns the first parent element that is positioned |
| position() | Returns the position (relative to the parent element) of the first selected element |
| removeClass() | Removes one or more classes from selected elements |
| scrollLeft() | Sets or returns the horizontal position of the scrollbar for the selected elements |
| scrollTop() | Sets or returns the vertical position of the scrollbar for the selected elements |
| toggleClass() | Toggles between adding/removing one or more classes from selected elements |
| width() | Sets or returns the width of selected elements |
No comments:
Post a Comment