css问题:link文字链接的使用问题

来源:百度知道 编辑:UC知道 时间:2024/09/24 11:24:55
三个部分用不同的文字链接颜色。用在同一个页面中。怎么用。我的页面组成是<!-#include file="header.asp" -->body<!-#include file="footer.asp" -->.css文件是footer.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=utf-8" />
<title>无标题文档</title>
</head>
<style>
h a {color:#f00;}
m a {color:#00f;}
f a {clolor:#0f0;}
</style>
<body>

<div class="h">
<!-#include file="header.asp" -->
</div>
<div class="m">
body
</div>
<div class="f">
<!-#include file="footer.asp" -->
</div&