鼠标移动上去效果如下
源代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
position: fixed;
top: 50%;
text-align: center;
line-height: 40px;
transform: translate(0, -50%);
right: 0;