我的問題是,當我將鼠標懸停在我的div上時,它不會將鏈接顏色更改爲我想要的顏色。它只是保持其默認的黑色。更改鏈接顏色的div hover
我該如何做到這一點,當我將鼠標懸停在thumbnail-cointainer div上時,它會改變鏈接的顏色?
<div class="thumbnail-container">
<a href="">Text Here</a>
</div>
CSS:
a {
color: #000000;
text-decoration: none;
}
a:hover,
a:focus {
color: #005580;
text-decoration: underline;
}
.thumbnail-container {
width: 220px;
margin-top: 15px;
margin-right: 20px;
float: left;
}
.thumbnail-container:hover {
color: #0088cc;
}
試.thumbnail容器:鼠標懸停在一個{ 顏色:#0088cc; } – 2013-05-11 04:29:57
http://stackoverflow.com/questions/11193762/change-link-color-on-div-hover – 2013-05-11 04:34:38
nvm,現在作品:) – 2013-05-11 04:34:44