transform作用的元素增加translateZ,父级元素增加 transform-style: preserve-3d;

<div class="father">
<div class="child"></div>
</div> style {
.father {
transform-style: preserve-3d;
}
.child {
transform: translateZ(1px);
}
}
05-27 02:48