我怎样去除超链接的下划线啊 我试过好多的方法都不行 请高手指点

解决方案 »

  1.   

    <a href="#" style="text-decoration: none">heheh</>
      

  2.   


    style="text-decoration: none"
      

  3.   

    默认情况下,每个超链接都是有下划线的,如果你不希望超链接有下划线,可以这么写:
    a:link{text-decoration:none;}但这样也不能算是去除超链接下划线,因为你点了之后,就会出现下划线了,所以我们改进一下:
    a:link,a:visited{text-decoration:none};所以你只要在head区域,定义一段css,例如:
    <style type="text/css">
       a:link,a:visited{text-decoration:none;}
    </style>
      

  4.   

     <style type="text/css">
       <!--
       a:link { text-decoration: none;color: blue}
       a:active { text-decoration:blink}
       a:hover { text-decoration:underline;color: red} 
       a:visited { text-decoration: none;color: green}
       --> 
       </style>   其中:
      a:link 指正常的未被访问过的链接;
      a:active 指正在点的链接;
      a:hover 指鼠标在链接上;
      a:visited 指已经访问过的链接;
      text-decoration是文字修饰效果的意思;
      none参数表示超链接文字不显示下划线;
      underline参数表示超链接的文字有下划线 
    如果讲none替换成overline则给超链接文字加上划线,换成line-through给超链接文字加上删除线,blink则使文字在闪烁。
    自己看着弄吧