<!--点击回到顶点--> <div id=#to-header></div> <div class='anchor-point' @click='returnTop' style=" position: absolute; left: 95%; bottom: 20px; background-color: rgb(22, 108, 248); width: 30px; height: 30px; line-height: 27px; text-align: center; border-radius: 15px; color: white; cursor: pointer; "> 替换为提示信息 </div>
<script> returnTop() { document.querySelector("#to-header").scrollIntoView({ block: "start", behavior: "smooth" });}, <script>