-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
黑暗模式刷新会闪白,闪瞎眼 #912
Comments
@appotry |
后来修改代码,使用另一种方式实现的黑暗模式,改动非常大,css整个采用媒体查询,网页加载时查询localstorage 内是黑还是白 原来的代码实现方式相当于外挂css, js 来翻转黑白。 把js控制逻辑提前运行,放到header里面试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有什么办法解决吗?我没睡觉研究了一通宵解决不了。
The text was updated successfully, but these errors were encountered: