窗口向下滚动时子菜单向上滑动太多

时间:2015-09-04 15:17:57

标签: css joomla3.0

我有一个用Joomla构建的网站。该网站有一个带子菜单的主菜单。当窗口向下滚动一点时,子菜单向上滑动的次数超出预期,如下图所示(错误的外观)。

problem is shown here

窗口未向下滚动时的菜单如下所示(正确的外观):

enter image description here

可能是什么问题?我应该在哪里修改配置或代码?

这是css / s5_flex_menu.css的一部分。我希望它会有所帮助:

    /* all menu links */
#s5_nav a, #subMenusContainer a{
        text-decoration:none;
}

/* Just main menu links --[for non-javascript users this applies to submenu links as well]*/
#s5_nav a{
        margin:0;
}

#subMenusContainer ul li {
        padding:0px;
        margin:0px;
}

/* Just sub menu links */
#subMenusContainer a, #s5_nav li li a{
        text-align:left;
        font-size:0.9em;
        width:auto;
        text-transform:uppercase;
        color:#ffffff;
        white-space: pre;
}

#subMenusContainer a:after, #s5_nav li li a:after {
content:"\a";
}

/* ----[ OLs ULs, LIs, and DIVs ]----*/


/* All ULs and OLs */
#nav, #s5_nav ul, #s5_nav ol, #subMenusContainer ul, #subMenusContainer ol {
        padding: 0;
        margin: 0;
        list-style: none;
        line-height: 1em;
}

/* All submenu OLs and ULs */
#s5_nav ol, #s5_nav ul, #subMenusContainer ul, #subMenusContainer ol {
        left:0;
}

#subMenusContainer img {
margin-right:8px;
}

0 个答案:

没有答案