样式
.xuanfu{
left: 0;
position: fixed;
bottom: 0;//这里换成top:0;就悬浮在头部
width: 100%;
z-index: 100;
}
html
<div class="xuanfu">这里是要悬浮的内容</div>