移动端iOS点击闪烁

移动端iOS点击闪烁

    1.  $("#id").bind("touchstart click",function(e){  
    2.     e.stopPropagation()  
    3.     if(e.originalEvent.touches){  
    4.         //touch 移动端事件处理  
    5.         return false;  
    6.     }else{  
    7.        // PC端 click事件处理  
    8.      }  
    9.   
    10. })  

 

同时修改了#id 的 css  样式增加: -webkit-tap-highlight-color:transparent;  属性即可
posted @ 2016-11-26 19:06  ——暗涌  阅读(748)  评论(0编辑  收藏  举报