<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我看到很多人都问过这个问题,但我发现的都没有帮助。我有一个在列表链接悬停时显示的下拉菜单,下拉菜单中的第一个链接悬停没有问题。但是,当我将鼠标悬停在第二个链接上时,下拉菜单消失了。我不明白我做错了什么。
最佳答案
删除您应用到 ul
元素的硬宽度。
#cssmenu > ul li.has-sub ul {
text-align: left;
display: none;
/* width: 24px; */
position: absolute;
margin: 0;
padding: 0;
list-style-type: none;
background: #ffffff;
border: 1px solid #ece6e8;
border-bottom: 3px solid #d9ced2;
border-top: 0 none;
}
关于javascript - jQuery 和 CSS 下拉、悬停和下拉消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32173785/