JQuery Mobile ui-datepicker 主题
我试图将 ui-datepicker 主题更改为“a”,但它似乎没有继承它。
有人知道如何更改日期选择器的主题吗?
谢谢
I am trying to change the ui-datepicker theme to "a" but it doesn't seem to inherit it.
Does anyone know how to change the theme for the datepicker please?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 @Jayraj 提到的,jQueryMobile 的日期选择器仍处于实验阶段,但我在手动更改 jQueryMobile 日期选择器小部件(jquery.ui.datepicker.mobile.js)中默认设置的布局主题方面取得了一定的成功)。
以下元素提供默认数据主题 'c' (通过其类名称):
以及数据主题为 的 ui-btn-up 小部件的以下样式>'e':
更改这些值以
恭敬地产生预期结果,但我想通过根据传入的选项更改这些值来使这些值动态化将是一个更好的解决方案:3
As @Jayraj mentioned, the datepicker for jQueryMobile is still in an experimentation phase, but I've had a moderate amount of success in manually changing the layout themes set by default in the jQueryMobile datepicker widget (jquery.ui.datepicker.mobile.js).
The following elements are giving a default data-theme of 'c' (through their class names) :
As well as the following style for a ui-btn-up widget with a data-theme of 'e':
Changing these values to
respectfully have yielded expected results, but I would imagine that making these values dynamic by changing them based on the options passed in would be a much better solution :3
jQuery Mobile CSS 文件不包含任何 ui-datepicker 类或类似的类。日期选择器也在 jQuery Mobile 文档站点上作为实验提供。现在可能不可能
The jQuery Mobile CSS file does not contain any classes for ui-datepicker or anything similar. The datepicker is also given as experimental on the jQuery Mobile documentation site. It probably isn't possible right now