When I use better-scroll, I set up a navigation bar in which it is fixed, but it also scrolls.

when using better-scroll, I set a navigation bar in which it is fixed but also scrolls

.

the cause of the problem:
my initial solution is that Bscroll does not include the navigation bar, and then Bscroll sets top 80px so that the navigation bar is fixed, but it needs to be compatible with many mobile phone types. Css media queries are required to separately set top 10px, 20px, 30px and the like, which is very cumbersome.

how do you make the fixed positioning in better-scroll take effect?
or what other plug-ins can scroll smoothly. As long as you can scroll smoothly


what I do is to write a fixed top navigation outside the betterscroll, which is hidden by default. When the inner navigation scrolls to the top, the outer navigation shows

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32819-2be27.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32819-2be27.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?