Simulate Hover using jQuery

前端 未结 4 430
星月不相逢
星月不相逢 2020-12-19 04:03

Given the existing \"buttons\"

HTML:

 
      
4条回答
  •  爱一瞬间的悲伤
    2020-12-19 04:58

    Try adding onClick="return true" in your link a href tag

    About us 
    

    the onClick="return true" should simulate a cursor hovering over then leaving the hover area. effectivly giving you a hover effect.

    keep in mind, ur finger has to touch the button for the hover effect to take place, which means the user will only see the change for a second or two before the link loads a page.

提交回复
热议问题