<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>新建网页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
</head>
<body>
<pre>
1.颜色用数字来表示
2.颜色由3原色组成的,红(red),绿(green),蓝(blue)
3.3原色各在[0-255]之间变化
综上:本质是组合3原色
1:用16进制组合[0-255]-->[00,FF], #234567
2:用十进制来组合,比如rgb(34,45,89);
3:html提供常用颜色的名称,如orange,pink,purple,red;
</pre>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>新建网页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<style>
table{
border-collapse: collapse;
}
td{
width: 200px;
height: 100px;
}
</style>
</head>
<body>
<table>
<tr>
<td bgcolor = "#000000"><span style="color:#EEE">#000000</span></td>
<td bgcolor = "#2F0000"><span style="color:#EEE">#2F0000</span></td>
<td bgcolor = "#600030"><span style="color:#EEE">#600030</span></td>
<td bgcolor = "#460046"><span style="color:#EEE">#460046</span></td>
<td bgcolor = "#28004D"><span style="color:#EEE">#28004D</span></td>
</tr>
<tr>
<td bgcolor = "#272727"><span style="color:#EEE">#272727</span></td>
<td bgcolor = "#4D0000"><span style="color:#EEE">#4D0000</span></td>
<td bgcolor = "#820041"><span style="color:#EEE">#820041</span></td>
<td bgcolor = "#5E005E"><span style="color:#EEE">#5E005E</span></td>
<td bgcolor = "#3C3C3C"><span style="color:#EEE">#3C3C3C</span></td>
</tr>
<tr>
<td bgcolor = "#ADADAD"><span style="color:#EEE">#ADADAD</span></td>
<td bgcolor = "#FF2D2D"><span style="color:#EEE">#FF2D2D</span></td>
<td bgcolor = "#FF79BC"><span style="color:#EEE">#FF79BC</span></td>
<td bgcolor = "#FF77FF"><span style="color:#EEE">#FF77FF</span></td>
<td bgcolor = "#BE77FF"><span style="color:#EEE">#BE77FF</span></td>
</tr>
<tr>
<td bgcolor = "#BE77FF"><span style="color:#EEE">#BE77FF</span></td>
<td bgcolor = "#FFB5B5"><span style="color:#EEE">#FFB5B5</span></td>
<td bgcolor = "#FFD9EC"><span style="color:#EEE">#FFD9EC</span></td>
<td bgcolor = "#FFD0FF"><span style="color:#EEE">#FFD0FF</span></td>
<td bgcolor = "#E6CAFF"><span style="color:#EEE">#E6CAFF</span></td>
</tr>
</table>
</body>
</html>