css - Windows 高对比度模式 : How are colours computed? 如何为焦点元素指定颜色?

标签 css windows accessibility high-contrast

Windows High Contrast 如何决定使用哪些颜色来显示网站元素?

是否可以让它在元素获得焦点时显示其他颜色?

例如,在 https://www.post.ch/en 上,“托运单号”输入字段在获得焦点时以另一种颜色显示,但对于大多数其他元素,颜色始终保持不变,即使焦点样式定义了其他颜色也是如此。

最佳答案

我认为只要对比度高于 14:1,它们就会保持原始颜色。在其他情况下,他们使用自定义值。

High-contrast mode

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/

相关文章:

Html CSS 导航边框

c++ - 在 Windows 中获取用户临时文件夹路径

Cocoa Accessibility API,我可以单击后台窗口而不激活它吗?

windows - regsvr32,我应该在重新注册之前注销吗?

c++ - 如何在 Windows 上使用 Eclipse 和 CDT 进行 C++ 开发?

html - 是否可以在 IMG 标签中使用 SVG?

html - 动态添加tabindex

css - @fontface css字体路径似乎不起作用

css - Relative div position right 0 里面的 Absolute div 不能正常工作?

css - 何时停止关心浏览器