<?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>WEB前端开发 &#187; IE6</title>
	<atom:link href="http://www.css88.com/archives/tag/ie6/feed" rel="self" type="application/rss+xml" />
	<link>http://www.css88.com</link>
	<description>专注前端开发，关注用户体验</description>
	<lastBuildDate>Wed, 01 Sep 2010 01:38:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>【IE6的疯狂之十】父级使用padding后子元素绝对定位的BUG（2010年3月30日更新）</title>
		<link>http://www.css88.com/archives/1584</link>
		<comments>http://www.css88.com/archives/1584#comments</comments>
		<pubDate>Tue, 30 Mar 2010 10:58:06 +0000</pubDate>
		<dc:creator>愚人码头</dc:creator>
				<category><![CDATA[(x)html+css]]></category>
		<category><![CDATA[前端名博]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE6 BUG]]></category>

		<guid isPermaLink="false">http://www.css88.com/?p=1584</guid>
		<description><![CDATA[在前端开发中，经常会用到css的position:absolute来使层浮动，前通过left,top,right等属性来对层进行定位，但ie6对left,top,right等属性的解释和ie7，ie8及firefox、chrome等不一致。 在父层使用position:relative;和padding（当然0值除外）后，ie6中层的定位起始坐标是从padding后的位置算起，而其他则从层的真实位置算起，而非被padding改变后的那个位置。这点造成使用position:absolute进行层定位时ie6与其他浏览器的表现不一样。 目前解决办法，使用csshack,_left针对ie6进行重设。 另：IE6 BUG大全： http://www.css88.com/archives/579 ===========================以下内容2010年3月30日更新============================= 今天收到robertsky123的留言（见留言区）： 一些样例请测试好再传，会误导读者的，还有ie与其他主流浏览器的盒模式是一样的，不是ie定了width在加padding就不会改变宽度也是改变的， 网上有些东西很容易误导读者，请博主对读者负责啊！ 非常感谢robertsky123的留言和建议！由于robertsky123当头棒喝使我重新对该问题进行了测试。 确实该问题还有其他的解决：不过这些方案很和实际项目有关，比如这个父级容器是否顶宽定高等其他原因。 首先看问题的产生,HTML和CSS如下： &#60;div style=&#34;position:relative; padding:20px; border:2px solid #F00;&#34;&#62; &#60;div style=&#34;position:absolute; top:0; left:0; border:1px solid #690;&#34;&#62;test box&#60;/div&#62; &#60;/div&#62; 显示如图： robertsky123在留言中说的“ie与其他主流浏览器的盒模式是一样的”我真不敢苟同，我始终觉得IE6的盒模式就是和其他主流浏览器盒模式存在差异，如果是一样的，那么试问这个例子IE6为什么会和其他浏览器不同呢？ 虽然相对定位的父级容器加宽度，高度，zoom:1都能使本来中定位的test box圆点和其他主流浏览器一致，例如： &#60;div style=&#34;position:relative; padding:20px; border:2px solid #F00;height:20px&#34;&#62; &#60;div style=&#34;position:absolute; top:0; left:0; border:1px solid #690;&#34;&#62;test box&#60;/div&#62; &#60;/div&#62; 如图： 注：这里如果加宽度和zoom:1,padding-top:20px和padding-bottom:20px的效果就没了，如图： 如果在实际项目中定死高度的，那么加个高度是很好的选择，但是杯具的是往往很多时候这个高度是自动撑的，那么我还是觉得用hack方式比较好！比如： &#60;div style=&#34;position:relative; padding:20px 20px; border:2px [...]]]></description>
			<content:encoded><![CDATA[<p>在前端开发中，经常会用到css的position:absolute来使层浮动，前通过left,top,right等属性来对层进行定位，但ie6对left,top,right等属性的解释和ie7，ie8及firefox、chrome等不一致。</p>
<p>在父层使用position:relative;和padding（当然0值除外）后，ie6中层的定位起始坐标是从padding后的位置算起，而其他则从层的真实位置算起，而非被padding改变后的那个位置。这点造成使用position:absolute进行层定位时ie6与其他浏览器的表现不一样。</p>
<p><a href="http://www.css88.com/wp-content/uploads/2009/06/未标题-1.png"><img class="alignnone size-full wp-image-1585" title="未标题-1" src="http://www.css88.com/wp-content/uploads/2009/06/未标题-1.png" alt="未标题-1" width="400" height="300" /></a></p>
<p>目前解决办法，使用csshack,_left针对ie6进行重设。</p>
<p>另：IE6 BUG大全： <a href="http://www.css88.com/archives/579">http://www.css88.com/archives/579</a></p>
<p>===========================以下内容2010年3月30日更新=============================</p>
<p>今天收到robertsky123的留言（见留言区）：</p>
<blockquote><p>一些样例请测试好再传，会误导读者的，还有ie与其他主流浏览器的盒模式是一样的，不是ie定了width在加padding就不会改变宽度也是改变的， 网上有些东西很容易误导读者，请博主对读者负责啊！</p></blockquote>
<p>非常感谢robertsky123的留言和建议！由于robertsky123当头棒喝使我重新对该问题进行了测试。</p>
<p>确实该问题还有其他的解决：不过这些方案很和实际项目有关，比如这个父级容器是否顶宽定高等其他原因。</p>
<p>首先看问题的产生,HTML和CSS如下：</p>
<pre class="brush: html; ">

&lt;div style=&quot;position:relative; padding:20px; border:2px solid #F00;&quot;&gt;

&lt;div style=&quot;position:absolute; top:0; left:0; border:1px solid #690;&quot;&gt;test box&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>显示如图：</p>
<p><a href="http://www.css88.com/wp-content/uploads/2009/06/2010-03-30_140311.jpg"><img class="alignnone size-full wp-image-2182" title="2010-03-30_140311" src="http://www.css88.com/wp-content/uploads/2009/06/2010-03-30_140311.jpg" alt="" width="598" height="337" /></a><span id="more-1584"></span></p>
<p>robertsky123在留言中说的“ie与其他主流浏览器的盒模式是一样的”我真不敢苟同，我始终觉得IE6的盒模式就是和其他主流浏览器盒模式存在差异，如果是一样的，那么试问这个例子IE6为什么会和其他浏览器不同呢？</p>
<p>虽然相对定位的父级容器加宽度，高度，zoom:1都能使本来中定位的test box圆点和其他主流浏览器一致，例如：</p>
<pre class="brush: html; ">

&lt;div style=&quot;position:relative; padding:20px; border:2px solid #F00;height:20px&quot;&gt;
&lt;div style=&quot;position:absolute; top:0; left:0; border:1px solid #690;&quot;&gt;test box&lt;/div&gt;
&lt;/div&gt;
</pre>
<div>如图：</div>
<div><a href="http://www.css88.com/wp-content/uploads/2009/06/2010-03-30_173704.jpg"><img class="alignnone size-full wp-image-2183" title="2010-03-30_173704" src="http://www.css88.com/wp-content/uploads/2009/06/2010-03-30_173704.jpg" alt="" width="337" height="307" /></a></div>
<div>注：这里如果加宽度和zoom:1,padding-top:20px和padding-bottom:20px的效果就没了，如图：</div>
<div><a href="http://www.css88.com/wp-content/uploads/2009/06/2010-03-30_173734.jpg"><img class="alignnone size-full wp-image-2184" title="2010-03-30_173734" src="http://www.css88.com/wp-content/uploads/2009/06/2010-03-30_173734.jpg" alt="" width="288" height="248" /></a></div>
<div>如果在实际项目中定死高度的，那么加个高度是很好的选择，但是杯具的是往往很多时候这个高度是自动撑的，那么我还是觉得用hack方式比较好！比如：</div>
<div>
<pre class="brush: html; ">

&lt;div style=&quot;position:relative; padding:20px 20px; border:2px solid #F00;&quot;&gt;
&lt;div style=&quot;position:absolute; top:0;_top:2px; left:0;_left:-20px; border:1px solid #690;&quot;&gt;test box&lt;/div&gt;
&lt;/div&gt;
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.css88.com/archives/1584/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>圆角头像的制作</title>
		<link>http://www.css88.com/archives/1805</link>
		<comments>http://www.css88.com/archives/1805#comments</comments>
		<pubDate>Thu, 20 Aug 2009 05:10:28 +0000</pubDate>
		<dc:creator>愚人码头</dc:creator>
				<category><![CDATA[(x)html+css]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[PNG]]></category>
		<category><![CDATA[圆角头像]]></category>

		<guid isPermaLink="false">http://www.css88.com/?p=1805</guid>
		<description><![CDATA[好多sns的头像都使用圆角了，昨天在校内上看到了圆角头像，今天在Qzone的也看到了圆角头像，圆角头像看上去比直角的美观。 圆角头像的制作原理就是在头像上覆盖一张透明的图片，把四个角颜色设置成页面的背景颜色，中间透明， 假设我的页面底色是纯黑色的，那么这个透明图片可以做成这样，如图： 这里需要注意的是需要把图片保存成24位的png，虽然IE6支持8位的png的透明，但是8位的png做透明圆弧图片存在效果上的问题，就是存在白色的杂边或锯齿，如图： ，24位的png或32位的png的圆弧透明（半透明）图片则非常光滑，但是该死的IE6不支持24位的png或32位的png透明(其他浏览器都支持)，需要我们额外的一下处理； IE6下处理24位的png或32位的png方方法有很多，我做了2种： 第一种：使用 AlphaImageLoader 筛选器： html代码： &#60;div id=&#34;circular-box&#34; class=&#34;clearfix&#34;&#62; &#60;ul&#62; &#60;li&#62;&#60;a href=&#34;http://www.sodao.com&#34;&#62;&#60;img src=&#34;jy20090504026.jpg&#34; width=&#34;200&#34; height=&#34;200&#34; /&#62;&#60;span class=&#34;cir-bg&#34;&#62;&#60;/span&#62;&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;http://www.sodao.com&#34;&#62;&#60;img src=&#34;jy20090504035.jpg&#34; width=&#34;200&#34; height=&#34;200&#34; /&#62;&#60;span class=&#34;cir-bg&#34;&#62;&#60;/span&#62;&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;http://www.sodao.com&#34;&#62;&#60;img src=&#34;jy20090504036.jpg&#34; width=&#34;200&#34; height=&#34;200&#34; /&#62;&#60;span class=&#34;cir-bg&#34;&#62;&#60;/span&#62;&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/div&#62; CSS代码： #circular-box{ margin: 50px;} #circular-box li{ float:left; margin:0 20px; position:relative} #circular-box li img{display:block} #circular-box li span{position:absolute; top:0; left:0;width:200px; [...]]]></description>
			<content:encoded><![CDATA[<p>好多sns的头像都使用圆角了，昨天在校内上看到了圆角头像，今天在Qzone的也看到了圆角头像，圆角头像看上去比直角的美观。</p>
<p><a href="http://www.css88.com/wp-content/uploads/2009/08/2009-08-19_173151.png"><img class="alignnone size-full wp-image-1808" title="2009-08-19_173151" src="http://www.css88.com/wp-content/uploads/2009/08/2009-08-19_173151.png" alt="2009-08-19_173151" width="243" height="105" /></a><a href="http://www.css88.com/wp-content/uploads/2009/08/2009-08-20_122313.png"><img class="alignnone size-full wp-image-1809" title="2009-08-20_122313" src="http://www.css88.com/wp-content/uploads/2009/08/2009-08-20_122313.png" alt="2009-08-20_122313" width="422" height="189" /></a></p>
<p>圆角头像的制作原理就是在头像上覆盖一张透明的图片，把四个角颜色设置成页面的背景颜色，中间透明，</p>
<p>假设我的页面底色是纯黑色的，那么这个透明图片可以做成这样，如图：</p>
<p><a href="http://www.css88.com/wp-content/uploads/2009/08/2009-08-20_123344.png"><img class="alignnone size-full wp-image-1810" title="2009-08-20_123344" src="http://www.css88.com/wp-content/uploads/2009/08/2009-08-20_123344.png" alt="2009-08-20_123344" width="200" height="200" /></a></p>
<p>这里需要注意的是需要把图片保存成24位的png，虽然IE6支持8位的png的透明，但是8位的png做透明圆弧图片存在效果上的问题，就是存在白色的杂边或锯齿，如图：</p>
<p><a href="http://www.css88.com/wp-content/uploads/2009/08/2009-08-20_124016.png"><img class="alignnone size-full wp-image-1811" title="2009-08-20_124016" src="http://www.css88.com/wp-content/uploads/2009/08/2009-08-20_124016.png" alt="2009-08-20_124016" width="466" height="223" /></a><span id="more-1805"></span></p>
<p>，24位的png或32位的png的圆弧透明（半透明）图片则非常光滑，但是该死的IE6不支持24位的png或32位的png透明(其他浏览器都支持)，需要我们额外的一下处理；</p>
<p>IE6下处理24位的png或32位的png方方法有很多，我做了2种：</p>
<p><strong>第一种：使用 AlphaImageLoader 筛选器：</strong></p>
<p>html代码：</p>
<pre class="brush: html; ">

&lt;div id=&quot;circular-box&quot; class=&quot;clearfix&quot;&gt;

&lt;ul&gt;

&lt;li&gt;&lt;a href=&quot;http://www.sodao.com&quot;&gt;&lt;img src=&quot;jy20090504026.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;span class=&quot;cir-bg&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.sodao.com&quot;&gt;&lt;img src=&quot;jy20090504035.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;span class=&quot;cir-bg&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.sodao.com&quot;&gt;&lt;img src=&quot;jy20090504036.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;span class=&quot;cir-bg&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;/div&gt;
</pre>
<p>CSS代码：</p>
<pre class="brush: css; ">

#circular-box{ margin: 50px;}

#circular-box li{ float:left; margin:0 20px; position:relative}

#circular-box li img{display:block}

#circular-box li span{position:absolute; top:0; left:0;width:200px; height:200px; background:url(circular.png) no-repeat; _background:none;_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&#039;circular.png&#039;,sizingMethod=&#039;crop&#039;); cursor:pointer}
</pre>
<p>这里需要注意的是：</p>
<ol>
<li>使用 <strong>AlphaImageLoader</strong> 筛选器的元素必须有宽高，width:XXpx; height:XXpx;</li>
<li>ie6下必须充值背景为none，_background:none</li>
</ol>
<p>查看demo：<a href="http://www.css88.com/demo/circular-img/circular-img1.html" target="_blank">http://www.css88.com/demo/circular-img/circular-img1.html</a></p>
<p><span style="font-family: Tahoma, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; white-space: pre;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; white-space: normal; font-size: 13px; line-height: 19px;"><br />
</span></span></p>
<p><span style="font-family: Tahoma, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; white-space: pre;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; white-space: normal; font-size: 13px; line-height: 19px;"><strong>第二种：使用</strong><a style="color: #000; text-decoration: none;" href="http://code.google.com/p/widgetfx/"><strong>widgetfx</strong></a><strong>的方法：</strong></span></span></p>
<p><span style="font-family: Tahoma, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; white-space: pre;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; white-space: normal; font-size: 13px; line-height: 19px;">你可以在这里获取最新的<a style="color: #000000; text-decoration: none;" href="http://code.google.com/p/widgetfx/">widgetfx</a>:<a href="http://code.google.com/p/widgetfx/source/browse/widgetfx.org/?r=122" target="_blank">http://code.google.com/p/widgetfx/source/browse/widgetfx.org/?r=122</a></span></span></p>
<p><span style="font-family: Tahoma, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; white-space: pre;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; white-space: normal; font-size: 13px; line-height: 19px;">html代码：</span></span></p>
<pre class="brush: html; ">

&lt;div id=&quot;circular-box&quot; class=&quot;clearfix&quot;&gt;

&lt;ul&gt;

&lt;li&gt;&lt;a href=&quot;http://www.sodao.com&quot;&gt;&lt;img src=&quot;jy20090504026.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;span class=&quot;cir-bg&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.sodao.com&quot;&gt;&lt;img src=&quot;jy20090504035.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;span class=&quot;cir-bg&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.sodao.com&quot;&gt;&lt;img src=&quot;jy20090504036.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;span class=&quot;cir-bg&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;/div&gt;
</pre>
<p>CSS代码：</p>
<pre class="brush: css; ">

#circular-box{ margin: 50px;}

#circular-box li{ float:left; margin:0 20px; position:relative}

#circular-box li img{display:block}

#circular-box li span{position:absolute; top:0; left:0;width:200px; height:200px; background:url(circular.png) no-repeat; behavior:url(&quot;iepngfix.htc&quot;); cursor:pointer}
</pre>
<p>这里需要注意的是：</p>
<ol>
<li>页面头部需要引用iepngfix_tilebg.js；</li>
<li>在透明图片的元素上加：behavior:url(&#8220;iepngfix.htc&#8221;)；</li>
</ol>
<p>查看demo：<a href="http://www.css88.com/demo/circular-img/circular-img.html" target="_blank">http://www.css88.com/demo/circular-img/circular-img.html</a></p>
<p>更多方法请访问：</p>
<p><a href="http://www.css88.com/archives/577" target="_blank">http://www.css88.com/archives/577</a>,</p>
<p><a href="http://blog.gulu77.com/?p=147" target="_blank">http://blog.gulu77.com/?p=147</a>;</p>
<p><a href="http://blog.bingo929.com/png-transparency-in-ie6.html" target="_blank">http://blog.bingo929.com/png-transparency-in-ie6.html</a>;</p>
<p>另：校内最新的该效果制作有的特别，在支持html5的浏览器上使用了Canvas,IE下是用VML,HTML 5画图基本上都靠canvas,而且需要js的支持。相关信息可以查看<a href="http://byzuo.com/blog/html5-canvas" target="_blank">http://byzuo.com/blog/html5-canvas</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.css88.com/archives/1805/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>作为一名前端开发工程师居然没有IE6！</title>
		<link>http://www.css88.com/archives/1339</link>
		<comments>http://www.css88.com/archives/1339#comments</comments>
		<pubDate>Thu, 28 May 2009 18:54:52 +0000</pubDate>
		<dc:creator>愚人码头</dc:creator>
				<category><![CDATA[前端工具]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[win7]]></category>

		<guid isPermaLink="false">http://www.css88.com/?p=1339</guid>
		<description><![CDATA[前端开发中少不了IE6测试啊，我的机器装了win7，可是win7不能运行ie6，装了ietest，一打开IE6标签，ietest就挂了，不知道ietest什么时候能在win7下正常使用;再用Internet Explorer Collection，ie6倒是装上了，但是使用起来仿佛回到了ie1时代，都不知怎么用，卸了！ 网上都说装Virtual PC虚拟机，可是我的CPU是英特尔® 酷睿™2 双核T5750，居然不支持虚拟化技术，我仅代表和我一样使用英特尔® 酷睿™2 双核T5750的所有用户深切的鄙视这个cpu。 作为一名前端开发工程师居然没有IE6！天哪！ 如何在win7里运行ie6啊&#8230; 现在木有ie6是相当头疼啊&#8230;]]></description>
			<content:encoded><![CDATA[<p>前端开发中少不了IE6测试啊，我的机器装了win7，可是win7不能运行ie6，装了ietest，一打开IE6标签，ietest就挂了，不知道ietest什么时候能在win7下正常使用;再用<a href="http://finalbuilds.edskes.net/iecollection.htm" target="_blank">Internet Explorer Collection</a>，ie6倒是装上了，但是使用起来仿佛回到了ie1时代，都不知怎么用，卸了！</p>
<p>网上都说装<a href="http://www.microsoft.com/windows/virtual-pc/" target="_blank">Virtual PC</a>虚拟机，可是我的CPU是英特尔® 酷睿™2 双核T5750，<a href="http://www.intel.com/cd/products/services/apac/zho/405541.htm" target="_blank">居然不支持虚拟化技术</a>，我仅代表和我一样使用英特尔® 酷睿™2 双核T5750的所有用户深切的鄙视这个cpu。</p>
<p>作为一名前端开发工程师居然没有IE6！天哪！</p>
<p>如何在win7里运行ie6啊&#8230; 现在木有ie6是相当头疼啊&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.css88.com/archives/1339/feed</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>haslayout引起的IE6 :hover失效</title>
		<link>http://www.css88.com/archives/1335</link>
		<comments>http://www.css88.com/archives/1335#comments</comments>
		<pubDate>Tue, 26 May 2009 16:51:41 +0000</pubDate>
		<dc:creator>愚人码头</dc:creator>
				<category><![CDATA[(x)html+css]]></category>
		<category><![CDATA[:hover]]></category>
		<category><![CDATA[hasLayout]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.css88.com/?p=1335</guid>
		<description><![CDATA[大家都知道IE6之支持&#60;a&#62;标签的:hover为了，但是通常在做实际效果的时候&#60;a&#62;标签 :hover在IE6下会失效， 看代码： &#60; !DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;&#60;a href=&#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;&#60;a href=&#34;http://www.w3.org/1999/xhtml&#34;&#62;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;无标题文档&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; a:hover { } a:hover span{color:#F00;} &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;a href=&#34;#&#34;&#62;鼠标经过时改变我的&#60;span&#62;颜色&#60;/span&#62;&#60;/a&#62; &#60;/body&#62; &#60;/html&#62; 在IE6下“颜色”根本就不会变成红色，其他浏览器都是好的，要解决这个问题就必须触发a:hover的layout，例如a:hover { display:inline-block}或者a:hover { zoom:1}等等。]]></description>
			<content:encoded><![CDATA[<p>大家都知道IE6之支持&lt;a&gt;标签的:hover为了，但是通常在做实际效果的时候&lt;a&gt;标签 :hover在IE6下会失效，</p>
<p>看代码：</p>
<pre class="brush: html; ">

&lt; !DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;&lt;a href=&quot;http://www.w3.org/1999/xhtml&quot;&gt;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;无标题文档&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
a:hover { }
a:hover span{color:#F00;}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;a href=&quot;#&quot;&gt;鼠标经过时改变我的&lt;span&gt;颜色&lt;/span&gt;&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>在IE6下“颜色”根本就不会变成红色，其他浏览器都是好的，<strong>要解决这个问题就必须触发a:hover的layout，例如a:hover { display:inline-block}或者a:hover { zoom:1}</strong>等等。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.css88.com/archives/1335/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
