如何在三星Internet浏览器上检测暗模式? [英] How to detect darkmode on Samsung Internet browser?

查看:138
本文介绍了如何在三星Internet浏览器上检测暗模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可以检测到-是否有可能受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确实

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浏览器上检测暗模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆