<?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>AgilePHP &#187; CSS</title>
	<atom:link href="http://www.agilephp.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.agilephp.net</link>
	<description>开发可以敏捷，人生需要慢慢体味</description>
	<lastBuildDate>Thu, 03 Nov 2011 11:53:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>条件注释</title>
		<link>http://www.agilephp.net/2009/06/conditional-comment/</link>
		<comments>http://www.agilephp.net/2009/06/conditional-comment/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 02:05:25 +0000</pubDate>
		<dc:creator>bbiao</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.agilephp.net/?p=86</guid>
		<description><![CDATA[以前一直是把支持IE的CSS跟JS都与项目中的基本代码写在一起的，现在想想这确实不是个好方法，不但调试起来很不爽，而且维护起来也很麻烦。一直忘了条件注释这么个好东西，可以把支持IE的hack code单独写在一个文件里，用条件注释的方式引入。 示例如下： &#60;!--[if IE]&#62; Internet Explorer &#60;![endif]--&#62; &#60;!--[if IE 5]&#62; Internet Explorer 5 &#60;![endif]--&#62; &#60;!--[if IE 5.0]&#62; Internet Explorer 5.0 &#60;![endif]--&#62; &#60;!--[if IE 5.5]&#62; Internet Explorer 5.5 &#60;![endif]--&#62; &#60;!--[if IE 6]&#62; Internet Explorer 6 &#60;![endif]--&#62; &#60;!--[if IE 7]&#62; Internet Explorer 7 &#60;![endif]--&#62; &#60;!--[if gte IE 5]&#62; Internet Explorer 5 and up &#60;![endif]--&#62; &#60;!--[if lt [...]<h3>相关文章</h3>
<ol>
		<li><a href="http://www.agilephp.net/2009/08/cloud-to-overview/" rel="bookmark">了解一些“云”</a><!-- (2.9)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>以前一直是把支持IE的CSS跟JS都与项目中的基本代码写在一起的，现在想想这确实不是个好方法，不但调试起来很不爽，而且维护起来也很麻烦。一直忘了条件注释这么个好东西，可以把支持IE的hack code单独写在一个文件里，用条件注释的方式引入。<br />
示例如下：</p>
<pre>&lt;!--[if IE]&gt;
Internet Explorer
&lt;![endif]--&gt;
&lt;!--[if IE 5]&gt;
Internet Explorer 5
&lt;![endif]--&gt;
&lt;!--[if IE 5.0]&gt;
Internet Explorer 5.0
&lt;![endif]--&gt;
&lt;!--[if IE 5.5]&gt;
Internet Explorer 5.5
&lt;![endif]--&gt;
&lt;!--[if IE 6]&gt;
Internet Explorer 6
&lt;![endif]--&gt;
&lt;!--[if IE 7]&gt;
Internet Explorer 7
&lt;![endif]--&gt;
&lt;!--[if gte IE 5]&gt;
Internet Explorer 5 and up
&lt;![endif]--&gt;
&lt;!--[if lt IE 6]&gt;
Internet Explorer lower than 6
&lt;![endif]--&gt;
&lt;!--[if lte IE 5.5]&gt;
Internet Explorer lower or equal to 5.5
&lt;![endif]--&gt;
&lt;!--[if gt IE 6]&gt;
Internet Explorer greater than 6
&lt;![endif]--&gt;</pre>
<h3>相关文章</h3>
<ol>
		<li><a href="http://www.agilephp.net/2009/08/cloud-to-overview/" rel="bookmark">了解一些“云”</a><!-- (2.9)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.agilephp.net/2009/06/conditional-comment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

