关于iphone 不兼容CSS的:active伪类样式的解决方法
在iOS系统的移动设备中, 需要在按钮元素或者body/html上绑定一个touchstart 事件才能激活 :active状态; 如果要让css的 :active样式生效, 给body标签添加 ontouchstart = " " onmouseover = " ", 如果是vue ,写成 @touchstart = " "
在iOS系统的移动设备中, 需要在按钮元素或者body/html上绑定一个touchstart 事件才能激活 :active状态; 如果要让css的 :active样式生效, 给body标签添加 ontouchstart = " " onmouseover = " ", 如果是vue ,写成 @touchstart = " "