用MIUI 12.5.8.0&在小米中更改颜色和背景色渲染Android 11
我有一个不会更改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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论