Bootstrap 3 navbar active li not changing background-color

后端 未结 6 1024
借酒劲吻你
借酒劲吻你 2020-12-24 03:03

I have added custom CSS for the active li element of navbar. But it seems to be picking the default color. Other colors such as navbar BG and text color seems to have change

6条回答
  •  一向
    一向 (楼主)
    2020-12-24 03:43

    Did you include "bootstrap-theme.css" files on your code?

    In "bootstrap-theme.min.css" files, background-image about ".active" is existed for "navbar" (check this screenshot: http://i.imgur.com/1etLIyY.png).

    It will re-declare your style code, and then it will be effected on your code.

    So after you delete or re-declare them (background-image), you can use your background color style about the ".active" tag.

提交回复
热议问题