一个CSS样式表的问题,关于链接样式

来源:百度知道 编辑:UC知道 时间:2024/05/02 20:20:59
本来下面的代码没什么,把鼠标指上去会变红,但我调的时候它怎么也不变红,后来我发现把第一行代码删去了之后一切就都正常了,哪位好心人能看一下是怎么回事,说明一下第一条代码是什么东西啊?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>

<title>Untitled Document</title>

<style type="text/css">

a{
font-size:36px;
font-family:arial;
font-weight:bold;
text-decoration:none;
}
a:hover{
color:#FF0000;
}
a:visited{
color:#000066;
}
a:link{
color:#000066;}
a:active{
color:#006600;}

</style>
</head>
<body>

你还不是没有明白啊!!!

我帮你修改了下

<style type="text/css">

a{
font-size:36px;
font-family:arial;
font-weight:bold;
text-decoration:none;
}
a:visited{
color:#000066;
}

a:link{
color:#000066;}
a:active{
color:#006600;}

a:hover{
color:#FF0000;
}

//变色最后面!

</style>