html - chrome mobile 中点击按钮上的蓝色突出显示?

标签 html css

当我点击移动 chrome 中的按钮时。蓝色会出现几秒钟。我该如何删除它?我想设计一些属于我自己的东西,比如涟漪效应。我在检查工具中找不到任何附加到它的伪类。

enter image description here

*:focus {
      outline: none;
      -ms-touch-action: manipulation;
      touch-action: manipulation;
}


div.filterButton{ 
      position: relative;
      padding-top: 10px;
      cursor: pointer;
      overflow: hidden;
}

最佳答案

这是 -webkit-tap-highlight-color 默认行为。

*:focus {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

关于html - chrome mobile 中点击按钮上的蓝色突出显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42507623/

相关文章:

css - 在 IE9 中水平未对齐的 div 在 FF/IE8/Chrome/Opera/Safari 上正常

javascript - 将 CSS 分解为规则

jquery - 页面加载后的文字效果展示

css - -webkit-外观 : none; not working for button

javascript - 如何在禁用的字段集中启用一个按钮

javascript - 是否可以在 slider 按钮上设置 jQuery UI slider 的值?

html - 格式化输入字段

css - 如何针对特定浏览器进行媒体查询

css - 菜单下拉显示在错误的位置

php - 如何选择一个更大的id