我这里用的很简单 跟之前搜索之后跳到搜索结果位置一样 锚点
<a class=" layui-icon layui-icon-up" href="#head" style="font-size: 32px;color: rgb(242, 246, 248);"></a>
然后有一个悬浮显示TOP
.toolbars-footer{
position: absolute;
bottom: 0;
right: 0;
background-color: rgb(80, 136, 97);
width: 34px;
height: 35px;
z-index: 3;
}
.toolbars .flex{
position: absolute;
top: 0;
right: 34px;
width: 0;
overflow: hidden; <