IOS系统不支持伪类active效果
- 问题描述:在手机端网页中,设计了按钮、标签点击时的active效果,但是IOS端没有效果;
- 解决方案:代码如下
<body ontouchstart="" onmouseover=""></body>
- 总结:给
标签添加body
与ontouchstart
事件即可;亲测有效……onmouseover
<body ontouchstart="" onmouseover=""></body>
body
标签添加 ontouchstart
与 onmouseover
事件即可;亲测有效……