<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<style type=text/css>
body{
background-color:#666666;
}
.land{
margin:0px;
padding:0px;
font-size:150px;
font-family:"微软雅黑";
width:200px;
height:250px;
background-color:#888888;
transform-style:preserve-3d;
transform:perspective(1000px) rotateX(60deg) rotateZ(30deg);
}
.centered{
margin-left:auto;
margin-right:auto;
}
.floor{
position:absolute;
top:25px;
left:25px;
width:150px;
height:150px;
padding:0px;
transform-style:preserve-3d;
color:#cccccc;
}
//堆叠10个层形成类似拉伸成立体的效果
.floor0{
transform:perspective(1000px) translateX(0
CSS3 三维立体文字及旋转特效
最新推荐文章于 2024-01-30 16:32:02 发布