ontouchstart and ontouchend in jquery?

后端 未结 4 845
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-15 17:23

I am currently using the following for every element I want to change the class of on touch:

ontouchstart=\"$(this).addClass(\'select\');\" ontouchend=\"$(this).         


        
4条回答
  •  误落风尘
    2021-02-15 17:51

    Why don't you use the :hover pseudo-class for this? It seems to me that this is a temporary change of the CSS rules of the nav_li element.

提交回复
热议问题