日期:2013-10-12 浏览次数:20722 次
<font color=color_value>…</font>
这里的颜色值可以是一个十六进制数(用“#”作为前缀),也可以是以下16种颜色名称。
● | Black = "#000000" | ● | Green = "#008000" |
● | Silver = "#C0C0C0" | ● | Lime = "#00FF00" |
● | Gray = "#808080" | ● | Olive = "#808000" |
● | White = "#FFFFFF" | ● | Yellow = "#FFFF00" |
● | Maroon = "#800000" | ● | Navy = "#000080" |
● | Red = "#FF0000" | ● | Blue = "#0000FF" |
● | Purple = "#800080" | ● | Teal = "#008080" |
● | Fuchsia = "#FF00FF" | ● | Aqua = "#00FFFF" |
请看例子:
<HTML>
<HEAD>
<TITLE>文字的颜色</TITLE>
</HEAD>
<BODY BGCOLOR=000080>
<CENTER>
<FONT COLOR=WHITE>色彩斑斓的世界</FONT><BR>
<FONT COLOR=RED>色彩斑斓的世界</FONT> <BR>
<FONT COLOR=#00FFFF>色彩斑斓的世界</FONT><BR>
<FONT COLOR=#FFFF00>色彩斑斓的世界</FONT><BR>
<FONT COLOR=#FFFFFF>色彩斑斓的世界</FONT> <BR>
<FONT COLOR=#00FF00>色彩斑斓的世界</FONT><BR>
<FONT COLOR=#C0C0C0>色彩斑斓的世界</FONT><BR>
</CENTER>
</BODY>
</HTML>