FYI, when choosing colors you might want to take Color Blindness into account, about 5% of males are color blind.
This Page describes a Firefox extension that allows a user, and more importantly a developer, to simulate how a webpage might look for colorblind people.
Different image editors (not sure about Paint.NET) embed the so called gamma correction information in the png. This gamma correction info is used by some browsers and makes the png look different than the rgb colors that you expect.
I have personally encountered this problem on several projects where a png transition to a background color was a perfect match in firefox but not in IE.
Best practice is to remove the gamma correction using pngcrush. Which is a good idea anyway since it reduces overall filesize, even when gamma correction is not an issue at hand.
According to w3schools only 2% of visitors still have 256-color displays. If you don't use web colors, they'll just see somewhat different colors from what you intended, so there's not really any reason to stick to web-safe colors, which really limit your choices.
发布评论
评论(5)
我不担心颜色是否能在任何地方完美显示,因为即使是最基本的手机也支持16位颜色。
在我看来,不得不担心“网络安全”颜色的日子已经结束了。
只要您不使用彼此非常相似的颜色,您就应该做得很好。
I don't worry about whether the colors will display perfectly everywhere, as even the most basic of cell phones support 16-bit color.
In my opinion, the days of having to worry about 'web-safe' colors is mostly over.
As long as you're not using colors incredibly similar to each other, you should be good.
另一个要考虑的项目是:
色盲
仅供参考,在选择颜色时您可能需要考虑色盲,大约 5%
的男性是色盲。
此页面描述了一个 Firefox 扩展,它允许用户(更重要的是开发人员)模拟如何网页可能会寻找色盲人士。
以下是有关色盲的更多信息
Another item to consider is:
Color Blindness
FYI, when choosing colors you might want to take Color Blindness into account, about 5%
of males are color blind.
This Page describes a Firefox extension that allows a user, and more importantly a developer, to simulate how a webpage might look for colorblind people.
Here is more info on Color Blindness
相关说明:请注意使用 png。
不同的图像编辑器(不确定 Paint.NET)在 png 中嵌入所谓的伽玛校正信息。 某些浏览器使用此伽马校正信息,使 png 看起来与您期望的 RGB 颜色不同。
我个人在几个项目中遇到过这个问题,其中 png 过渡到背景颜色在 Firefox 中是完美匹配的,但在 IE 中却不是。
最佳实践是使用 pngcrush 删除伽玛校正。 无论如何,这都是一个好主意,因为它可以减少整体文件大小,即使伽玛校正不是当前的问题。
如果您想阅读,这里有更多信息:http://hsivonen.iki.fi/png-gamma< /a>
抱歉,如果这听起来有点离题,但我只是想在网络上使用颜色和 Paint.NET 时向您提及这一点。
On a related note: be aware of using png's.
Different image editors (not sure about Paint.NET) embed the so called gamma correction information in the png. This gamma correction info is used by some browsers and makes the png look different than the rgb colors that you expect.
I have personally encountered this problem on several projects where a png transition to a background color was a perfect match in firefox but not in IE.
Best practice is to remove the gamma correction using pngcrush. Which is a good idea anyway since it reduces overall filesize, even when gamma correction is not an issue at hand.
Here's some more info if you fancy some reading: http://hsivonen.iki.fi/png-gamma
Sorry if this sounds kindof offtopic but I just thought I'd mention it to you when using colors and Paint.NET for use on the web.
我无耻地从这里窃取了很多颜色样式。 我对大多数人的计算机上的配色方案没有遇到太多麻烦。
我这样说是为了指出我不是一名网页设计师,而是一名偶尔被迫设计网页的程序员,所以请珍惜它的价值。
I shamelessly steal lots of color styles from here. I haven't had much trouble with the color schemes on most peoples' computers.
I say this noting that I'm not a web designer, but a programmer who is forced to design webpages on occasion, so take that for what it's worth.
据 w3schools 称,只有 2% 的访问者仍然拥有 256 色显示屏。 如果您不使用网页颜色,他们只会看到与您想要的颜色有些不同的颜色,因此没有任何理由坚持使用 网络安全颜色,这确实限制了您的选择。
According to w3schools only 2% of visitors still have 256-color displays. If you don't use web colors, they'll just see somewhat different colors from what you intended, so there's not really any reason to stick to web-safe colors, which really limit your choices.