1、第一种方法

<a href="#" style=" text-decoration:none;" onmouseover="javascript:this.style.color='red'" onmouseout="javascript:this.style.color='black'">测试文字</a>

 2、第二种方法

<style type="text/css">
a:link { text-decoration: none; color:#FFFFFF} 
//这是鼠标没有指在连接上时的颜色,color后面是黑色
a:hover {text-decoration: none; color:#000000}
//这是鼠标指在连接上的颜色
a:visited { text-decoration: none; color:#FF0000}
//这是浏览了点击后的颜色
</style>
//测试的连接
<a href=#>good</a>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-09-14
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2021-10-22
  • 2021-08-11
  • 2021-11-13
  • 2021-11-27
  • 2021-11-04
相关资源
相似解决方案