我已经尝试了两天,但仍然找不到解决方案,任何人都可以帮我解决这个问题。
I suppose your header HTML be like:
the CSS for it to stick on top must be:
.header { position: fixed; width: 100vw; top: 0px; left: 0px; }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.