防止浏览器在点击事件中弹出 [英] Prevent browser pop on taphold event
本文介绍了防止浏览器在点击事件中弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在基于jquery-mobile的Web应用程序中,如何防止默认的浏览器菜单显示在点击保持"上..相反,我想显示自定义对话框页面..
In a jquery-mobile based web app, how do i prevent the default browser menu from showing on "tap hold" .. instead i want to show a custom dialog page ..
下面提到的是我到目前为止的代码.
mentioned below is my code as of now ..
$(".task_row").bind('taphold',function(event, ui){
event.preventDefault();
$("#slide_down_menu").trigger('click');
});
推荐答案
使用CSS:
a {
-webkit-touch-callout: none !important;
}
不显示标准对话框
这篇关于防止浏览器在点击事件中弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文