Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

van-nav-bar fixed失效 #12178

Closed
1943413160jiang opened this issue Aug 13, 2023 · 6 comments
Closed

van-nav-bar fixed失效 #12178

1943413160jiang opened this issue Aug 13, 2023 · 6 comments

Comments

@1943413160jiang
Copy link

重现链接

Vant 版本

最新版4.x

描述一下你遇到的问题。

van-nav-bar在nuxt3本地可以fixed固定在顶部,但是打包之后无法固定就失效了

重现步骤

项目中遇到的

设备/浏览器

google

@github-actions
Copy link

Hello @1943413160jiang. Please provide an online reproduction demo by clicking this link or a minimal GitHub repository. Issues marked with need reproduce will be closed if they have no activity within 3 days.

你好 @1943413160jiang, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。可以通过点击 此处 创建或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

@github-actions
Copy link

As the issue was labeled with need reproduce, but no response in 3 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions. For background, please refer to Why reproductions are required.

由于该 issue 被标记为 "需要重现",但在 3 天内没有回应,因此该 issue 将被关闭。如果你有任何进一步的问题,请随时发表评论并重新打开该 issue。背景请参考 为什么需要最小重现

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@chenmommo
Copy link

.van-nav-bar--fixed {position: fixed;} 被 .van-hairline--bottom { position: relative }覆盖了

@AprDeci
Copy link

AprDeci commented Jan 15, 2024

.van-nav-bar--fixed {position: fixed;} 被 .van-hairline--bottom { position: relative }覆盖了

请问有解决办法吗

@weblowb
Copy link

weblowb commented Feb 2, 2024

把main.js里面 import 'vant/lib/index.css' 的引入放到其他css引入的 下面

@JoieLu
Copy link

JoieLu commented Mar 28, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants