div高度见阴影部分
ul高度见阴影部分
实现的html代码如下:
css代码如下:
.navBar {
clear: both;
width: 100%;
border: solid;
/*border-top: solid;*/
border-bottom: solid;
border-width: 1px;
border-color: #dddddd;
margin:0px;
height: 1.5em;
}
.navBar ul {
width: 100%;
height: inherit;
background-color: white;
margin-top: 8px;
text-align: center;
padding-left: 10px;
padding-bottom: 0px;
margin-bottom: 0px;
}
.navBar ul li{
float: left;
display: inline-block;
vertical-align: middle;
list-style: none;
padding-right: 20px;
margin-bottom: 0px;
padding-bottom: 0px;
height: inherit;
}
.navBar ul li div{
clear: both;
font-size: 14px;
color: #929292;
height: inherit;
margin-left: 0px;
padding-left: 20px;
padding-right: 20px;
margin-bottom: 0px;
padding-bottom: 0px;
/*padding-bottom: 0.6em;*/
/*border-bottom: solid;*/
/*border-color: #00B7FF;*/
/*border-width: 2px;*/
}