Essays and records to facilitate their access to fellow travelers, it is best to learn HTML learning CSS.
#------------------------------------------------I ------------------------------------------- dividing line is a shame
fiexd fixed position
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
</head>
<body>
<div style="background-color:black;color:white;
position:fixed;
bottom:20px;
right:20px;
">返回顶部</div>
<div style="height:5000px;background-color:#dddddd"></div>
</body>
</html>
effect:
bottom: 0; denotes the bottom, right: 0; indicates the rightmost; Top: 0; for the top of