Skip to main content
 首页 » 编程设计

colors之网络安全颜色仍然相关吗

2024年02月27日13freeliver54

因为绝大多数显示器都是 16-bit color or more, including mobile devices ,在选择配色方案时考虑网络安全颜色是否有意义?或者说这件事应该作为一件琐事而被归入历史?

对于那些不知道什么是网络安全颜色的人:

Another set of 216 color values is commonly considered to be the "web-safe" color palette, developed at a time when many computer displays were only capable of displaying 256 colors. A set of colors was needed that could be shown without dithering on 256-color displays; the number 216 was chosen partly because computer operating systems customarily reserved sixteen to twenty colors for their own use; it was also selected because it allows exactly six shades each of red, green, and blue (6 × 6 × 6 = 216).

The list of colors is often presented as if it has special properties that render them immune to dithering. In fact, on 256-color displays applications can set a palette of any selection of colors that they choose, dithering the rest. These colors were chosen specifically because they matched the palettes selected by the then leading browser applications. [Wikipedia]

请您参考如下方法:

对我来说,网络安全调色板不再是首要关注的问题。针对最大的目标受众进行优化。

根据w3schools网站访问者:

  • 2009 年 1 月,1% 的网站访问者拥有 256 色显示屏,95% 的用户拥有 24 或 32 位。
  • [更新] 2015 年 1 月 0.5% 拥有 256 色,0.5% 拥有 24 位,99% 拥有 32 位

我从我管理的商业应用网站上发现了类似的数字:

32-bit  79.01%   
 
24-bit  15.64%   
 
16-bit  5.27%    
 
8-bit   0.08%