>  Q&A  >  본문

css - z-index 和 translateZ(0)的疑问

比如



<p>dd</p> p{ background:black; width:200px; height:50px; position:relative; transform:translateZ(0); } p:before{ content:''; position:absolute; width:100%; height:100%; background:red; z-index:-1; }

为神马会如此显示?

伊谢尔伦伊谢尔伦2713일 전489

모든 응답(1)나는 대답할 것이다

  • 大家讲道理

    大家讲道理2017-04-17 11:17:58

    你是想问 CSS3 Transform 引起的 z-index "失效" 吗
    http://segmentfault.com/q/1010000002480824

    회신하다
    0
  • 취소회신하다