当鼠标悬停在按钮上时,我正在尝试更改按钮的文本颜色
这是我的Jsfiddle
我的 HTML 是
<div id="groups_landingpage_contentdiv">
<div class="groups_landingpage_contentdiv_image">
<img src="http://i.imgur.com/F1s05.png" width="150" />
</div>
<div class="groups_landingpage_contentdiv_text">
<h2>Welcome To Rang De Group</h2>
<p>RDBO conducts free screenings of rare, socially relevant
documentaries and films for the general public and corporate audiences.
<button class="landingpage_create_group_button">
<span class="sprite_16x16_group_icon_with_circleback fl mar5"></span>
<p>Create A Group</p>
</button>
</p>
</div>
<div class="clearfloat"> </div>
</div>`
我的 CSS 是
.sprite_16x16_group_icon_with_circleback {
background:transparent url(http://i.imgur.com/On0lt.png) no-repeat 0 0;
background-position:-250px -524px;
height:34px;
width:41px
}
.fl {
float:left
}
.mar5 {
margin:5px
}
#groups_landingpage_contentdiv {
float:left;
width:727px;
padding:0 0 20px!important
}
.groups_landingpage_contentdiv_image {
float:left;
width:35%;
padding:25px 0 0 20px
}
.groups_landingpage_contentdiv_text {
float:left;
width:55%;
text-align:justify;
padding:20px 0 0
}
.groups_landingpage_contentdiv_text h2 {
color:#628e0e;
font:11pt/22pt Arial, Helvetica, sans-serif;
font-weight:600;
padding:0 0 10px
}
.groups_landingpage_contentdiv_text p {
color:#404040;
font:9pt/16pt Arial, Helvetica, sans-serif;
padding:0
}
.groups_landingpage_contentdiv_text p button.landingpage_create_group_button p {
font-size:11pt;
font-weight:600;
color:#000;
line-height:18px;
cursor:pointer;
text-shadow:1px 1px 0 white;
padding:9px 0 0!important
}
.landingpage_create_group_button {
background:#F8F8F8;
color:black;
font-weight:bold;
font-size:10pt;
border-radius:3px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
line-height:17px;
cursor:pointer;
text-shadow:1px 1px 0 white;
width:200px;
margin-top:10px;
padding:0 7px 3px
}
.landingpage_create_group_button:hover {
background:#9ABA3B;
color:#fff!important;
text-shadow:1px 1px 0 #6F862A
}
.landingpage_create_group_button:hover.groups_landingpage_contentdiv_text p button.landingpage_create_group_button p {
color:#fff!important;
text-shadow:1px 1px 0 #6F862A
}