<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[用CSS给图片加个阴影 ]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Mon, 06 Nov 2006 06:20:41 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	具体的实现原理大家可以参考这篇文章<br/>原文：<a href="http://www.alistapart.com/articles/cssdropshadows" target="_blank">http://www.alistapart.com/articles/cssdropshadows</a><br/>中文翻译：<a href="http://www.onestab.net/a/ala/cssdropshadows.html" target="_blank">http://www.onestab.net/a/ala/cssdropshadows.html</a><br/>如果不想了解那么透彻的话，或者看了不太明白的，可以把下面的类加入到你的CSS中<br/>只是发日志的时候有点麻烦，需要把你要加阴影的图片插入到< div class="img-shadow">< div>< /div>< /div>中，只插入到< div class="img-shadow">< /div>中就只有白边没有阴影了。<br/>另外，因为IE不支持透明的PNG图片，所以你要把阴影图片和背景设为同一色才能看到好的效果。（可以看下面的演示图片） <br/>.img-shadow &#123;<br/> &nbsp;float:left;<br/> &nbsp;background: url(images/shadowAlpha.png) no-repeat bottom right !important;<br/> &nbsp;background: url(images/shadow.gif) no-repeat bottom right;<br/> &nbsp;margin: 10px 0 0 10px !important;<br/> &nbsp;margin: 10px 0 0 5px;<br/> &nbsp;&#125;<br/><br/>.img-shadow div, .sh-left div, .sh-right div &#123;<br/> &nbsp;background: url(images/shadowAlpha.png) no-repeat left top !important;<br/> &nbsp;background: url(images/shadow.gif) no-repeat left top;<br/> &nbsp;float: left;<br/> &nbsp;padding: 0px 5px 5px 0px;<br/> &nbsp;&#125;<br/><br/>.img-shadow img &#123;<br/> &nbsp;display: block;<br/> &nbsp;position: relative;<br/> &nbsp;background-color: #fff;<br/> &nbsp;border: 1px solid #a9a9a9;<br/> &nbsp;padding: 4px;<br/> &nbsp;&#125;<br/><br/><br/>可以到首页在Change Look里面把style换成Blue，再来看那个有阴影的图片就不好看，但是在Firefox里面就正常。<br/>原文中还讲到了给文字添加这种效果，需要的可以自己去学习，我就不多说了。
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 用CSS给图片加个阴影 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>