Is it possible to override inline CSS using JavaScript with compatibility for IE6?
I came across a pure CSS solution, but unfortunately it doesn't work in IE.
http://www.sitepoint.com/blogs/2009/05/27/override-inline-css/
<div class="block">
<span style="font-weight: bold; color: red;">Hello World</span>
</div>
We can override this inline style with the following solution:
.block span[style]{
font-weight: normal !important;
color: #000 !important;
}
This solution works in all major browsers except IE6.