十堰民间借贷无前期:网页制作的问题--文字做连接后......

来源:百度文库 编辑:神马品牌网 时间:2024/04/25 18:34:33
文字做连接后,文字颜色变了,又多了一条下划线!
怎样改变文字的属性?

用CSS样式
a:link {
font-size: 12px;
color: #00007F;
text-decoration: underline;
}
a:visited {
font-size: 12px;
color: #000099;
text-decoration: underline;
}
a:hover {
color: #FF0000;
text-decoration: none;
font-size: 12px;
}
a:active {
font-size: 12px;
color: #000099;
text-decoration: none;
}

a:link 定义未点击过的链接样式。

a:visited 定义已经点击过的链接样式。

a:hover 定义鼠标放到链接上的样式。

a:active 定义鼠标在链接上按下还未松开时的样式。

font-size: 12px; 链接文字的大小。
color: #000099; 链接文字的颜色。
text-decoration: none; 定义是否有下划线、上划线……等样式。
当为“none”时表示没有下划线。
“underline”:有下划线。
………… (还有其它值,不过那些一般不用)

链接样式的属性不止font-size、color、text-decoration这三种,一般能在其它地方文字所应用的CSS样式在这也可以用。