jqtouch中的鼠标悬停?

发布于 2024-10-10 22:30:38 字数 134 浏览 0 评论 0原文

是否可以在 iPhone 上使用鼠标悬停或悬停类型的功能?我正在尝试为基本区域图像地图编写代码,但使用鼠标悬停或悬停都无法使悬停功能正常工作。只是希望当用户手指在地图上拖动时图像能够切换。

任何建议都非常感激。

谢谢 保罗

Is it possible to use mouseover or hover type functions on an iphone? I'm trying to write code for a basic regional image map and cant get the hover function to work at all using either mouseover of hover. Just wanted the images to switch as users finger drags across the map.

Any suggestions gratefully received.

Thanks
Paul

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

就此别过 2024-10-17 22:30:39

在jQTouch中,您可以使用事件“滑动”和“点击”而不是“悬停”和“单击”。

参见-> h**p://github.com/senchalabs/jQTouch/wiki/callbackevents

Apple 文档提到了有关“悬停”的以下内容:

“...在 iPhone OS 上的 Safari 中模拟鼠标事件。因此,仅依赖 mousemove、mouseover、mouseout 或 CSS 伪类 :hover 的元素在触摸屏上可能并不总是按预期运行iPad 或 iPhone 等设备”

来源:http://developer.apple。 com/library/safari/#technotes/tn2010/tn2262/index.html

In jQTouch you can use the events "swipe" and "tap" instead of "hover" and "click".

See -> h**p://github.com/senchalabs/jQTouch/wiki/callbackevents

The Apple documentation mentions the following on "hover":

"...mouse events are emulated in Safari on iPhone OS. As a result, elements that rely only on mousemove, mouseover, mouseout or the CSS pseudo-class :hover may not always behave as expected on a touch-screen device such as iPad or iPhone"

source: http://developer.apple.com/library/safari/#technotes/tn2010/tn2262/index.html

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