用MIUI 12.5.8.0&在小米中更改颜色和背景色渲染Android 11

发布于 2025-01-21 15:10:04 字数 568 浏览 0 评论 0原文

我有一个不会更改color&的应用程序。 背景色在任何手机(iPhone,samsungs,pixel,diaomi的大多数)中,在暗模式和光模式之间的任何< div>的任何>。但是仅使用MIUI版本12.5.8.0(稳定)和Android 11的小米中确实会更改应用程序的所有颜色和背景色。在此手机中,它显示我的应用程序仅在光模式下。

有人知道为什么&请问如何在切换到黑暗模式时不改变它?如果有帮助,我尝试使用以下两个标签:

a)&lt; meta name =“ color-scheme” content =“ light” /&gt; < /code>

b)&lt; meta名称=“ color-scheme” content =“ Blight” /&gt; < /code>

请注意,这是一个内部带有React.js代码的Cordova应用程序,因此不使用本机代码。

提前致谢!

I have an app that does not change the color & background-color of any <div> between dark mode and light mode in any phone (iPhones, Samsungs, Pixel, most of Xiaomi,...). But only in Xiaomi with MIUI version 12.5.8.0 (stable) and Android 11 does change all colors and background-colors of the app. In this phone, it shows my app as I want only in light mode.

Does anybody know why & how to circumvent it and make no change when switching to dark mode, please? In case this helps, I have tried with the following 2 tags:

a) <meta name="color-scheme" content="light" />

b) <meta name="color-scheme" content="light only" />

Please, note this is a Cordova app with React.JS code inside, so no native code could be used.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文