开发者

Add CSS form Style sheet to a jquery

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜