Why won't the color of my navbar links change

This question already has an answer here:

  • Change navbar color in Twitter Bootstrap 13 answers

  • You need to use .textstyle16 a or .textstyle16 a:link as a selector. The links are child elements of the .textstyle16 elements, they don't have that class themselves, and there is a color declaration for a tags in the browsers default styles which applies if you don't use these selectors.


    你需要使用color:不是font:


    It is probably being overwritten elsewhere in your code. Add !important to the color definition. If this correct the color, then yes, it's being overwritten somewhere in your styles.

    Right-click the link and "inspect" the link in Google Chrome or Firefox. You'll be able to see which styles are being applied to the link specifically.

    Example:

    在这里输入图像描述

    链接地址: http://www.djcxy.com/p/89432.html

    上一篇: 更改CSS引导菜单活动链接颜色

    下一篇: 为什么我的导航栏链接的颜色不会改变