现在的位置: 首页 > 综合 > 正文

一个页面多种超链接颜色

2013年05月31日 ⁄ 综合 ⁄ 共 942字 ⁄ 字号 评论关闭
如果有不同颜色的链接先定义不同颜色链接的样式如下:(加入到样式表文件)
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"> 

抱歉!评论已关闭.