小程序自定义导航栏,可以实现导航文字不固定在顶部,随着页面下滑消失吗?

小程序 文章 2020-08-07 14:01 734 0 全屏看文

AI助手支持GPT4.0

小程序自定义导航栏,可以实现导航文字不固定在顶部,随着页面下滑消失吗?Can the mini program customize the navigation bar to realize that the navigation text is not fixed at the top, but disappears as the page slides down?

小程序自定义导航栏,可以实现导航文字不固定在顶部,随着页面下滑消失吗?

采用的是自定义导航栏,现在页面下滑时,文字会固定显示在屏幕顶部,可以下滑页面时,导航文字消失吗,只保留胶囊?

The user-defined navigation bar is adopted. When the page slides down, the text will be fixed at the top of the screen. When you can slide down the page, will the navigation text disappear and only keep the capsule?

回答:

谋谋谋:

自定义导航 想要啥样的不是你自己说了算么

小饼干🍪:

自定义的怎么都好弄

拾忆:

sticky配合计算滚动条位置去实现顶部导航栏的透明度

黑-白-灰:现在只是导航文字不消失,也这样处理吗?
拾忆:不固定的话你就直接自定义导航栏不要定位不就行了?
黑-白-灰:好的,谢谢您!

-EOF-

AI助手支持GPT4.0