蘑菇炒鸡蛋为什么中毒:怎样使dreamweaver做的链接不带下划线且鼠标经过时变颜色?

来源:百度文库 编辑:高校问答 时间:2024/05/03 06:50:58

主要是用CSS样式表:

<style type="text/css">
<!--
a:link {
font-size: 12px;
color: #FF0000;
text-decoration: none;
}
a:visited {
font-size: 12px;
color: #CCCCCC;
text-decoration: none;
}
a:hover {
font-size: 12px;
color: #00CC33;
text-decoration: none;
}
a:hover {
font-size: 12px;
color: #FF9900;
text-decoration: none;
}
-->
</style>

将上面的代码放在</head>的上面

-------------------------------------------------------
给你看一下我做好的源代码:你可以直接用dreamweaver打开看一下,

<!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 {
font-size: 12px;
color: #CCCCCC;
text-decoration: none;
}
a:visited {
font-size: 12px;
color: #FF0000;
text-decoration: none;
}
a:hover {
font-size: 12px;
color: #FF6600;
text-decoration: none;
}
a:active {
font-size: 12px;
color: #0033FF;
}
-->
</style>
</head>

<body>
<a href="http://www.wddown.com">我的下载网</a>
</body>

</html>