0

我正在 Concrete5 CMS 上开发一个网站。我已经设置了一个超级鱼菜单,并且一切正常……当我不处于“编辑模式”时。

这是我的代码:

$('.breadcrumb-nav .inner > ul').superfish({
    hoverClass:    'sfHover',          // the class applied to hovered list items
    delay:         500,                // the delay in milliseconds that the mouse can remain outside a submenu without it closing
    animation:     {opacity:'show'},   // an object equivalent to first parameter of jQuery’s .animate() method. Used to animate the submenu open
    animationOut:  {opacity:'hide', height: 'toggle'},   // an object equivalent to first parameter of jQuery’s .animate() method Used to animate the submenu closed
    speed:         'fast',           // speed of the opening animation. Equivalent to second parameter of jQuery’s .animate() method
    speedOut:      'fast',             // speed of the closing animation. Equivalent to second parameter of jQuery’s .animate() method
    cssArrows:     true               // set to false if you want to remove the CSS-based arrow triangles
});

--

当我不编辑页面时,superfish 的工作方式如下:

悬停.breadcrumb-nav .inner > ul > li将类添加sfHover.breadcrumb-nav .inner > ul > li. - 正如人们所期望的那样

--

当我处于编辑模式时,由于某种原因会发生这种情况:

悬停.breadcrumb-nav .inner > ul > li将类添加sfHover.breadcrumb-nav .inner > ul. - 父项而不是单个列表项。

--

我希望有人可以对这个问题有所了解。我目前无法提供链接,但我会在网站上线后提供。

谢谢!

4

1 回答 1

0

我不确定,但是您正在使用的类名可能也被 C5 在编辑模式下添加的一些东西使用?也许尝试更改您的类名(在您的导航菜单标记、CSS 和 superfish 初始化 javascript 代码中)——例如更改.breadcrumb-nav.site-breadcrumb-nav(只是一个示例)。C5 通常在不污染类名方面做得很好(大多数 C5 添加的东西都以 为前缀ccm-)但有时可能会漏掉一些东西。

于 2013-08-29T18:26:24.947 回答