使用 jQuery Mobile 支持的网站使用我自己的主题(样式)设计和图标的正确方法是什么?
jQuery Mobile 有 5 个内置主题
http://jquerymobile.com/demos/1.0a4.1/#docs/toolbars/../../docs/api/themes.html
但是我正在制作的移动网站的设计不同,图标也不同。
如何以及在哪里编写自定义CSS并将默认图标更改为自定义图标?
我应该选择任何默认主题的 CSS 并对其进行更改吗?
我应该用我的图标替换默认图标以保持相同的名称吗?
jQuery mobile has 5 inbuilt themes
http://jquerymobile.com/demos/1.0a4.1/#docs/toolbars/../../docs/api/themes.html
But design of the mobile website which I'm making is different an icons are also different.
How and where to write custom css and change default icon to custom icon?
Should i choose any default theme's CSS and make changes in that?
Should i replace the default icons with my icons to keep the same name?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会拒绝对核心 jQM CSS 文件进行更改,而是在您自己的 CSS 中覆盖您想要的内容。对于主题,您需要按如下方式推出自己的主题:
http://jquerymobile.com/demos/1.0a4.1/docs /api/themes.html
… 对于自定义按钮图标,文档如下:
http://jquerymobile.com/demos/1.0a4.1 /docs/buttons/buttons-icons.html
I would resist making changes to the core jQM CSS file, instead override what you want in your own CSS. For themes, you need to roll your own as follows:
http://jquerymobile.com/demos/1.0a4.1/docs/api/themes.html
… and for custom button icons, here's what the documentation has to say:
http://jquerymobile.com/demos/1.0a4.1/docs/buttons/buttons-icons.html