As a fake front-end, the following bugs appear when you debug a page.
On the left side of the menu fixed to fix, the level two menu can not set effective z-index, resulting in the menu hidden under the page elements, obviously page elements of the Z-index is 1, but regardless of the menu Z-index set to how large, are not useful.
Looked up the information, the original Google browser in the setting position:fixed, will trigger the element to create a new cascade context, and as a whole in the parent Cascade context comparison. As the above DOM structure, when the Position:fixed property is set to B, it triggers the creation of a new cascade context, and its parent cascade context becomes a, so B can only cascade comparisons within a. This is the "from the father principle" that everybody listens to.
So all elements are compared in root, but only within the parent element after being fixed, and the parent element is not set Z-index, so cannot be compared.
So the solution is to set the Z-index for the parent element, which is generally set to 0.
Excerpt two points:
1. Z-index only works if the position is set to relative,absolute,fixed.
2. Z-index "from the Father principle". When you find out how much of the z-index is useless, see if the parent element is set to a valid Z-index, and of course don't forget to see if you set the position first.