<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
list-style: none;
}
ul li{
float: left;
text-align: center;
background: #fff;
border-radius: 5px;
border: 1px solid #eee;
height: 320px;
width: 300px;
margin: 0 45px;
box-shadow: 1px 1px 1px rgba(0, 0, 0, .03);
transition: 0.5s;
-moz-transition: 0.5s;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
}
ul li:hover{
-webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.1);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
-webkit-transform: translate3d(0, -2px, 0);
transform: translate3d(0, -2px, 0);
transition: 0.5s;
-moz-transition: 0.5s;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
}
</style>
</head>
<body>
<ul>
<li>hvoer效果</li>
<li>hvoer效果</li>
<li>hvoer效果</li>
</ul>
</body>
</html>
网友评论