Does jQuery - or one of it's plugins - have equivalent functionality to the YUI StyleSheet Utility?
"The StyleSheet Utility is capable of creating new stylesheets from scratch as well as modifying the existing stylesheets held as properties of elements sourced from the same domain or any inline elements."
This (I'm fairly sure) is creating and modifying CSS stylesheets themselves not looping through the DOM and changing element's style
property (as the jQuery.css()
method does).
I think this technique has the potential to significantly change the way a lot user interface related Javascript is written so would be interested to hear about any other libraries where it's been implemented too.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…