<?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; 样式</title>
	<atom:link href="http://jiahu.net/tag/%e6%a0%b7%e5%bc%8f/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>
	</channel>
</rss>

