用CSS制作网页是,我想做一个超链接,别人的鼠标移动到这个超链接上

来源:百度知道 编辑:UC知道 时间:2024/05/27 00:02:55
用CSS制作网页是,我想做一个超链接,别人的鼠标移动到这个超链接上,这个字体就会变颜色,请问是怎么设置的.谢谢!

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
a:link{ color:#000/*文字颜色*/; text-decoration:none/*文字修饰*/}/*未激活状态*/
a:visited{ color:#000; text-decoration:none}/*激活过后状态*/
a:hover{ color:#f00; text-decoration:underline}/*移上去中状态*/
a:active{ color:#f00; text-decoration:underline}/*移上去点击时状态*/
</style>
</head>

<body>
<a href="#">我是连接</a>
</body&g