美文网首页
css 中的 stacking context 和 z-inde

css 中的 stacking context 和 z-inde

作者: 萧哈哈 | 来源:发表于2018-04-05 00:39 被阅读6次

spec

articles

总结:


Within each stacking context, the following layers are painted in back-to-front order:

  • the background(background color 、background image) and borders of the element forming the stacking context.
  • the child stacking contexts with negative stack levels (most negative first).
  • the in-flow, non-inline-level, non-positioned descendants.
  • the non-positioned floats.
  • the in-flow, inline-level, non-positioned descendants, including inline tables and inline blocks.
  • the child stacking contexts with stack level 0 and the positioned descendants with stack level 0.
  • the child stacking contexts with positive stack levels (least positive first).

相关文章

网友评论

      本文标题:css 中的 stacking context 和 z-inde

      本文链接:https://www.haomeiwen.com/subject/srfrhftx.html