CSS中A的一個應用

來源:互聯網
上載者:User

css中的A能創造出很多精彩的效果,這次的這個效果對於經常逛藍色的朋友來說應該很熟悉,就來自藍色理想作品庫的作品展示效果。我很喜歡,所以把它拿了出來----簡單的精彩!本期模特依舊是朱茵。 HTML代碼<style type="text/css"><br />.worksbox{width:114px;height:114px;position:relative;}<br />.worksbox a{border:1px solid #F0F0E8;background-color:#FFF;padding:6px;display:block;}<br />.worksbox a:hover{border:1px solid #000;background-color:#333;text-decoration: none;}<br />.worksbox a span{display:none; text-align:center; font-size:12px;}<br />.worksbox a:hover span{color:#FFF;display:block;background-color:#333;width:114px;position:absolute;top:94px;left:0px;line-height:20px;}<br />.worksbox a img{width:100px;height:100px;}<br /></style><br /><div class="worksbox" ><a href="#" ><span>本期模特【朱茵】</span><img src="attachments/month_0709/m2007916234919.gif" alt="" border="0" /></a></div>

相關文章

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.