IOS pseudo-classes: active Failure

IOS is not compatible with the: active pseudo-class, so there will be problems on state control, the solution is to add an empty click event:

Moving end add: ontouchstart

<a class="m-btn" ontouchstart=""></a>

PC end add: onmouseover

<a class="m-btn" onmouseover=""></a>

 

OK ~

Guess you like

Origin www.cnblogs.com/wangqiao170/p/11323382.html