# 是否保留页眉固定在自定义页眉上方？

**URL:** https://meta.discourse.org/t/option-to-keep-header-docked-with-custom-header-above/158943
**Category:** UX
**Created:** [2020年七月27日 12:42 UTC](https://meta.discourse.org/t/option-to-keep-header-docked-with-custom-header-above/158943 "2020-07-27T12:42:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)
#### Post date: [2020年七月27日 12:42 UTC](https://meta.discourse.org/t/option-to-keep-header-docked-with-custom-header-above/158943/1 "2020-07-27T12:42:12Z")

</div>

我注意到，如果没有自定义页眉，主页眉始终处于固定状态。如果在正常页眉上方添加自定义页眉，它最初不会固定，滚动时才会固定，这会导致“跳动”，感觉不够流畅。

如果页眉上方的内容非常多，不希望滚动后仍可见，我理解这样设计的理由。但我的自定义页眉很薄，我希望它始终保持在视野内。

我知道需要做一些 CSS 调整才能实现理想效果，而我已经完成了这些调整，我的额外页眉完全可以实现 100% 时间固定。

自定义页眉主题组件不适合我，因为我需要能够自由放置任何内容，而不受模板限制。

是否可以将固定功能作为一个开关，在站点设置中提供开启/关闭选项？
