css颜色不同 [英] css colors are different

查看:179
本文介绍了css颜色不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,在不同的计算机上,同样的css颜色看起来不同,因为在显示器上,或者因为颜色深度或者由于图形卡。

I have noticed, that on different computers same css colors looks different, because on the monitor, or because of the color depth or because of the graphic card.

例如:某些计算机上的颜色#f5f5f5 看起来像 #ffffff

For example: the color #f5f5f5 on some computers looks like #ffffff, or it became another color.

是否可以解决这个问题?

Is it possible to fix that?

推荐答案

简短的答案:你不能。每个操作系统上每个不同屏幕上的每个不同浏览器的颜色平衡略有不同,您只需要适应它。

Short answer: You can't. Every different browser on every different screen on every OS has a slightly different color balance and you just have to live with it.

如果您尝试使颜色匹配图像,我建议使用gif为您的图像,因为PNG或JPEG都包含颜色管理表,尝试补偿屏幕,并最终渲染颜色不同于CSS。

If you are trying to make colors match up with images, I suggest using gif for your images however, as PNG or JPEG both contain color management tables that try to compensate for the screen, and end up rendering colors differently from CSS.

讽刺的是,因为GIF对于颜色平衡太晦涩,所以使用CSS中指定的十六进制颜色来更容易匹配GIF颜色。

Ironically, because GIF is too dumb to know about color balancing, it's much easier to match GIF colors up with hex colors specified in the CSS.

这篇关于css颜色不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆