看这个连接 https://juejin.im/entry/58f6d9fb44d904006c121d2e html
移动端:active伪类无效的解决方法:less
By default, Safari Mobile does not use the :active state unless there is a touchstart event handler on the relevant element or on the <body>ide
看来在iOS系统的移动设备中,须要在按钮元素或body/html上绑定一个touchstart事件才能激活:active状态。函数
document.body.addEventListener('touchstart', function () { //...空函数便可});