詳解<a> 的四種狀態css偽類

來源:互聯網
上載者:User
這篇文章主要為大家詳細詳解<a> 的四種狀態css偽類,具有一定的參考價值,感興趣的小夥伴們可以參考一下

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head><title>colajia</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="description" content="" /><style>   a:link{      /*初始的顏色*/      color: red;   }    a:visited{      /*f訪問後的顏色*/      color:gray;   }    a:hover{      /*滑鼠放上去的顏色*/      color: yellow;   }    a:active{      /*滑鼠點中的顏色*/      color:green;   }</style></head>    <body>      <a href="#">kkkkkkk</a>      <!-- 注意事項            1.css允許針對a標籤的4種狀態設定各自的特性,叫做css偽類            2.active一般不用            3.順序嚴格遵守:LVHA            4.a:link 可簡寫 a        -->    </body></html>
相關文章

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.