检测 HTML 页面中的手指悬停事件

Detect Finger Hover Event in an HTML Page

本文关键字:手指 悬停 事件 HTML 检测      更新时间:2023-09-26

android API允许我们在为三星Galaxy S4开发Java应用程序时捕获"手指悬停"事件。

我想开发一个HTML5页面来捕捉这个事件,

怎么能做到这一点?

这是鼠标(手指)的例子

.css:

#div1{
    width:50px;
    height:50px;
    background:red;
}
#div1:hover
{
    opacity:0.5;
    cursor:pointer;
}

你可以在 :http://jsfiddle.net/ashi2009/gXqLd/中看到我的代码结果或参见:http://mobiforge.com/developing/story/html5-mobile-web-touch-events