x
 
<!DOCTYPE html>
<html>
<head>
<style>
#DIV1 {
  width: 200px;
  height: 200px;
  padding: 10px;
  margin: auto;
  border: 1px solid black;
  perspective: 200px;
}
#DIV2 {
  height: 100px;
  width: 100px;
  border: 1px solid black;
  background-color: red;
  translate: 50px 50px 50px;
}
#DIV2original {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px dashed grey;
  background-color: lightgrey;
  opacity: 0.5;
}
</style>
</head>
<body>
<h1>translate 属性</h1>
<p>将红色盒子向右移动 50 像素,向下移动 50 像素,并向视点靠近 50 像素,使其看起来更大。视点设置为在父元素 DIV1 上应用 perspective 属性的情况下,位于被变换的 div 元素上方 200 像素处。</p>
<div id="DIV1">DIV1
  <div id="DIV2original">DIV2</div>
  <div id="DIV2">DIV2</div>
</div>
</body>
</html>