赞
踩
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <title>demo</title>
- <meta name="wap-font-scale" content="no">
- <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
- <meta name="keywords" content="" />
- <meta name="description" content="" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <style>
- .btn:active {
- background: #EFEFF1;
- -webkit-tap-highlight-color:transparent;
- color: red;
- }
- </style>
- </head>
- <body>
- <a href="javascript:void(0);" class="btn">按钮</a>
-
- <script>
- document.body.addEventListener('touchstart', function () { });
- </script>
- </body>
- </html>
再点击按钮就有点击效果了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。