如何仅在鼠标悬停时更改按钮的不透明度。
<style>
.change_opacity:hover{
/* FIRST (order is important) */
opacity: 0.7;
/* SECOND (IE8) */
-ms-filter:”progid:DXImageTransform.Microsoft.Alpha(Opacity=70)”;
/* THIRD (IE7) */
filter: alpha(opacity=70);
}
</style>
<a href="http://www.youtube.com/watch?v=xiwLYMExzi8">
<img src="http://i.imgur.com/nGiyduv.jpg" alt="potatos" class="change_opacity"></a>