Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.39 KB

index.zh-hans.md

File metadata and controls

39 lines (33 loc) · 1.39 KB

+++ type = "docs" title = "返回顶部模块" linkTitle = "返回顶部" date = 2023-02-04T00:15:11+08:00 draft = false categories = ["模块"] tags = ["返回顶部", "回到顶部"] series = ["文档"] images = [] authors = ["HB"] aliases = [ "/zh-hans/docs/modules/back-to-top/" ] [nav_icon] vendor = "bs" name = "arrow-up-square" +++

又称回到顶部,一个用于返回顶部的按钮。

{{% hb-module back-to-top %}}

站点参数

Name Type Require Default Description
animation boolean - true false 则禁用默认动画。
icon_height string - 2em 图标的高度。
icon_name number - rocket Bootstrap 的图标名称。
icon_width number - 2em 图标的宽度。
position_bottom number - 1rem 按钮的 bottom 属性值。
position_end number - 1rem 按钮的 right(LTR)或 left(RTL) 属性值。

{{< bs/config-toggle filename=hugo >}} {{% code-snippet params.toml %}} {{< /bs/config-toggle >}}