How to make child element upper than parent with z-index
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Suppose I have this code: Hello world This jsFiddle: http://jsfiddle.net/ZjXMR/ Now, I need to have in above of but in the jsFiddle you can see that the child element rendered before . If you remove the parent class position or z-index , everything works fine. This is the correct behavior that I need: http://jsfiddle.net/ZjXMR/1/ How can I do that with z-index and without removing anything from page? 回答1: This is impossible as a child's z-index is set to the same stacking index as its parent. You have already solved the problem by removing