我已经吹了5个小时了。
还有第二个菜单。当您将鼠标悬停在某个项目上时,下拉菜单位于错误的位置。
请帮忙。
这是CSS。
/* MY RIGGING MENU*/
#menu-rigging-menu {
border-bottom: 5px solid #EDEDED;
display:inline-block !important;
text-align:left;
width: 100%;
list-style: none;
}
#menu-rigging-menu ul {
margin:0;
text-indent:0;
}
#menu-rigging-menu a li, #menu-rigging-menu a {
display: inline-block;
text-decoration: none;
float: left;
background: #ededed;
margin: 0px 10px;
}
#menu-rigging-menu li a {
color: #000000;
line-height: 38px;
padding: 0 10px;
}
#menu-rigging-menu li a:hover {
color: red;
}
#menu-rigging-menu li {
margin: 0 2.85714rem 0 0;
position: relative;
list-style: none outside none;
}
#menu-rigging-menu li ul {
display: none;
position: absolute;
top: 43px;
z-index: 1;
margin:0;
padding:0;
}
#menu-rigging-menu li ul ul {
left: 100%;
top: 0;
}
#menu-rigging-menu li:hover > ul {
border-left: 0 none;
display: inline-block;
}
#menu-rigging-menu ul li a {
background: none repeat scroll 0 0 #EFEFEF;
border-bottom: 1px solid #EDEDED;
display: block;
font-size: 0.785714rem;
line-height: 2.18182;
padding: 0.571429rem 0.714286rem;
white-space: normal;
width: 12.8571rem;
/* position:relative; */
}
#menu-rigging-menu li ul li a:hover {
background: none repeat scroll 0 0 #E3E3E3;
color: #444444;
}
#menu-rigging-menu .current-menu-item > a, #menu-rigging-menu .current-
menu-ancestor > a, #menu-rigging-menu .current_page_item > a, #menu-
rigging-menu .current_page_ancestor > a {
color: #636363;
font-weight: bold;
}