在 Chrome / Safari 中不使用 jQuery Mobile 样式表时页面转换会中断

发布于 2024-12-13 10:19:47 字数 169 浏览 4 评论 0原文

我注意到,在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叹沉浮 2024-12-20 10:19:47

对于阅读此线程并遇到相同问题的其他人,我删除了该行:

cssTransitions: "WebKitTransitionEvent" in window,

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:

cssTransitions: "WebKitTransitionEvent" in window,

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文