如果有不同颜色的链接先定义不同颜色链接的样式如下:(加入到样式表文件)
a.blue:hover {
font-family: "宋体";
font-size: 9pt;
color: #3E84DA;
text-decoration: underline;
}
a.blue {
font-family: "宋体";
font-size: 9pt;
color: #1E4775;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
a.blue:link {
font-family: "宋体";
font-size: 9pt;
color: #1E4775;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
a.yellow:hover {
font-family: "宋体";
font-size: 9pt;
color: #906B37;
text-decoration: underline;
}
a.yellow {
font-family: "宋体";
font-size: 9pt;
color: #906B37;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
a.yellow:link {
font-family: "宋体";
font-size: 9pt;
color: #906B37;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
然后再链接处加入
<a class=“blue” href="/gtzyddc.htm">
或者<a class=“yellow” href="/gtzyddc.htm">
a.blue:hover {
font-family: "宋体";
font-size: 9pt;
color: #3E84DA;
text-decoration: underline;
}
a.blue {
font-family: "宋体";
font-size: 9pt;
color: #1E4775;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
a.blue:link {
font-family: "宋体";
font-size: 9pt;
color: #1E4775;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
a.yellow:hover {
font-family: "宋体";
font-size: 9pt;
color: #906B37;
text-decoration: underline;
}
a.yellow {
font-family: "宋体";
font-size: 9pt;
color: #906B37;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
a.yellow:link {
font-family: "宋体";
font-size: 9pt;
color: #906B37;
filter: DropShadow(Color=#eeeeee, OffX=1, OffY=1, Positive=2);
text-decoration: none;
}
然后再链接处加入
<a class=“blue” href="/gtzyddc.htm">
或者<a class=“yellow” href="/gtzyddc.htm">