H开发者_JAVA技巧ow to add a CSS from style sheet in jquery
it doesn't matter where you define the css: you can define them directly in your html document (not nice style), put them into one or several external css-files or create them via JS (not nice style, too). After that, you can use the addClass method
$("p").addClass("myClass yourClass");
All css methods of jQuery can be found here
精彩评论