Two different jQuery UI themes on the same page

人走茶凉 提交于 2019-12-30 06:56:09

问题


I want to have two different jQuery UI accordion menus on the same page, but I want them to have different themes. Is this possible?


回答1:


Absolutely. The jQuery UI CSS Framework has a robust and complete theming solution. Just give your accordions separate CSS classes - jQuery UI classes are semantic in nature - and off you go! Let me know if you'd like an example.

EDIT: There are many different ways to do this, depending on what your needs are. See the bottom part of this page for more information on how to use theme-ing with the accordion




回答2:


According to the article Using Multiple jQuery UI Themes on a Single Page from the Filament Group, it is possible to provide a CSS Scope when a theme is downloaded that will allow you to specify use of alternate themes on a single page. There is also a link to a demo page.

Disclaimer: I have not tried doing this myself, but it does look promising.



来源:https://stackoverflow.com/questions/988078/two-different-jquery-ui-themes-on-the-same-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!