藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

請教一個CSS的問題

我想請問一個初級的問題,就是怎麼樣能使一個網頁內的不同鏈接顯示不同的顏色?是用CSS嗎?如何設置呢?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CSS例子</title>
<style type="text/css">
<!--
a.b:link {
color: #0000FF;
}
a.b:visited {
color: #0000FF ;
}
a.b:hover {
color:#00FF00;
}
a.b:active {
color: #FFFF00;
}
a.c:link {
color: #FF0000;
}
a.c:visited {
color: #00FF00;
}
a.c:hover {
color: #0000FF;
}
a.c:active {
color: #00FFFF;
}
-->
</style>
</head>

<center>
<div ID="idee"></div>















<br><br><br><br>
<p><a href="http://www.c3b2a1.com" target="_blank" class="b">易錢時代</a></p>
<p><a href="http://www.c3b2a1.com" target="_blank" class="c">易錢時代</a></p>


嗯,收到,果然好用,多謝!

你可以在dw中的頁面設置裡面設置鏈接顏色,比較簡單直觀.




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com