<template>
<div id="topAnchor" ref="faultTree" class="wrap">
<a id="TOPUp" href="#topAnchor">
<img style="width: 100%;height: 100%;" src="../../assets/top.png" alt="">
</a>
</div>
</template>
<script>
export default {
name: 'BackTop',
components: {
}
}
</script>
<style>
#TOPUp{
position: fixed;
right: 25px;
bottom: 100px;
width: 40px;
height: 40px;
z-index: 99999999;
box-shadow: 0px 0px 4px 4px #ecefef;
border-radius: 600px;
}
</style>
【Vue】回到顶部组件
最新推荐文章于 2023-11-03 16:21:59 发布