Of course you can by using jQuery's css() method 4 : http://docs.jquery.com/CSS/css#namevalue
So if for example you have the following 3 HTML:
<p style="color:red;">A colored text</p>
You can change the color by doing the 2 following in jQuery:
And it's going to work 1 in IE6.
!important does work in IE6, it's just your selector 7
span[style] won't, as attribute selectors aren't supported 6 there. If you can find another selector 5 that will pick the spans you want to override, that'll 4 work fine. Perhaps just
.block span is enough?
span.style.fontWeight= 'normal'; span.style.color= 'black';
More Related questions