如何仅使用 jQuery Mobile 支持触摸事件(无 UI 增强)? [英] How to use jQuery Mobile for its touch event support only (no UI enhancements)?

查看:18
本文介绍了如何仅使用 jQuery Mobile 支持触摸事件(无 UI 增强)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个具有自己的外观和感觉的网络应用.我只想将 jQuery Mobile 用于触摸事件支持.

I’m working on a web app that has its own look and feel. I want to use jQuery Mobile for the touch events support only.

当我链接 jquery.mobile.min.js(不链接 css)时,我的页面布局被破坏了.

When I link jquery.mobile.min.js (without linking the css), then the layout of my page is broken.

如何配置(初始化)jQuery Mobile 以仅使用触摸事件支持?由于我没有任何 JQM 页面相关事件,我是否会在 jQuery 文档就绪挂钩中绑定事件?

How can I configure (initialize) jQuery Mobile to only use touch events support? Would I bind the events in the jQuery document ready hook since I'd not have any JQM page related event?

编辑

在 jsfiddle 中查看此示例:http://jsfiddle.net/redhotsly/JGgrw/.该 html 包含一个

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