下面的CSS样式删除了子菜单上的边框,设置活动的菜单项一直显示,并且设置非活动的菜单项,只在它们的父级菜单被鼠标经过时显示。
The following CSS removes the border on the second nav level, sets the active subnav to always display, and sets the inactive subnavs to display when their parents are hovered.
这跟别的CSS下拉菜单比起来并不是很难——在li元素上设置鼠标经过的样式,然后ie会因为它不支持:hover伪类的实现而显示异样。
This is not much different than any other CSS dropdown menu — the hover is on the li element, so IE will choke due to its poor implementation of the :hover psuedo-class.
这跟别的CSS下拉菜单比起来并不是很难——在li元素上设置鼠标经过的样式,然后ie会因为它不支持:hover伪类的实现而显示异样。
This is not much different than any other CSS dropdown menu — the hover is on the li element, so IE will choke due to its poor implementation of the :hover psuedo-class.
应用推荐