这是值得推荐的键入颜色的名称,而不是在CSS其十六进制值? [英] It is recommendable to type the color's name instead of its hex value in CSS?

查看:79
本文介绍了这是值得推荐的键入颜色的名称,而不是在CSS其十六进制值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我总是忘记我在CSS处理什么颜色与当我看到​​它的十六进制值。我想用的名称,而不是(例如颜色:浅绿)。它是所有浏览器都支持? (或者只有基本的16色)?

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? (or only the basic 16 colors)?

推荐答案

因为它是由所有的浏览器都支持我会preFER十六进制值,我可以指定广泛的颜色比命名的颜色。

I'll prefer the hex value since it is supported by all browsers and I can specify wide range of colors than the named colors.

这篇关于这是值得推荐的键入颜色的名称,而不是在CSS其十六进制值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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