真是一个好名字 發表於 2020-6-24 10:44:00

关于iphone 不兼容CSS的:active伪类样式的解决方法

<p>在iOS系统的移动设备中, 需要在按钮元素或者body/html上绑定一个touchstart 事件才能激活 :active状态;&nbsp; 如果要让css的 :active样式生效, 给body标签添加 ontouchstart = " "&nbsp; onmouseover = " ", 如果是vue ,写成 @touchstart = " "</p><br><br>
来源:https://www.cnblogs.com/paperkite/p/13186330.html
頁: [1]
查看完整版本: 关于iphone 不兼容CSS的:active伪类样式的解决方法