How to remove the default link color of the html hyperlink 'a' tag?

后端 未结 12 2139
时光说笑
时光说笑 2020-12-07 08:56

The default link color is blue. How to remove the default link color of the html hyperlink tag ?

12条回答
  •  Happy的楠姐
    2020-12-07 09:23

    If you don't want to see the underline and default color which is provided by the browser, you can keep the following code in the top of your main.css file. If you need different color and decoration styling you can easily override the defaults using the below code snippet.

     a, a:hover, a:focus, a:active {
          text-decoration: none;
          color: inherit;
     }
    

提交回复
热议问题