视距

96 阅读1分钟

web第二天

视距

translate

<style>
       div{
           width300px;
           height300px;
           background-color#ccc;
           margin300px  auto;
          transformtranslateZ(100px);
      }
body{
perspective1000px;}
  </style>
</head>
<body>
  <div></div>
</body>