How to detect whether the user's browser tab is dark

前端 未结 0 1078
借酒劲吻你
借酒劲吻你 2021-01-28 02:29

I\'ve found that window.matchMedia(\'(prefers-color-sceme: dark)\') is something I can search for, but the result is specific to the global setting for that browser

相关标签:
回答
  • 消灭零回复
提交回复
热议问题