如何更改子菜单的边框颜色? [英] How to change the border-color of a sub menu?
本文介绍了如何更改子菜单的边框颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在下面的代码中,我想将border_color更改为黑色。
我尝试使用以下代码但是类的边框颜色没有改变'。关于'
到黑色。怎么做?
In the following code I would like to change the border_color to black.
I tried with the following code but border-color not getting changed for class '.About'
to black. How to do it?
<div id="header" class="header">
<ul id="nav">
<li id="ddd">
<h1>
vasan heights
</h1>
</li>
<li class="home"><a href="#">Home</a></li>
<li class="About us" ><a href="#">About us</a>
#nav li a {
color: white;
text-decoration: none;
display: block;
}
#header #nav a .About us
{
border-color:Blue;
}
推荐答案
将你的css更改为:
change your css as:
#header #nav .Aboutus
{
border:1px solid blue;
}
这篇关于如何更改子菜单的边框颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文