使用css样式即可,方法如下:
1、在网页头部head/head直接放置以下代码:
style type=text/css
a.topcs:link {
font-size: 12px;
color: #000000;
text-decoration: none;
}
a.topcs:visited {
font-size: 12px;
color: #000000;
text-decoration: none;
}
a.topcs:hover {
font-size: 12px;
color: #FF0000;
text-decoration: none;
}
a.news:link {
font-size: 12px;
color: #000000;
text-decoration: none;
}
a.news:visited {
font-size: 12px;
color: #000000;
text-decoration: none;
}
a.news:hover {
font-size: 12px;
color: #FF0000;
text-decoration: none;
}/style
2、在网页主体建立超链接,分别套用topcs和news样式:
a href=1.html class=news1/aa href=2.html class=topcs1/a
取消
评论