今天在ios系统的移动设备中遇到a:hover弹出窗体后,无法关闭的问题。我查了一些资料整理如下
在iOS系统的移动设备中,需要在按钮元素或1body/html上绑定一个touchstart事件才能激活:active状态。
document.body.addEventListener('touchstart',function(){});
或
<body ontouchstart="">
今天在ios系统的移动设备中遇到a:hover弹出窗体后,无法关闭的问题。我查了一些资料整理如下
在iOS系统的移动设备中,需要在按钮元素或1body/html上绑定一个touchstart事件才能激活:active状态。
document.body.addEventListener('touchstart',function(){});
或
<body ontouchstart="">