先上代碼:<div class="container">
<div class="front side">正</div>
<div class="back side">反</div>
</div>body{ perspective: 800px;
}.container{ transform-style:preserve-3d; position: absolute; left: 100px; top: 50px;
}.side{ width: 1000px; height: 500px; position: absolute;
}.front { transform: translateZ(10px); background: red;
}.back{ transform: translateZ(-10px); background: yellow;
}然后是結果:chrome下ie11下如何讓ie11和chrome一致呢
ie11下translateZ無效該如何解決?
小唯快跑啊
2018-08-07 13:10:59