三种引用2010-03-14 17:45:36
内联定义>外链引用>内联块定义
1.内联定义
<a stype="XXX">
2.外链引用 css文件
<head> <link rel="stylesheet" href="aa.css" /> </head> head里写
标签通过 class=" " 来引用
3.内联块 (在head 和body之间写)
<style type="text/css">
<!--
a:link{text-decoration:none; color: #FF0000; font-size:24px} //text-decoration 文字线
a:Active{text-decoration:line-through; color:#FF0033; font-size:18px}
a:Visited{ color:#FFCC33; font-size:12px}
-->
</style>
link 默认连接的样子
active 鼠标点击后尚未释放
visited
hover 鼠标放上去
也可写成 .p1{ 此种不限于p }