Z-index:如何使嵌套元素出现在其父元素下面 [英] Z-index: How to make nested elements appear underneath their parent element

查看:240
本文介绍了Z-index:如何使嵌套元素出现在其父元素下面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个小提琴应该会显示问题:

This fiddle should demonstrate the issue:

http ://jsfiddle.net/5sqxQ/2/

我想要子菜单出现在父菜单下面。我当时正在寻找扩展这个用JavaScript从底层滑动菜单从悬浮的父li元素。

I want the sub menu to appear underneath the parent menu. I was then was looking to extend this with JavaScript to slide the menu from underneath on hover of the parent li element.

不关心JavaScript,但不能弄清楚如何风格化元素实现所需的分层。

Not fussed about the JavaScript but can't figure out how to style the elements to achieve the desired layering.

推荐答案

不要。

类似这样: http://jsfiddle.net/5sqxQ/15/

这篇关于Z-index:如何使嵌套元素出现在其父元素下面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆