Are there any good reasons for using hex over decimal for RGB colour values in CSS?

前端 未结 12 2840
庸人自扰
庸人自扰 2020-12-01 07:17

rgb(255,255,255) notation has been available since CSS1. But #ffffff seems to be vastly more popular.

Obviously it\'s slightly more compact

12条回答
  •  一个人的身影
    2020-12-01 07:58

    CSS was invented by software developers, not designers. Software developers live and breathe hex. From my old C64 days, I can still read most hex numbers without thinking. A9, anyone?

提交回复
热议问题