Element Backtop回到顶部的具体使用
网络编程 2021-07-04 14:06www.168986.cn编程入门
这篇文章主要介绍了Element Back回到顶部的具体使用,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们狼蚁网站SEO优化随着长沙网络推广来一起学习学习吧
组件— 回到顶部
基础用法
<template> Scroll down to see the bottom-right button. <el-back target=".page-ponent__scroll .el-scrollbar__wrap"></el-back> </template>
自定义显示内容
<template> Scroll down to see the bottom-right button. <el-back target=".page-ponent__scroll .el-scrollbar__wrap" :bottom="100"> <div style="{ height: 100%; width: 100%; background-color: #f2f5f6; box-shadow: 0 0 6px rgba(0,0,0, .12); text-align: center; line-height: 40px; color: #1989fa; }" > UP </div> </el-back> </template>
Attributes
Events
关于element-ui el-back返回顶部组件无效问题
el-back绑定的盒子,需要一个滚动样式:overflow-y: scroll;
<template> <div id="app"> <router-view /> // 绑定app盒子 <el-back target="#app" :visibility-height="100"></el-back> </div> </template> <script> export default { name: "App", data() { return {}; }, methods: {}, mounted() {} }; </script> <style> #app { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 100%; height: 100%; /* 这里给app一个滚动效果 */ overflow-y: scroll; } </style>
到此这篇关于Element Back回到顶部的具体使用的文章就介绍到这了,更多相关Element Back回到顶部内容请搜索狼蚁SEO以前的文章或继续浏览狼蚁网站SEO优化的相关文章希望大家以后多多支持狼蚁SEO!
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程