0

I'm trying to use multiple JQuery Mobile swatches/themes on different widgets on a single page.

E.g. : my page has theme 'a' while some button needs theme 'b'

I tried setting different data-theme attributes on the page and the button but the button still shows the same theme as the page.

How to achieve this?

4

1 回答 1

0

个人而言,我在同一页面上使用了具有不同主题的主题滚轮,并且效果很好。

如果您使用 1.4.2 版本,请检查您是否在代码中使用了类属性class="ui-btn-g",例如您是否在主题滚轮中创建了“g”主题。

还要检查是否包含所需的 css 文件。

<link rel="stylesheet" href="themes/mytheme.min.css" />

过去我遇到了问题,因为我没有包含好的 .css 文件。我知道我们从主题滚轮网站下载的文件夹中有 2 个 .css 文件,请检查您是否包含好一个。我知道现在他们提供了一个测试 html 页面来查看并解释如何包含。

跳这个对你有帮助。

于 2014-04-26T10:31:53.883 回答