开发者

Add CSS form Style sheet to a jquery

开发者 https://www.devze.com 2023-03-04 14:05 出处:网络
H开发者_JAVA技巧ow to add a CSS from style sheet in jqueryit 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

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

精彩评论

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

关注公众号