我想將鼠標懸停在div id-「RollOver1」上,並且能夠將背景更改爲與主背景不同的圖像。只粘貼滾動div的HTML不能使用jscript,所以有沒有一種方法在HTML或....?如何更改懸停上的背景圖像更改
<div id="RollOver1" style="position:absolute;overflow:hidden;left:152px;top:397px;width:183px;height:183px;z-index:4">
<a href="./car.html">
<img class="hover" alt="" src="images/Enter_02.jpg" style="left: 0px; top: 0px; width: 183px; height: 183px; display: block;">
<span style="display: none;"><img alt="" src="images/index_01.jpg" style="left:0px;top:0px;width:183px;height:183px"></span>
</a>
</div>
如果[搜索 「HTML哈弗」(https://www.google.co.uk/search?q = html%20hover)in Google你的答案是第一個在列表中(儘管由W3Schools提供) – George 2014-09-24 07:52:07
爲什麼人們在stackoverflow上提出這樣的問題? – 2014-09-24 08:00:47
很好實際上,我們問這些問題,因爲我們試過的東西我們不明白,因此再次問這個問題,希望另一個答案,你可以理解....... – 2014-09-24 09:33:05