It is recommendable to type the color's name instead of its hex value in CSS?

后端 未结 7 1357
南笙
南笙 2020-12-11 02:38

I always forget what colors I\'m dealing with in CSS when I see it hex value. I would like to use the name instead (e.g color: lightgreen). Is it supported by all browsers?

7条回答
  •  失恋的感觉
    2020-12-11 02:54

    CSS uses 17 standard colors. These are all safe to use. There are also system colors whose values is system and browser dependent but might be useful for integrating into system defaults but this is deprecated by CSS3 Color (for whatever that is worth).

提交回复
热议问题