<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
body{
/* 透视点 */
perspective: 1000px;
}
.lifang{
width: 200px;
height: 200px;
margin: 200px auto;
position: relative;
/* 设置transform-style:preserve-3d,保留子元素3d效果 */
transform-style: preserve-3d;
transform:rotate3d
css3立方体,魔方造型旋转
最新推荐文章于 2021-10-21 15:08:12 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)