0

我为此导航创建了工具提示箭头。它们出现在悬停时,但它们也出现在下拉列表的底部。我想知道是什么代码将它们保留在那里!

这是我用来实现它们的代码。

链接到开发网站

.cftopnavrightlower ul > li:hover:after {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
left: 50%;
bottom: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #FFC700;
margin-left: -10px;
}
4

1 回答 1

0

您需要针对箭头所针对的 UL 提供更高的特异性。ul.flyout 使用当前选择器的箭头设置样式。

这可能会更好:

#menu-header-nav > li:hover:after {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
left: 50%;
bottom: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #FFC700;
margin-left: -10px;
}
于 2013-02-26T20:12:23.450 回答