FloatButton
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Float Button</title>
<style type="text/css" rel="stylesheet">
#button {
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
position: absolute;
font-size: 12px;
text-transform: uppercase;
right: 10%;
width: 50px;
height: 50px;
margin-left: -100px;
top: 15%;
border-radius: 50px;
color: white;
text-shadow: -1px -1px 1px rgba(0,0,0,0.8);
border: 5px solid transparent;
border-bottom-color: rgba(0,0,0,0.35);
background: #427BFF;
cursor: pointer;
animation: pulse 1s infinite alternate;
transition: background #427BFF 0.4s, border 0.2s, margin 0.2s;
}
#button:hover {
background: #427BFF;
margin-top: -1px;
animation: none;
}
#button:active {
border-bottom-width: 0;
margin-top: 5px;
}
@keyframes pulse {
0% {
margin-top: 0px;
}
100% {
margin-top: 6px;
}
}
#bg {
width: 100%;
height: 500px;
background-color: black;
}
</style>
</head>
<body>
<div id="bg"></div>
<button id="button">按钮</button>
</