天天看点

IOS系统不支持伪类active效果

IOS系统不支持伪类active效果

  • 问题描述:在手机端网页中,设计了按钮、标签点击时的active效果,但是IOS端没有效果;
  • 解决方案:代码如下
<body ontouchstart="" onmouseover=""></body>
           
  • 总结:给

    body

    标签添加

    ontouchstart

    onmouseover

    事件即可;亲测有效……