61,115
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title> 页面名称 </title>
<style type="text/css">
.butt {
position: relative;
overflow: hidden;
width: 200px;
height: 80px;
border-radius: 10px;
background-color: #FF9900;
border: 1px solid #333;
}
.butt::before {
content: "";
display: block;
border-radius: 50%;
background-color: #ffaa00;
box-shadow: inset 0px 0px 50px #ffcc00;
width: 0px;
height: 0px;
margin: 0px;
position: absolute;
left: 50%;
top: 50%;
transition: all 500ms;
}
.butt::after {
content: attr(data-text);
display: block;
color: #fff;
text-shadow: 0px 0px 6px #A33D1B;
font:35px/80px \5B8B\4F53;
text-align: center;
position: relative;
}
.butt:hover::before {
width: 220px;
height: 220px;
margin: -110px;
}
</style>
</head>
<body>
<div class="butt" data-text="开始游戏"></div>
</body>
</html>