mip-gototop快速回顶组件介绍
发布时间:01/15 来源: 浏览:
关键词:
mip-gototop 提供了一个用来支持网页快速回顶按钮,用来支持网页快速回顶功能,下面请看详细的使用方法。
标题 | 内容 |
类型 | 通用 |
支持布局 | N/S |
所需脚本 | https://mipcache.bdstatic.com/static/v1/mip-gototop/mip-gototop.js |
示例
基本使用
<mip-fixed type="gototop"> <mip-gototop></mip-gototop> </mip-fixed> |
设置阈值
<mip-fixed type="gototop"> <mip-gototop threshold='300'></mip-gototop> </mip-fixed> |
属性
threshold
说明:显示按钮时页面已经滚动的高度
必选项: 否
取值范围:数值
单位:无
默认值:200