代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>3D旋转相册</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#box {
width: 200px;
height: 100px;
margin:300px auto;
perspective: 800px;
}
#content {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;