这篇文章主要介绍了Element Backtop回到顶部的具体使用,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
组件― 回到顶部
基础用法
Scroll down to see the bottom-right button.
自定义显示内容
Scroll down to see the bottom-right button. <div> UP </div>
Attributes
Events
关于element-ui el-backtop返回顶部组件无效问题
el-backtop绑定的盒子,需要一个滚动样式:overflow-y: scroll;
<div id="app"> // 绑定app盒子 </div> #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; }
到此这篇关于Element Backtop回到顶部的具体使用的文章就介绍到这了,更多相关Element Backtop回到顶部内容请搜索gaodaima搞代码网以前的文章或继续浏览下面的相关文章希望大家以后多多支持本文来源gao@daima#com搞(%代@#码网gaodaima搞代码网!
以上就是Element Backtop回到顶部的具体使用的详细内容,更多请关注gaodaima搞代码网其它相关文章!