如何创建 jQuery Mobile 主题
如何创建 jQueryMobile 主题?
它是覆盖 CSS 的最佳方式吗?
How do I create a jQueryMobile theme?
Is it overriding the CSS the best way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
创建主题的最佳方法实际上是修改现有主题。就像 Jquery Mobile 对其“Valenica”主题所做的那样。
使用标准 css 作为起点/参考
http://code.jquery。 com/mobile/latest/jquery.mobile.css
通常,确定哪些元素需要样式调整的最佳方法是通过 Firebug 检查它们
还值得注意的是,尝试创建主题并不是一个好主意从头开始,jquery mobile 之所以如此出色,很大一部分原因是他们已经对 css 进行了跨浏览器测试和开发。
更新:
在不久的将来将会有一个jquery移动主题roller,你可以在github上跟踪它的开发。
https://github.com/jquery/jquery-mobile
< strong>更新2
主题滚轮已准备就绪!
http://jquerymobile.com/themeroller/
The best method for creating a theme is actually modifying the existing one. Just like Jquery Mobile have done with their "Valenica" Theme.
Use the standard css as a starting point / reference
http://code.jquery.com/mobile/latest/jquery.mobile.css
Often the best way to work out which elements need the styling tweaks is to inspect them via Firebug
Its also worth noting, its not a great idea to try and create a theme from scratch, as a large part of what makes jquery mobile so great is the cross browser testing and developments they have already made to the css.
Update:
In the near future there will be a jquery mobile theme roller, you can track its development at github.
https://github.com/jquery/jquery-mobile
Update 2
The theme roller is ready!
http://jquerymobile.com/themeroller/
刚刚发现了一个用于创建原型的简洁工具,其中包括自己的主题制作器/滚轮。值得一看!更多的是主题而不是原型设计。至少在官方主题滚轮出来之前是这样。
http://www.mobjectify.com
允许您轻松添加额外的 JqueryMobile 主题并实时查看。
Just discovered a neat tool for creating prototypes which includes its own theme-maker/roller. Worth checking out! More for the themes than the prototyping. At least until the official themeroller comes out.
http://www.mobjectify.com
Allows you to easily add extra JqueryMobile themes and see it live.
这是我为 IBM 撰写的一篇文章,标题如下: 创建自定义 jQuery 移动主题
Here's an article I wrote for IBM with this exact title: Create custom jQuery mobile themes
我还没有机会测试这个主题滚轮的结果;但我认为它可能有用,至少在官方主题滚轮可用之前是这样。
I haven't had a chance to test the results of this theme roller; but I thought it might be useful, at least until the official themeroller is available.