Skip to content

AugustusKling/jQuery-All-Styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Usage

Load the JavaScript file into your page after jQuery was loaded.

// Reading the computed style (same format as style attribute)
var cssText = jQuery(element).css('*');

// Setting the style attribute
jQuery(element).css('*', cssText);

Being able to read all the computed styles at once makes it easier to clone the visual appearance of an element independet of position in the document and applying classes. The plugin should work cross-browser but has only been tested in Firefox 4 so far.

About

jQuery CSS hook to handle all computed styles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published