a,button,input{

-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  -webkit-user-modify: read-write-plaintext-only;

}

可根据实际情况添加

outline: none;

box-shadow: none;

有时候<img />图片放在a标签里也会出现边框,可设置图片的边框为0.

除此之外还要注意其伪类的设置。

 

js方法:

onclick="this.blur()"

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-02-07
  • 2021-12-14
猜你喜欢
  • 2022-02-20
  • 2021-11-14
  • 2021-12-10
  • 2022-02-07
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案