iOS automatic hover fix?

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

    There is a more simpler way to fix the issue with iOS and hover states, using CSS. For the link you have an issue with set the cursor property to pointer and the hover state will be ignored on iOS. For all links to function as expected, see below:

    a
    {cursor: pointer;}
    

提交回复
热议问题