文章詳情頁
css - z-index 和 translateZ(0)的疑問
瀏覽:96日期:2023-07-28 16:57:25
問題描述
比如
<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;}
為神馬會如此顯示?
問題解答
回答1:你是想問 CSS3 Transform 引起的 z-index '失效' 嗎http://segmentfault.com/q/1010000002480824
標簽:
CSS
相關文章:
排行榜
