自定义导航栏,怎么做上划导航栏变为白色的?

小程序 文章 2020-08-05 09:01 707 0 全屏看文

AI助手支持GPT4.0

自定义导航栏,怎么做上划导航栏变为白色的?

现在这个导航栏是自定义导航,背景是一张图片,现在想上划时背景变为白色的,该怎么实现呢?

Now the navigation bar is user-defined navigation. The background is an image. Now when you want to stroke up, the background will turn white. How to achieve this?

回答:

Admin²⁰²⁰:

目前可以通过自己写代码实时控制自定义导航的背景色,比如

class="custom-navigatebar" style="{{bgColor}}">view>然后动态setData bgColor为"backgournd-color:white;"之类的值
谋谋谋:

你这已经在顶部了 还怎么上划

张有釜:

自定义导航栏 然后自己写效果

-EOF-

AI助手支持GPT4.0