颜色与十六进制代码? [英] Color vs Hex Codes?

查看:124
本文介绍了颜色与十六进制代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我明白在写css并指定颜色时我可以使用

以下颜色_names_:


浅绿色,黑色,蓝色,紫红色,灰色,绿色,青柠色,栗色,海军蓝,橄榄色,

紫色,红色,银色,蓝绿色,白色和黄色


我不完全理解的是使用这些简单描述而不是十六进制代码的更广泛列表的利弊。

虽然显而易见的''职业'选择更明显:-)


有人能指出我正确的方向吗?


安德鲁


-

安德鲁的角落
http://people.aapt.net.au/~adjlstrong/

推荐答案

andrew写道:
andrew wrote:




我明白在编写css并指定颜色时我可以使用

以下颜色_names_:


浅绿色,黑色,蓝色,紫红色,灰色,绿色,青柠色,栗色,海军蓝,橄榄色,

紫色,红色,银色,蓝绿色,白色和黄色


我不完全理解的是使用这些的优点和缺点

简单描述而不是更广泛的十六进制代码列表。

虽然显而易见的''亲'更明显:-)
Hi,

I understand that when writing a css and specifying color I can use
the following color _names_:

aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive,
purple, red, silver, teal, white, and yellow

What I don''t fully understand is the pros and cons of using these
simple descriptions rather than the vaster list of hex codes.
Although the obvious ''pro'' of greater choice is obvious :-)



首先,记住颜色名称比使用十六进制代码更容易。当然

很容易记住,#000是黑色的,或者#fff是白色的,#f00红色等等,但

你还记得你的头顶吗?那个青色是#008080,橄榄是什么?b $ b#808000等等?另外由于某种原因,我发现输入单词

比数字更容易,所以我倾向于使用白/黑/红/蓝等代替hex

代码当我使用那些颜色。但是因为我不能打扰检查

浏览器支持我试着将它限制为我知道会工作的那些,比如上面提到的


For one thing, it''s easier to remember a color name than a hex code. Sure
it''s easy to remember that #000 is black or #fff is white, #f00 red etc. but
do you remember off the top of your head that teal is #008080, that olive is
#808000 and so forth? Also for some reason I find it easier to type words
than numbers, so I tend to use white/black/red/blue etc in place of hex
codes when I use those colors. But because I can''t be bothered checking
browser support I try and restrict it to ones that I know will work, like
the aforementioned.


在文章< 20 **************************** @ nospam.invalid>,

andrew< an **** @ nospam.invalidwrote:
In article <20****************************@nospam.invalid>,
andrew <an****@nospam.invalidwrote:




我明白在写css并指定颜色时我可以使用

以下颜色_names_:


浅绿色,黑色,蓝色,紫红色,灰色,绿色,石灰,栗色,海军蓝,橄榄色,

紫色,红色,银色,蓝绿色,白色和黄色


我不完全理解的是使用这些简单描述的优点和缺点,而不是十六进制代码的更广泛的列表。

虽然更明显的''亲'更明显的选择: - )


有人能指出我正确的方向吗?
Hi,

I understand that when writing a css and specifying color I can use
the following color _names_:

aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive,
purple, red, silver, teal, white, and yellow

What I don''t fully understand is the pros and cons of using these
simple descriptions rather than the vaster list of hex codes.
Although the obvious ''pro'' of greater choice is obvious :-)

Can anybody point me in the right direction?



关于使用的唯一担忧颜色名称确保用于查看您网站的所有

浏览器都能理解它们。

十六进制毫无疑问。


-

dorayme

About the only worry of using colour names is being sure all the
browsers that are used to view your site will understand them.
There is little doubt with hex.

--
dorayme


andrew写道:
andrew wrote :




我明白在写css并指定颜色时我可以使用

以下颜色_names_:


浅绿色,黑色,蓝色,紫红色,灰色,绿色,石灰,栗色,海军蓝,橄榄色,

紫色,红色,银色,蓝绿色,白色和黄色
Hi,

I understand that when writing a css and specifying color I can use
the following color _names_:

aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive,
purple, red, silver, teal, white, and yellow



....和CSS中的橙色2.1

.... and orange in CSS 2.1


我不完全理解的是使用这些的优点和缺点/>
简单的描述而不是十六进制代码的更广泛的列表。

虽然显而易见的''亲'选择更明显:-)
What I don''t fully understand is the pros and cons of using these
simple descriptions rather than the vaster list of hex codes.
Although the obvious ''pro'' of greater choice is obvious :-)



您只能使用保留颜色名称的17种颜色不是带有十六进制值的
。另一方面,颜色名称很容易理解,代码变得更直观,更易于维护。


在CSS 3中,有一些300多种颜色名称。


总的来说,我更喜欢使用颜色名称。

$ b $bGérard

-

在网页中使用Web标准(2006年12月更新)
http://developer.mozilla.org/en/docs...your_Web_Pages


这篇关于颜色与十六进制代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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