what is wrong with my css? active links not changing color

后端 未结 2 2000
悲哀的现实
悲哀的现实 2021-01-28 23:53

I cannot get my Wordpress menu active links to remain red.

I\'ve added the CSS I think is relevant to the navigation of, but also the body, etc, in case that is impactin

相关标签:
2条回答
  • 2021-01-29 00:35

    Active is only used while a user is clicking on an element, it's not meant to indicate which page is active. You should add a class to the active navigation item and style that class.

    source: http://css-tricks.com/almanac/selectors/a/active/

    0 讨论(0)
  • 2021-01-29 00:36

    it doesn't work like that, you need to set active class or id with serverside language or with js, then you can indicate active page.

    0 讨论(0)
提交回复
热议问题