开发者

How to style forms using jQuery Mobile on a website

  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 any开发者_JS百科thing 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜