iOS automatic hover fix?

前端 未结 8 712
春和景丽
春和景丽 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:35

    This worked for me!

    // Ipad Navigation Hover Support
        $('#header .nav li a').bind('touchstart touchend', function(e) {
            if( $(this).attr("href") != "" ){
                window.location = $(this).attr("href");
            }
    
        });
    

提交回复
热议问题