<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS实战 -浮动</title>
<style type="text/css">
html,body{
/*box-sizing:border-box;*/
margin:0;
height:100%;
/*background:#000000;*/
}
.card{
margin-top: 100px;
margin-left: 100px;
background: rgb(54, 221, 143);
border-radius: 2px;
height: 300px; width: 300px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.card:hover { box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);}
</style>
</head>
<body>
<div class="card">
2222
</div>
</body>
12-10
4781
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)