手风琴式子菜单和内容幻灯片
希望有人能尽快帮助我。
请看这里 - http://www.designbyaltitude.com/test
你可以看到内容向上滑动单击侧边栏上的链接后。
然而,我还想要的是单击蓝色栏时的下拉子菜单。
有什么想法吗?
Hope someone can quickly help me.
Please see here - http://www.designbyaltitude.com/test
As you can see the content slides upwards once you click on a link on the sidebar.
However what I also want is a submenu to dropdown when the blue bar is clicked.
Any Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的第一个想法是向父节点添加额外的类,如果父节点有类时显示嘿子菜单?!
这应该很容易实现。
my first idea is to add additional classes to parent node and if the hey submenus display while the parent has class?!
that should be easy to realize.
我不太确定你想做什么,但我仍然会尽力帮助你。据我了解,当您单击蓝色栏时,您希望获得一个子菜单(也许在幻灯片中?)。我想这个子菜单链接到加载的内容(该部分)。我建议你将子菜单放在一个div(位置:相对)中,全部放在同一级别上。所有子菜单都应该在 UL(或 div,无论什么)中设置位置:绝对(容器将是相对 div 内的绝对位置)。所有 UL 都应该放置在 top:0 left:0 (或者任何坐标,只要所有容器都堆叠起来)。然后,在蓝色栏的“”链接中,添加属性 HREF“#the_wanted_submenu”,然后单击相关元素的 SlideDown 并隐藏所有其他元素。
I'm not so sure about what you wanna do but i'll still try to help you. From what i understand, you want to get a submenu (maybe in slideDown?) when you click on the blue bar. I guess this submenu is linked to the loaded content (the section). I suggest you put the submenuS in a div (position: relative) all on the same level. All submenu should we in an UL (or a div, whatever) setted in position: absolute (the container will be absolute position withing the relative div). All UL should we placed top:0 left:0 (or whatever the coords as long as all containers are stacked). Then, in the "" link of the blue bar, you add an attribute HREF of "#the_wanted_submenu" and on click slideDown the concerned elements and hide all others.