.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,請好心人幫忙解答。
ie7下二級菜單兼容問題
Ni14
2017-03-28 13:36:19