z-index not working with fixed positioning

后端 未结 8 1343
广开言路
广开言路 2020-11-22 03:46

I have a div with default positioning (i.e. position:static) and a div with a fixed position.

If I set the z-index

8条回答
  •  面向向阳花
    2020-11-22 04:41

    When elements are positioned outside the normal flow, they can overlap other elements.

    according to Overlapping Elements section on http://web.archive.org/web/20130501103219/http://w3schools.com/css/css_positioning.asp

提交回复
热议问题