使用css中的class定义就可以了

解决方案 »

  1.   

    能说详细点吗?因为我在css里试了很多次都不行..
      

  2.   

    不同的情况包含不同的css文件即可。
      

  3.   

    dw你熟吗?
    设css的link  原为 a:link    改为 a.a:link   设为一个颜色
    再次新那一个 css 的link 设为 a.b:link 设为别一个颜色。在用时 对不同的连接 应用不同的 css 就 OK了
      

  4.   

    我给你写一个
    <style>
    a.css1:hover,a.css1:active{ text-decoration:underline; color:red;font-family: 宋体;}
    a.css2:hover{ text-decoration:none; color: black;font-family: 宋体;}
    </style>
    <a href="#" class=css1>asdfasdfasdfasdf</a>
    <a href="#" class=css2>asdfasdfasdfasdf</a>
    共有四种状态:hover,visited,link,active
      

  5.   

    这是css的问题,把连接的class设成两种风格的id