用CSS改變的圖片由模糊到清楚的導航

來源:互聯網
上載者:User

<!-- 把下列代碼加入到head區內 -->
<style>
.highlightit img{
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
-moz-opacity: 0.5;
}

.highlightit:hover img{
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
-moz-opacity: 1;
}

</style>

<!-- 把下列代碼加入到body區內 -->
<a href="http://www.wysjs.cn/" class="highlightit"><img border="0" src="/img/200406301.jpg"></a>
<a href="http://www.wysjs.cn/" class="highlightit"><img border="0" src="/img/200406301.jpg"></a>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.