<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ufo34记录 &#187; IE6</title>
	<atom:link href="http://www.ufo34.com/blog/tag/ie6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ufo34.com/blog</link>
	<description>一切从废话开始</description>
	<lastBuildDate>Sun, 06 Jun 2010 14:55:08 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>针对IE6不支持png</title>
		<link>http://www.ufo34.com/blog/2007/11/09/%e9%92%88%e5%af%b9ie6%e4%b8%8d%e6%94%af%e6%8c%81png/</link>
		<comments>http://www.ufo34.com/blog/2007/11/09/%e9%92%88%e5%af%b9ie6%e4%b8%8d%e6%94%af%e6%8c%81png/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 09:20:46 +0000</pubDate>
		<dc:creator>ufo</dc:creator>
				<category><![CDATA[网事点滴]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.ufo34.com/blog/2007/11/09/%e9%92%88%e5%af%b9ie6%e4%b8%8d%e6%94%af%e6%8c%81png/</guid>
		<description><![CDATA[从所周知IE6是不支持png透明图，

  这是我今天在komodomedia看见的一个较新的技术只用css文件就可以了,同时需要1px X 1px的透明gif.

这技术还不支持background-repeat.

<span class="readmore"><a href="http://www.ufo34.com/blog/2007/11/09/%e9%92%88%e5%af%b9ie6%e4%b8%8d%e6%94%af%e6%8c%81png/" title="针对IE6不支持png">阅读全文——共1044字</a></span>]]></description>
			<content:encoded><![CDATA[<p>从所周知IE6是不支持png透明图，<br />
  这是我今天在<a href="http://komodomedia.com/blog/index.php/2007/11/05/css-png-image-fix-for-ie/" title="查看komodomedia.com">komodomedia</a>看见的一个较新的技术只用css文件就可以了,同时需要<a href="http://www.ufo34.com/blog/wp-content/uploads/2007/11/transparent.gif">1px X 1px的透明gif</a>.<br />
这技术还不支持background-repeat.</p>
<pre><code>/* pngfix.css */
* html img,
* html .png{
azimuth: expression(
this.pngSet?this.pngSet=true:(this.nodeName == &quot;IMG&quot; &amp;&amp; this.src.toLowerCase().indexOf('.png')&gt;-1?(this.runtimeStyle.backgroundImage = &quot;none&quot;,
this.runtimeStyle.filter = &quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot; + this.src + &quot;', sizingMethod='image')&quot;,
this.src = &quot;/images/transparent.gif&quot;):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url(&quot;','').replace('&quot;)',''),
this.runtimeStyle.filter = &quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot; + this.origBg + &quot;', sizingMethod='crop')&quot;,
this.runtimeStyle.backgroundImage = &quot;none&quot;)),this.pngSet=true
);
}</code></pre>
<p>在head tag之间加上</p>
<pre><code>&lt;!--[if lte IE 6]&gt;
&lt;link rel="stylesheet" type="text/css" href="pngfix.css" /&gt;
&lt;![endif]--&gt;</code></pre>
<p>早前用javascript来修复的脚本, 这是其中一个script <a href="http://www.ufo34.com/blog/wp-content/uploads/2007/11/pngfix.js">pngfix.js</a> </p>
<p>我现在还用着比较传统的方法因为不想载入更多javascript(其实已载入很多了=.=) 所以我是单一的在css属性加上以下这行</p>
<pre><code>filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='transparent.png', sizingMethod='crop');</code></pre>
	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ufo34.com/blog/2008/05/16/%e5%89%8d%e5%8f%b0%e7%bd%91%e9%a1%b5%e8%ae%be%e8%ae%a1%e8%87%aa%e6%88%91%e6%b5%8b%e9%aa%8c/" title="前台网页设计自我测验 (五月 16, 2008)">前台网页设计自我测验</a> (2)</li>
	<li><a href="http://www.ufo34.com/blog/2009/04/08/2009%e7%bd%91%e9%a1%b5%e8%a3%b8%e5%a5%94%e8%8a%82/" title="2009网页裸奔节 (四月 8, 2009)">2009网页裸奔节</a> (0)</li>
	<li><a href="http://www.ufo34.com/blog/2008/04/08/%e4%b8%80%e8%b5%b7%e8%a3%b8%e5%a5%94/" title="一起裸奔 (四月 8, 2008)">一起裸奔</a> (4)</li>
	<li><a href="http://www.ufo34.com/blog/2008/01/15/%e9%80%9a%e8%bf%87w3c%e7%9a%84%e9%aa%8c%e8%af%81/" title="通过W3C的验证 (一月 15, 2008)">通过W3C的验证</a> (0)</li>
	<li><a href="http://www.ufo34.com/blog/2007/10/12/%e7%ac%ac%e4%b8%80%e4%bb%bdwordpress-theme%e8%ae%be%e8%ae%a1/" title="第一份wordpress theme设计 (十月 12, 2007)">第一份wordpress theme设计</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ufo34.com/blog/2007/11/09/%e9%92%88%e5%af%b9ie6%e4%b8%8d%e6%94%af%e6%8c%81png/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
