<template>
<div class="content">
<!-- 绑定content盒子 -->
<el-backtop target=".content" :bottom="100">
<div>UP</div>
</el-backtop>
</div>
</template>
.content {
height: 1000px;
overflow-y: scroll;//这个最重要
}
效果图
<template>
<div class="content">
<!-- 绑定content盒子 -->
<el-backtop target=".content" :bottom="100">
<div>UP</div>
</el-backtop>
</div>
</template>
.content {
height: 1000px;
overflow-y: scroll;//这个最重要
}
效果图