css colors are different

大城市里の小女人 提交于 2019-12-11 01:25:21

问题


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.

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

Is it possible to fix that?


回答1:


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.

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.

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.




回答2:


Actually you can't.

It fully depends on the monitor and the graphics card and the monitor's settings etc.

If you have a monitor at home, which is calibrated and do not want to add background colors by number but by image, you may have an improvement, but no guarantee for that




回答3:


Simple answer, you can't.

The monitor will display the colours in the way that it chooses (the way the screen works and the colour profiles in use etc).

Different devices and different screens will display things slightly different. It's one of the joys of the industry!




回答4:


It is based on the calibration of your monitor and to my knowledge there is no way to compensate for it in CSS.

To figure out how to calibrate your monitor so that at least you can see what is really happening with your color schemes visit a site like this one:

Calibrate Your Monitor



来源:https://stackoverflow.com/questions/8988092/css-colors-are-different

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!