Satrol_ 2022-10-14 13:24 采纳率: 100%
浏览 17
已结题

perspective的bug


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            perspective: 1000px;
        }
        section {
            position: relative;
            width: 200px;
            height: 100px;
            margin: 100px auto;
        }
        section div {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background: url(/xuanzhuan.png) no-repeat;
        }
        section div:nth-child(1) {
            transform: translateZ(200px);
        }
    </style>
</head>
<body>
    <section>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </section>
</body>
</html>

为什么perspective没效果是因为它只追踪一级吗

  • 写回答

2条回答 默认 最新

  • 崽崽的谷雨 2022-10-14 13:44
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月22日
  • 已采纳回答 10月14日
  • 创建了问题 10月14日