2015-01-07 51 views

回答

0

使用CSS,你會想添加背景顏色:yourcolor到懸停僞類。

下面是一個例子給你:

<!-- Here's the HTML --> 
<div class="myDiv"> 
    <p>Here is some text and then you will be <a href="mylink.html">linking</a> to another site</p> 
</div> 

然後在你的CSS你必須:

.myDiv a:hover { 
    background-color: red; 
} 

很簡單。