之前一直没有注意这个问题 最近工作中遇到 就搜索了一下 具体解決方法是用CSS定义style 。例子如下 用Ctrl+C复制。需要注意的是这种方法好像只能用于也就是单个链接 不能定义表格 但单元格 也就是说用这个方法不能定义博客里面那些$show_log$标记或者某些建站程序的标签。
EXP:
<style type="text/css">
<!--
A.style1:link {
text-decoration: none;
color:#666666;
font-weight: normal;
}
A.style1:visited {
text-decoration: none;
color: #666666;
font-weight: normal;
}
A.style1:active {
text-decoration: none;
color: #333333;
font-weight: normal;
}
A.style1:hover {
text-decoration: underline overline;
color: #333333;
font-weight: normal;
}
A.style2:link {
text-decoration: none;
color:#000099;
font-weight: normal;
}
A.style2:visited {
text-decoration: none;
color: #000099;
font-weight: normal;
}
A.style2:active {
text-decoration: none;
color: red;
font-weight: normal;
}
A.style2:hover {
text-decoration: none;
color: red;
font-weight: normal;
font-size: 120%;
}
-->
</style>
<!--
A.style1:link {
text-decoration: none;
color:#666666;
font-weight: normal;
}
A.style1:visited {
text-decoration: none;
color: #666666;
font-weight: normal;
}
A.style1:active {
text-decoration: none;
color: #333333;
font-weight: normal;
}
A.style1:hover {
text-decoration: underline overline;
color: #333333;
font-weight: normal;
}
A.style2:link {
text-decoration: none;
color:#000099;
font-weight: normal;
}
A.style2:visited {
text-decoration: none;
color: #000099;
font-weight: normal;
}
A.style2:active {
text-decoration: none;
color: red;
font-weight: normal;
}
A.style2:hover {
text-decoration: none;
color: red;
font-weight: normal;
font-size: 120%;
}
-->
</style>
以下两个链接为演示:
当前没有评论!
第一个在本文留言。