<?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>家有小虎 &#187; IE</title>
	<atom:link href="http://jiahu.net/tag/ie/feed" rel="self" type="application/rss+xml" />
	<link>http://jiahu.net</link>
	<description>我在路上, 你不在身旁. 想你的时候, 温暖依然.</description>
	<lastBuildDate>Fri, 23 Mar 2012 04:47:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>在IE浏览器中模拟实现图片CSS的 max-width</title>
		<link>http://jiahu.net/%e5%9c%a8ie%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%a8%a1%e6%8b%9f%e5%ae%9e%e7%8e%b0%e5%9b%be%e7%89%87css%e7%9a%84-max-width.htm</link>
		<comments>http://jiahu.net/%e5%9c%a8ie%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%a8%a1%e6%8b%9f%e5%ae%9e%e7%8e%b0%e5%9b%be%e7%89%87css%e7%9a%84-max-width.htm#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:04:00 +0000</pubDate>
		<dc:creator>@ouc</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[样式]]></category>

		<guid isPermaLink="false">http://jiahu.net/?p=985</guid>
		<description><![CDATA[非IE浏览器: .post-body img {max-width:400px;} IE: .post-body img { max-width:400px; width: expression(this.width &#62; 400 ? 400: true); } 非IE浏览器: .post-body img {max-width:95%;} IE: 无法实现百分比的最大值 特别说明: 如果图片放在一个容器中时, 即使设置了容器的max-width值, 也需要设置图片的max-width值, 否则图片还是会撑开容器的尺寸. #sidebar {width:220px; width: expression(this.width &#62; 220 ? 220: true); } #sidebar img {max-width:200px; width: expression(this.width &#62; 200 ? 200: true); } 来源: http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html]]></description>
			<content:encoded><![CDATA[<p>非IE浏览器:</p>
<blockquote><p>.post-body img {max-width:400px;}</p></blockquote>
<p>IE:</p>
<blockquote><p>.post-body img {<br />
max-width:400px;<br />
width: expression(this.width &gt; 400 ? 400: <span style="color: #ff0000;">true</span>);<br />
}</p></blockquote>
<p>非IE浏览器:</p>
<blockquote><p>.post-body img {max-width:95%;}</p></blockquote>
<p>IE:</p>
<blockquote><p>无法实现百分比的最大值</p></blockquote>
<p>特别说明:</p>
<blockquote><p>如果图片放在一个容器中时, 即使设置了容器的max-width值, 也需要设置图片的max-width值, 否则图片还是会撑开容器的尺寸.</p>
<p>#sidebar {width:220px;<br />
width: expression(this.width &gt; 220 ? 220: true);<br />
}</p>
<p>#sidebar <span style="color: #ff0000;">img </span>{max-width:200px;<br />
width: expression(this.width &gt; 200 ? 200: true);<br />
}</p></blockquote>
<p>来源: <a href="http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html" target="_blank">http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jiahu.net/%e5%9c%a8ie%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%a8%a1%e6%8b%9f%e5%ae%9e%e7%8e%b0%e5%9b%be%e7%89%87css%e7%9a%84-max-width.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE8不兼容你的网页 怎么办? &#8211; 简单开启兼容模式</title>
		<link>http://jiahu.net/ie8%e4%b8%8d%e5%85%bc%e5%ae%b9%e4%bd%a0%e7%9a%84%e7%bd%91%e9%a1%b5-%e6%80%8e%e4%b9%88%e5%8a%9e-%e7%ae%80%e5%8d%95%e5%bc%80%e5%90%af%e5%85%bc%e5%ae%b9%e6%a8%a1%e5%bc%8f.htm</link>
		<comments>http://jiahu.net/ie8%e4%b8%8d%e5%85%bc%e5%ae%b9%e4%bd%a0%e7%9a%84%e7%bd%91%e9%a1%b5-%e6%80%8e%e4%b9%88%e5%8a%9e-%e7%ae%80%e5%8d%95%e5%bc%80%e5%90%af%e5%85%bc%e5%ae%b9%e6%a8%a1%e5%bc%8f.htm#comments</comments>
		<pubDate>Fri, 29 Aug 2008 06:14:10 +0000</pubDate>
		<dc:creator>@ouc</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[兼容性]]></category>
		<category><![CDATA[网页]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://cngator.net/?p=644</guid>
		<description><![CDATA[只需要在页面中加入如下HTTP meta-tag: &#60;meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7&#8243; /&#62; 只要IE8一读到这个标签,它就会自动启动IE7兼容模式,保证页面完整展示. 还有一种方法是针对整个网站的,在IIS中加入如下描述符就可以有相同的效果,当然这么做范围更广. &#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&#62; &#60;configuration&#62; &#60;system.webServer&#62; &#60;httpProtocol&#62; &#60;customHeaders&#62; &#60;add name=”X-UA-Compatible” value=”IE=EmulateIE7&#8243;&#62; &#60;/customHeaders&#62; &#60;/httpProtocol&#62; &#60;/system.webServer&#62; &#60;/configuration&#62; 或者你还可以使用IIS admin tool来定义,更为简单. PS: 只是权宜之计, 还是尽快符合W3C标准为好. 来源: http://www.cnbeta.com/articles/63391.htm]]></description>
			<content:encoded><![CDATA[<p>只需要在页面中加入如下HTTP meta-tag:</p>
<p><strong>&lt;meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7&#8243; /&gt;</strong></p>
<p>只要IE8一读到这个标签,它就会自动启动IE7兼容模式,保证页面完整展示.</p>
<p>还有一种方法是针对整个网站的,在IIS中加入如下描述符就可以有相同的效果,当然这么做范围更广.</p>
<p><strong>&lt;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&gt;<br />
&lt;configuration&gt;<br />
&lt;system.webServer&gt;<br />
&lt;httpProtocol&gt;<br />
&lt;customHeaders&gt;<br />
&lt;add name=”X-UA-Compatible” value=”IE=EmulateIE7&#8243;&gt;<br />
&lt;/customHeaders&gt;<br />
&lt;/httpProtocol&gt;<br />
&lt;/system.webServer&gt;<br />
&lt;/configuration&gt;<br />
</strong><br />
或者你还可以使用IIS admin tool来定义,更为简单.</p>
<div class="wp-caption alignnone" style="width: 235px"><img src="http://blogs.msdn.com/blogfiles/chkoenig/WindowsLiveWriter/ConfiguringApacheforIE8Beta2sIE7Compatib_7BEC/image_thumb.png" alt="IIS, IE8, 兼容" width="225" height="242" /><p class="wp-caption-text">IIS, IE8, 兼容</p></div>
<p>PS: 只是权宜之计, 还是尽快符合W3C标准为好.<br />
来源: <a href="http://www.cnbeta.com/articles/63391.htm" target="_blank">http://www.cnbeta.com/articles/63391.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jiahu.net/ie8%e4%b8%8d%e5%85%bc%e5%ae%b9%e4%bd%a0%e7%9a%84%e7%bd%91%e9%a1%b5-%e6%80%8e%e4%b9%88%e5%8a%9e-%e7%ae%80%e5%8d%95%e5%bc%80%e5%90%af%e5%85%bc%e5%ae%b9%e6%a8%a1%e5%bc%8f.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

