css - 移动端cursor:pointer问题
本文介绍了css - 移动端cursor:pointer问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
移动端 给div设置cursor:pointer会导致点击时出现一个蓝色背景
简单的几行代码
<div>test<div>
<style>
div{
cursor:pointer;
}
</style>
移动端点击这个div时,会出现一个蓝色背景,这是怎么来的?如何解决呢?
解决方案
*{
-webkit-tap-highlight-color: transparent;
}
这篇关于css - 移动端cursor:pointer问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文