此代码在我正在处理的网站上无法正常工作,我无法找到原因。我正在尝试实现菜单,这就是我指定菜单项的原因,但它们被忽略,1和3种语言采用第一种和最后8种,2种语言采用总共24种中的前16种菜单项。我的问题在哪里?
.first-lang .wsite-menu-default li:nth-child(-n+8){
display: none!important;
}
.second-lang .wsite-menu-default li:nth-child(n+9):nth-child(-n+16){
display: none!important;
}
.third-lang .wsite-menu-default li:nth-child(n+17){
display: none!important;
}
/* flag properties as shown in demo */
a.flaggy{
position: absolute;
right: 0;
margin-top: -50px;
border-bottom: none;
}
/* properties for editor */
#icontent .flaggy{
display: none
}
#icontent .wsite-menu-default li:nth-child(even){
display: inline-block!important;
}
#icontent .wsite-menu-default li:nth-child(odd){
display: inline-block!important;
}