In jQuery è semplice resettare completamente gli stili inline di un elemento.
Possiamo implementare la seguente soluzione:
(function( $ ) {
if( !$.fn.resetCSS ) {
$.fn.resetCSS = function() {
return this.each(function() {
var $element = $( this );
$element.removeAttr( "style" );
});
};
}
})( jQuery );