简体   繁体   English

我怎样才能实现这个导航菜单?

[英]How could I implement this navigation menu?

I need to implement a menu navigation like this for a DotNetNuke website (I am looking for the part of navigation that started with "I want to...")我需要实现像菜单导航DotNetNuke的网站(我要寻找的是开始与“我要......”导航的一部分)

The problem is most menu systems using dropdown popus but in my case the menu needs to shift down the content.问题是大多数菜单系统使用下拉弹出菜单,但在我的情况下,菜单需要向下移动内容。

I am using SuperFish and already changed some CSS to make dropdowns inserted between menubar and the rest of content but no success in animation.我正在使用 SuperFish 并且已经更改了一些 CSS 以在菜单栏和其余内容之间插入下拉菜单,但动画没有成功。 How could I animate this effect?我怎么能动画这个效果?

I am a ASP.Net developer with a bit knowledge of JavaScript/CSS.我是一名 ASP.Net 开发人员,对 JavaScript/CSS 有一些了解。 This is for DotNetNuke and the navigation menu is dynamically created.这是针对 DotNetNuke 的,并且导航菜单是动态创建的。

Most drop down menus that appear over other elements on the page will be positioned absolute in the css, if you want to push the content down then you could try "position:relative" instead.大多数出现在页面上其他元素上的下拉菜单将在 css 中绝对定位,如果您想将内容向下推,那么您可以尝试“位置:相对”。

The menu you posted is actually jquery driven and doesn't appear to have a "position" element in the CSS, it just expands a hidden box onclick.您发布的菜单实际上是 jquery 驱动的,并且在 CSS 中似乎没有“位置”元素,它只是在单击时展开一个隐藏框。

$("#homeone").click(function(){
    $(".want2>ul").slideToggle("slow");
});

That, and a bit CSS, see here:那个,还有一点 CSS,请看这里:

http://codepen.io/damianocel/pen/wKKbjO http://codepen.io/damianocel/pen/wKKbjO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM