<?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://www.silenk.com/tag/%e6%af%94%e4%be%8b%e7%bc%a9%e6%94%be/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silenk.com</link>
	<description>My territory, My way —— No Obstacle！</description>
	<lastBuildDate>Wed, 28 Apr 2010 12:28:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS:用CSS等比例缩放图片</title>
		<link>http://www.silenk.com/use-css-and-scaling-for-image/</link>
		<comments>http://www.silenk.com/use-css-and-scaling-for-image/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 10:32:08 +0000</pubDate>
		<dc:creator>silenkee</dc:creator>
				<category><![CDATA[JavaScript&CSS]]></category>
		<category><![CDATA[比例缩放]]></category>

		<guid isPermaLink="false">http://www.silenk.com/?p=25</guid>
		<description><![CDATA[对于图片的缩放问题，一般情况下，貌似用一句
MAX-WIDTH: 40px; MAX-HEIGHT: 40px;
就搞顶了，在IE7，FF和Chrome中都比较正常，可是。。。IE6。。。
不想用JS，所以试了N久后：

width:expression(this.width > 100 &#038;&#038; this.width > this.height ? 100 : true);
height: expression(this.height > 100 ? 100 : true);
基本这样就兼容支持IE6、IE7、FF、和Chrome.
]]></description>
			<content:encoded><![CDATA[<p>对于图片的缩放问题，一般情况下，貌似用一句</p>
<blockquote><p>MAX-WIDTH: 40px; MAX-HEIGHT: 40px;</p></blockquote>
<p>就搞顶了，在IE7，FF和Chrome中都比较正常，可是。。。IE6。。。<br />
不想用JS，所以试了N久后：</p>
<blockquote><p>
width:expression(this.width > 100 &#038;&#038; this.width > this.height ? 100 : true);<br />
height: expression(this.height > 100 ? 100 : true);</p></blockquote>
<p>基本这样就兼容支持IE6、IE7、FF、和Chrome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silenk.com/use-css-and-scaling-for-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
