.header .header-nav{
display: inline-block;
color: #f5f5f5;
font-size: 14px;
list-style: none;
margin-left: 10px;
}
.header .header-nav>li{
float: left;
list-style: none;
width: 50px;
height: 38px;
line-height: 38px;
margin: 0 10px;
position: relative;
cursor: pointer;
}
.header .header-nav li .caret{
width: 0;
height: 0;
position: absolute;
top: 50%;
right: 0;
border:5px solid transparent;
border-top:5px solid #f5f5f5;
}
.header .header-sub-nav{
position: absolute;
left: 0;
top: 38px;
width: 100px;
display: none;
border: 1px solid #bbb;
background-color: #f7f7f7;
overflow: hidden;
z-index: 2;
}
.header .header-sub-nav li{
height: 25px;
line-height: 25px;
color: #666;
padding: 0 5px;
margin-top: 5px;
border-bottom:1px solid #eee;
cursor: pointer;
}
====================================
html css js 代码都在上面 就是一个很简单的二级菜单 但搞不懂在ie7下一直报错
兼容问题的知识比较弱,尤其是老版本ie,请好心人帮忙解答。
习惯受伤
鑫强