在 Chrome / Safari 中不使用 jQuery Mobile 样式表时页面转换会中断
我注意到,在使用 jQuery Mobile 时,如果您不使用 jQuery Mobile 样式表,则在使用 Chrome 或 Safari 等 Webkit 浏览器时,您无法从一个页面移动到另一页面 - Firefox 和 IE 都可以。
有什么办法可以解决这个问题吗?
非常感谢您的帮助。
I've noticed when using jQuery Mobile if you don't use the jQuery Mobile stylesheet - you can't move from one page to another when using a webkit browser such as Chrome or Safari - Firefox and IE are fine.
Is there any way of fixing this?
Many thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于阅读此线程并遇到相同问题的其他人,我删除了该行:
From:
$.extend( $.support, {
方向:窗口中的“方向”,
touch: 文档中的“ontouchend”,
cssTransitions: 窗口中的“WebKitTransitionEvent”,
推送状态:!!历史.推送状态,
mediaquery: $.mobile.media('仅全部'),
cssPseudoElement: !!propExists('内容'),
boxShadow:!!propExists('boxShadow') && !bb,
scrollTop: (window 中的“pageXOffset”|| document.documentElement 中的“scrollTop”|| fakeBody[0] 中的“scrollTop”) && !webos,
动态BaseTag:baseTagTest(),
eventCapture: (文档中的“addEventListener”) // 这是一个弱测试。我们可能想稍后加强这一点。
});
禁用 webkit 浏览器中的 css 转换。希望这对其他人有用。
For anyone else who reads this thread and runs into the same problem, I removed the line:
From:
$.extend( $.support, {
orientation: "orientation" in window,
touch: "ontouchend" in document,
cssTransitions: "WebKitTransitionEvent" in window,
pushState: !!history.pushState,
mediaquery: $.mobile.media('only all'),
cssPseudoElement: !!propExists('content'),
boxShadow: !!propExists('boxShadow') && !bb,
scrollTop: ("pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[0]) && !webos,
dynamicBaseTag: baseTagTest(),
eventCapture: ("addEventListener" in document) // This is a weak test. We may want to beef this up later.
});
to disable css transitions in webkit browsers. Hope this of use to others.