Chris W. Parker schrieb:
> On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez <> said:
> 
>> I'm not finding any methods for editing stylesheets.
>>
>> I'd like to change a style as it is defined in the document.
> 
> That's probably because there are none. You don't (can't?) modify the
> .css file directly with js. Instead you modify the styles that have
> already been applied.

Not exactly. Support for changing and adding styles to existing 
stylesheets (DOM Level 2 Style) isn't too good though. I think Opera 
introduced that with v9. Also there are - again - different routes to go 
for IE and other modern browsers.

Here's a chart:
http://www.webdevout.net/browser_support_dom.php#support-domstyle

More information: http://www.w3.org/TR/DOM-Level-2-Style/

I think someone on the list made a plugin for this already...


-- Klaus


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to