简体   繁体   English

鼠标悬停在jqtouch中?

[英]Mouseover in jqtouch?

Is it possible to use mouseover or hover type functions on an iphone? 是否可以在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 谢谢保罗

In jQTouch you can use the events "swipe" and "tap" instead of "hover" and "click". 在jQTouch中,您可以使用“滑动”和“点击”事件代替“悬停”和“点击”。

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

The Apple documentation mentions the following on "hover": Apple文档在“悬停”上提到了以下内容:

"...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" “ ...鼠标事件是在iPhone OS的Safari中模拟的。因此,仅依赖于mousemove,mouseover,mouseout或CSS伪类:hover的元素在触摸屏设备(例如, iPad或iPhone”

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM