iOS automatic hover fix?

前端 未结 8 713
春和景丽
春和景丽 2020-12-04 17:01

Is there a jQuery plugin or JavaScript script that automagically loops through each CSS hover (found in an external stylesheet) and binds it with a double touchdown event?

8条回答
  •  被撕碎了的回忆
    2020-12-04 17:41

    I created this update apon Richard JP Le Guens solution. It works GREAT, but my version fixes the issue recognized by DADU.

    Also I fixed his workaround to detect iPads. My solution detects any other touch devices too (except IE10 on MS surface, I didn't remember the MS special treatment).

    My fix is not a 100% perfect solution, but it resets the hover fix at least when hovering another link.

    
    
    
        TouchDevice Experiment
        
        
        
    
    
        Google
        stackoverflow.com
    
    
    

提交回复
热议问题