by zhangxinxu 2009-12-07 00:35

css模拟图片的投影效果

css代码:
.zxx_shade_image{display:-moz-inline-stack; display:inline-block; padding:0 1px 1px 0; font-size:0; background:#bfbfbf; border-bottom:1px solid #eaeaea; border-right:1px solid #eaeaea;} .zxx_shade_image img{margin:-1px 0 0 -2px; padding-bottom:1px; background:#808080; border-width:1px 1px 0; border-style:solid; border-color:#eaeaea #808080 transparent #eaeaea; float:left; position:relative;}
相应HTML代码:
<a href="#nogo" class="zxx_shade_image"> <img src="//image.zhangxinxu.com/image/study/mm.jpg" /> </a>