a標籤css樣式

來源:互聯網
上載者:User

直接上案例吧....
  a:link{text-decoration:none;color:#004779;}//正常連結狀態下的樣式..無底線
  a:active{text-decoration:none;color:#0000FF;}//啟用狀態...無底線
  a:visited{text-decoration: none;color:#004779;}//已訪問過...無底線
  a:hover{text-decoration:underline;color:#0000FF;}//滑鼠停留...有底線

 

  hover樣式得放在visited的後面喔,如果不是,則當已訪問過來,滑鼠停留將不會有滑鼠停留 的樣式...

   哈哈,,搞定...試試吧.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.