Jquery Mobile 主题忽略我的数据主题
我制作了自己的数据主题,并尝试将其应用到表单元素,但它默认使用 a、b、c、d、e 而不是我的。我已将其添加到各个方面,以确保涵盖所有内容,但我可以在副本中看到它使用默认值。
<div data-role="content" data-theme="home">
<form action="form.php" method="post">
<div data-role="fieldcontain" data-theme="home">
<label for="select-choice-1" class="select" data-theme="home">Title:</label>
<select name="select-choice-1" id="select-choice-1" data-native-menu="false"data-theme="home">
<option value="mr" data-theme="home">Mr</option>
<option value="mrs" data-theme="home">Mrs</option>
<option value="miss" data-theme="home">Miss</option>
<option value="ms" data-theme="home">Ms</option>
<option value="dr" data-theme="home">Dr</option>
</select>
</div>
</form>
</div><!-- /content -->
I have made my own data theme and I'm trying to apply it to a form elements but it's defaulting to using the a, b, c, d, e instead of mine. I've added it to every aspect to make sure I'm covering everything but I can see in the copy it's using the defaults.
<div data-role="content" data-theme="home">
<form action="form.php" method="post">
<div data-role="fieldcontain" data-theme="home">
<label for="select-choice-1" class="select" data-theme="home">Title:</label>
<select name="select-choice-1" id="select-choice-1" data-native-menu="false"data-theme="home">
<option value="mr" data-theme="home">Mr</option>
<option value="mrs" data-theme="home">Mrs</option>
<option value="miss" data-theme="home">Miss</option>
<option value="ms" data-theme="home">Ms</option>
<option value="dr" data-theme="home">Dr</option>
</select>
</div>
</form>
</div><!-- /content -->
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
样本仅限于唯一的字母 [az],而不是单词。您应该将主题设为“h”,然后使用 data-theme="h" 或类似的内容。
http://jquerymobile.com/test/docs/api/themes.html
Swatches are limited to a unique letter [a-z], not a word. You should make your theme "h" and then use data-theme="h" or something along those lines.
http://jquerymobile.com/test/docs/api/themes.html