Remove ALL styling/formatting from hyperlinks

后端 未结 4 1934
有刺的猬
有刺的猬 2020-12-22 18:26

I\'m creating a navigation menu with words with different colors (href links). I would like the color NOT to change on any state (hover, visited etc).

I

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-22 19:23

    You can just use an a selector in your stylesheet to define all states of an anchor/hyperlink. For example:

    a {
        color: blue;
    }
    

    Would override all link styles and make all the states the colour blue.

提交回复
热议问题