移动和PC端中的hover处理

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

在移动端中浏览器会有自带的一个点击高亮效果,可以通过给a标签或者body,html加如下代码:

-webkit-tap-highlight-color:transparent;

 

posted @ 2017-01-20 11:28  ylpmty  阅读(2718)  评论(0)    收藏  举报