本文共 547 字,大约阅读时间需要 1 分钟。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.wrap{
width: 300px;
height: 300px;
border: 5px solid wheat;
transform: 1s;
transform: rotatex(45deg) rotateY('30deg');
}
.wrap:hover.box{
transform: translateX(100px) translateY(50px) translateZ(200px);
}
</style>
</head>
<body>
<div class="wrao">
<!-- 实际内容盒 -->
<div class="content"></div>
<!-- 遮罩盒 -->
</div>
</body>
</html>
转载地址:http://eweuuy.baihongyu.com/