问题描述
如果可以检测到-是否有可能受CSS类或JavaScript影响颜色?
If this can be detected - is there a possibility to influence colors by CSS classes or JavaScript?
使用深色阅读器扩展程序,也可以提交调整.希望这里也有可能,如果没有别的办法可以改变它.
With the dark reader extension, it is also possible to submit adjustments. Hope that it is also possible here, if nothing else could change it.
推荐答案
三星Internet确实在夜间模式下颜色奇怪的东西.如果您知道它们,则可以解决所有问题.不过,我还没有找到一种方法来检测它.颜色过滤在渲染过程的后期进行,因此不会更新API.显而易见的方法(例如window.getComputedStyle
)返回原始颜色.
Samsung Internet does strange things with colors in night mode. If you’re aware of them, you can sort of workaround any issues. I’ve not found a way to detect it, though. The color filtering takes place late in the rendering process so APIs aren’t updated. The obvious methods (such as window.getComputedStyle
) returns original colors.
这篇关于如何在三星Internet浏览器上检测暗模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!