WeChat Mini Programs customizes the head. when the page scrolls, the head scrolls along with it and will not be fixed at the top.

customize the header by setting navigationStyle:"custom",. When the page scrolls, the header scrolls along with it and is not fixed at the top. It is not possible to absolutely position the header

.
May.13,2021

where does the fixed head refer to the screenshot
you gave?


header A view
scrolling scroll-view


absolute positioning is not possible? Have you defined top:0; ? if not, use fixed location to try


position: fixed;

have you solved this problem


https://codeshelper.com/q/10.
? can you help me solve the problem [similar to this problem]
js is set

Menu