紀錄工作經驗、相關知識,解決技術相關問題。

CSS, HTML, 工作雜談, 網站相關

css 移除超連結顏色 藍色外框 / CSS remove hyperlink blue box

超連結在每個瀏覽器中都有預設 CSS 樣式,所以在手機移動端,點選超連結常出現藍色外框,這時你只需要在CSS 中,針對 a:focus 加上 outline:none 就可以去除

a,a:focus{
  outline:none;
}

1 留言

  1. Reading your article has greatly helped me, and I agree with you. But I still have some questions. Can you help me? I will pay attention to your answer. thank you.

發表迴響