这里有个测试视觉对比度的网站, http://leaverou.github.io/contrast-ratio/
它上面有一些说明.
As you type, the contrast ratio indicated will update. Hover over the circle to get more detailed information. When semi-transparent colors are involved as backgrounds, the contrast ratio will have an error margin, to account for the different colors they may be over.
其中 When semi-transparent colors are involved as backgrounds, the contrast ratio will have an error margin, to account for the different colors they may be over.
这句话不明白啥意思.
1
iConnect 2017-10-03 20:06:06 +08:00 via Android
简单讲,就是背景不能用半透明(准确讲,应该是不能设置背景的透明度)。
|
2
iConnect 2017-10-03 20:07:56 +08:00 via Android
前端开发经常会遇到这种图片规范啊,图层不能设置透明度。
|
3
ho121 2017-10-03 20:15:44 +08:00
![无标题.png]( https://i.loli.net/2017/10/03/59d37f61449fd.png)
|
5
flaneurse 2017-10-03 21:09:31 +08:00
改成.5 以下对比度就变成红色啦
|
6
lightening 2017-10-03 21:21:21 +08:00
当背景使用半透明色彩时,(给出的)对比度会有一个误差范围(下面的+/-值),因为它们(用作背景的半透明色彩)可能被叠加在各种不同的颜色上。
|
7
xzpjerry731 2017-10-03 23:16:09 +08:00
感觉他后一个逗号加多了。。。“ When semi-transparent colors are involved as backgrounds, the contrast ratio will have an error margin to account for the different colors they may be over.” 这下顺眼了吧
|
8
jin7 OP |