html 导航栏颜色代码,css – 如何更改Foundation 4中导航栏的颜色?

问题是您已在导航栏的各个部分上设置颜色以覆盖整体颜色.更具体的选择器.

请按照以下三个步骤操作:

问题的第一部分:

.top-bar-section li a:not(.button) {

//Here is where the first part of the problem is. Change this to a different color.

color:black;

}

请注意,上面的部分将使用该选择器更改所有元素的颜色(页面中的项目1下拉菜单也使用此选项,因此除非您为其指定不同的选择器,否则它将更改该下拉列表的颜色).

第二部分:

.top-bar-section > ul > .divider,.top-bar-section > ul > [role="separator"] {

//Here is where the second part of the problem is. Change this to a different color.

border-left: solid 1px black;

border-right: solid 1px black;

}

第三方:

.top-bar-section .has-form {

//Here is where the third part of the problem is. Change this to a different colour.

background:black;

}

显然,如果你想要链接:悬停颜色仍然是黑色,你可以保持下面的代码,如果没有,将它改为你希望它在悬停时的颜色:

.top-bar-section li a:not(.button):hover {

// Potential fourth part of problem

background:black;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值