How to style forms using jQuery Mobile on a website

偶尔善良 提交于 2019-12-12 02:22:45

问题


  1. How can I use jQuery Mobile to style my forms? None of the other form styles look as cool.

  2. Will it cause any conflict with jQuery plugins (i.e. cycle, validate, etc.) or cause conflict for anything else on my site?

  3. Also is there any way to just use the form part of jQuery Mobile?

PS: I know UI is coming up with it in version 2.0 but it's still a few months away, so don't suggest it.


回答1:


jQuery Mobile will cause no conflicts with jquery plugins (well, almost), but it will try to override the way the page is constructed, so it won't look like it did upto now. You cannot use JQM without it rebuilding your interface to some extent. You have been warned.

But despite that - I belive you can make it work with your forms and style the site as well.

important tip: <div data-role="page"> is now optional and you want it to be. Try not to use JQM's wrappers - it might make less changes to how the rest of the site looks



来源:https://stackoverflow.com/questions/7348509/how-to-style-forms-using-jquery-mobile-on-a-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!