用HTML如何将文字变成黑色?谢了!

html-css012

用HTML如何将文字变成黑色?谢了!,第1张

需要准备的材料分别有:电脑、浏览器、html编辑器。

1、首先,打开html编辑器,新建html文件,例如:index.html。

2、在index.html中的<body>标签中,输入html代码:<span style="color:#000000">这是黑色的字</span>。

3、浏览器运行index.html页面,此时文字变成黑色了。

<table width="69%" border="1" align="center" cellspacing="0">

<tr height="35" align="center">

<td width="18%">1</td>

<td width="18%">2 </td>

<td width="18%">3</td>

<td width="18%">4</td>

</tr>

</table>

将表格间间距调整为0即可

.footer a{color:#000 text-decoration:none}

.footer a:hover{color:#333 text-decoration:underline}

#000为黑色,#333为深灰色,不过推荐鼠标经过时用#900或者#f00这类的。然后可以通过PS查看这个颜色,可以去尝试你喜欢的颜色。