<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css" media="screen">
.wutai{
width: 500px;
height: 400px;
border: 1px solid red;
margin: 100px;
}
.wutai>div{
width: 200px;
height: 200px;
display: inline-block;
background: yellow;
transform-style: preserve-3d;
border: 1px solid blue;
}
.box1{
transform:rotateX(30deg);
}
.box2{
transform:rotateY(30deg);
}
.box3{
transform:rotateZ(30deg);
}
.box4{
transform:rotate3d(1,1,1,30deg);
}
</style>
</head>
<body>
<div class="wutai">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
</div>
</body>
</html>
3d变换 旋转
猜你喜欢
转载自blog.csdn.net/qq_34608447/article/details/89676406
今日推荐
周排行