作者:隔岸观火2502884207 | 来源:互联网 | 2023-05-17 16:51
got an html list working as a dropdown menu with CSS when you hover through a
element like "Products" in my example. But what I want is the same effect when hover through like "Contact" from my example. Is it possible?
当你将鼠标悬停在我的例子中的“产品”之类的
元素时,有一个html列表作为带有CSS的下拉菜单。但我想要的是悬停在我的例子中的“联系人”之类的时的效果相同。可能吗?
Here's the html:
这是html:
Contact
And the CSS code:
和CSS代码:
ul li ul {
display: none;
}
ul li:hover ul{
display: block; /* display the dropdown */
}
Thank you very much in advance.
非常感谢你提前。
2 个解决方案