我正在 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. - 父项而不是单个列表项。
--
我希望有人可以对这个问题有所了解。我目前无法提供链接,但我会在网站上线后提供。
谢谢!