为什么我的是6在上面

来源:3-1 创建3D动画效果结构部分

庸人爱自扰

2016-03-12 22:54

<!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>


写回答 关注

1回答

  • Bincker
    2016-03-22 18:39:06

    你复制page的时候id没改,而且前缀webkit写成了wibkit,6在前面是因为2-6没有做旋转操作(也就是webkit写错的问题)

CSS3 3D 特效

使用CSS3当中的属性,创建真实可用的三维效果

78572 学习 · 425 问题

查看课程

相似问题