search

Home  >  Q&A  >  body text

前端 - 移动端iphone按下a链接背景颜色会变灰,如何解决?

在iphone下测试发现按下a链接背景会变灰一下(尤其给a取消跳转事件时很明显),用css方式如何解决呢?

大家讲道理大家讲道理2906 days ago571

reply all(4)I'll reply

  • 阿神

    阿神2017-04-17 11:43:33

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    Just use this css, you can redefine the background through this attribute

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:43:33

    Try it

    appearance:none;

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:43:33

    Did it trigger the pseudo-element’s active

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:43:33

    Mark it, I haven’t tried this. mark. Let’s see the answers from the masters.

    reply
    0
  • Cancelreply