用CSS實現的一頁面內的多種HOVER的效果

來源:互聯網
上載者:User

  用CSS實現的一頁面內的多種HOVER的效果,以下代碼貼到<head>區

 代碼如下 複製代碼
<head>
<style type="text/css">
<!--
.a { font-family: "宋體"; font-size: 9pt; color: #000000; text-decoration: none}
.a:hover { font-family: "宋體"; font-size: 9pt; color: #FF3333; text-decoration: underline}
.b { font-family: "宋體"; font-size: 9pt; color: #000000; text-decoration: none}
.b:hover { font-family: "宋體"; font-size: 9pt; color: #99ccff}
body { font-family: "宋體"; font-size: 9pt; color: #000000; text-decoration: none}
-->
</style>
</head>
以下代碼貼到<body>區
<body>
<a href="#" class="a">連結一</a><br>
<a href="#" class="b">連結二</a>
</body>
相關文章

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.