<div class="aa"> <style type="text/css"> /*IE 5/6 边框清除BUG*/ /*IE 5/6 定位BUG*/ (正确放置阴影) </style>
以下是引用片段:
<div class="aaimg">
<img src="../images/cc.jpg" alt="" width="100" height="80"/>
</div>
<p>幼儿园彩色家园系列</P>
</div>
.aa{ float:left;width:300px;margin:15px 10px 5px 10px; }
.aaimg{background:url(drop_shadow.gif) left bottom no-repeat;(给照片加一个阴影的背景图片)}
.aaimg img{border: 1px solid #666; background-color:#fc0;padding:10px;position:relative;top:-5px;left:-5px;}
.aa p{font:bold 12px/20px "宋体";color:#8cd;text-align:center;border:1px dashed #778;padding:5px; margin:10px 0px 0px 0px;height:5em(照片说明高度不一,会令照片错行显示,所以加一个强制高度使其在一行显示。);}
* html #aa{width:100%;}
* html #aa img{width:100%;}
原载: No.1网络工作室 http://www.noonenet.cn/