当前位置:   article > 正文

移动端页面点击按钮出现点击效果_掘金移动端,点击效果

掘金移动端,点击效果
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>demo</title>
  6. <meta name="wap-font-scale" content="no">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
  8. <meta name="keywords" content="" />
  9. <meta name="description" content="" />
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  11. <style>
  12. .btn:active {
  13. background: #EFEFF1;
  14. -webkit-tap-highlight-color:transparent;
  15. color: red;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <a href="javascript:void(0);" class="btn">按钮</a>
  21. <script>
  22. document.body.addEventListener('touchstart', function () { });
  23. </script>
  24. </body>
  25. </html>

再点击按钮就有点击效果了

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/喵喵爱编程/article/detail/771317
推荐阅读
相关标签
  

闽ICP备14008679号