开发者

Can i get the same style for a div as i get on a button?

开发者 https://www.devze.com 2023-02-01 20:47 出处:网络
In jquery you could make a cool button with $(\"a\").button(). It then gets a certain style base on the them开发者_Go百科e.

In jquery you could make a cool button with $("a").button(). It then gets a certain style base on the them开发者_Go百科e.

Is there are way i can style a div wrapping my content with the same style as my button? any classes to add?

Thanks


I think you're thinking of jQuery UI, rather than just jQuery.

Yes, you can apply the various theme styles to your own elements if you like. For example:

$("your selector here").addClass("ui-widget ui-state-default ui-corner-all");

Live copy

The theming page talks about the theme styles, you'll want to pick the ones that best suit what you're doing. The above is just an example set.

0

精彩评论

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

关注公众号