• responsive --- a:hover伪类在ios移动端浏览器内无效的解决方法


    a:hover伪类在ios移动端浏览器内无效的解决方法

    a:hover伪类在ios移动端浏览器内无效的解决方法a:hover 设置的样式在ios系统的浏览器内显示不出来,看来在iOS系统的移动设备中,需要在按钮元素或body/html上绑定一个touchstart事件才能激活:active状态。

    代码如下:

    document.body.addEventListener('touchstart',function(){});

    或者给body添加ontouchstart

  • 相关阅读:
    vc++ 编译器工具
    lesson 17 进程间通信 孙鑫 VC++
    VC++ msdn
    VC++ 相关问题
    MySQL
    Git
    Angular
    Linux
    阿里云服务器
    Git
  • 原文地址:https://www.cnblogs.com/lisaShare/p/13392034.html
Copyright © 2020-2023  润新知