Windows High Contrast 如何决定使用哪些颜色来显示网站元素?
是否可以让它在元素获得焦点时显示其他颜色?
例如,在 https://www.post.ch/en 上,“托运单号”输入字段在获得焦点时以另一种颜色显示,但对于大多数其他元素,颜色始终保持不变,即使焦点样式定义了其他颜色也是如此。
最佳答案
我认为只要对比度高于 14:1,它们就会保持原始颜色。在其他情况下,他们使用自定义值。
The text colors in the high-contrast themes have been authored to be compliant with the Microsoft Accessibility guidelines. We maintain a 14:1 high-contrast ratio between foreground and background. If the colors that are enabled by default are not suitable to a particular end user, they can easily be customized through the control panel settings for ‘Window Color’ in those high-contrast themes.
关于css - Windows 高对比度模式 : How are colours computed? 如何为焦点元素指定颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34069079/