<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#my3dSpace{
-wibkit-perspective:800px;
-wibkit-perspective-origin:50% 50%;
overflow:hidden;
}
#pageGroup{
width:400px;
height: 400px;
margin:0 auto;
-webkit-transform-style:perserve-3d;
position:relative;
}
.page{
width:360px;
height:360px;
padding:20px;
background-color:black;
color:white;
font-size:360px;
line-height: 360px;
font-weight: bold;
text-align:center;
position:absolute;
}
#page1{
-wibkit-transform-origin:bottom;
-wibkit-transition:-wibkit-transform-origin 1s linear;
}
#page2,#page3,#page4,#page5,#page6{
-wibkit-transform-origin:bottom;
-wibkit-transition:-wibkit-transform-origin 1s linear;
-wibkit-transform:rotateX(90deg);
}
#operation{
text-align:center;
margin-top:10px;
}
</style>
</head>
<body>
<div id = "my3dSpace">
<div id = "pageGroup">
<div class = "page" id = "page1">1</div>
<div class = "page" id = "page1">2</div>
<div class = "page" id = "page1">3</div>
<div class = "page" id = "page1">4</div>
<div class = "page" id = "page1">5</div>
<div class = "page" id = "page1">6</div>
</div>
<div id = "operation">
<a href = "javascript:next()">next</a>
<a href="javascript:preview()">preview</a>
</div>
</body>
</html>
你复制page的时候id没改,而且前缀webkit写成了wibkit,6在前面是因为2-6没有做旋转操作(也就是webkit写错的问题)