如何在网站上使用jQuery Mobile设置表单样式 [英] How to style forms using jQuery Mobile on a website

查看:113
本文介绍了如何在网站上使用jQuery Mobile设置表单样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 如何使用jQuery Mobile设置表单样式?没有其他 表单样式看起来很酷.

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

这会导致与jQuery插件发生任何冲突(即循环,验证等) 或对我的网站上的其他内容造成冲突?

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

还可以使用jQuery Mobile的表单部分吗?

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

PS:我知道UI在2.0版中即将推出,但距离它还有几个月的路程,所以不建议这样做.

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将不会与jquery插件发生冲突(嗯,几乎),但是它将尝试覆盖页面的构造方式,因此不会看起来好像到现在为止. 您不能使用JQM,除非它在某种程度上重建了您的界面.您已被警告.

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.

重要提示: <div data-role="page">现在是可选的,并且您希望它是可选的.尽量不要使用JQM的包装器-它可能对网站其余部分的外观造成的变化较小

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

这篇关于如何在网站上使用jQuery Mobile设置表单样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆