<?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>Star&#039;s Blog</title>
	<atom:link href="http://www.staryang.cn/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.staryang.cn</link>
	<description>New life,new start...</description>
	<lastBuildDate>Mon, 21 Jun 2010 04:59:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Hack.</title>
		<link>http://www.staryang.cn/?p=27</link>
		<comments>http://www.staryang.cn/?p=27#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:00:40 +0000</pubDate>
		<dc:creator>Star</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.staryang.cn/?p=27</guid>
		<description><![CDATA[由于不同的浏览器,对CSS的解析不一样,因此会导致生成的页面效果不一样,得不到我们所需要的页面效果.
这个时候我们就需要针对不同的浏览器去写不同的CSS,让它能够同时兼容不同的浏览器,能在不同的浏览器中也能得到我们想要的页面效果.
这个针对不同的浏览器写不同的CSS Code的过程,就叫CSS Hack.

1. *(星号), _(下划线), !important.
IE都能识别*,标准浏览器(如:Firefox,Opera,Netscape)不能识别*(星号).IE6能识别*(星号),也能识别_(下划线),但不能识别!important.IE7能识别*(星号),也能识别!important,但不能识别_(下划线).Firefox不能识别*(星号),也不能识别_(下划线),但能识别!important.
区别不同浏览器,CSS Hack写法:
区别Firefox与IE6:
background:red;
*background:blue;
区别Firefox与IE7:
background:red;
*background:yellow;
区别IE6与IE7:
background:yellow !important;
background:blue;
区别Firefox、IE6、IE7:
background:red;
*background:yellow !important;
*background:blue;
或:
background:red;
*background:yellow;
_background:blue;
2. * html,* +html.
在每个样式名称之前加上* html或* +html,就可以区分不同的浏览器.所有浏览器都支持标准写法, 标准浏览器(如:Firefox,Opera,Netscape)不能支持* html或* +html写法.IE6支持* html写法,IE7支持* +html写法.
区别不同浏览器,CSS Hack写法:
body{background:red;} /*标准写法,被所有浏览器执行.*/
*html body{background:blue;} /*被IE6执行.*/
*+html body{background:yellow;} /*被IE7执行.*/
书写顺序,一般是将识别能力强的浏览器的CSS写在后面,Firefox-&#62;IE7-&#62;IE6.
]]></description>
		<wfw:commentRss>http://www.staryang.cn/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决IE8、IE7、IE6兼容性问题.</title>
		<link>http://www.staryang.cn/?p=22</link>
		<comments>http://www.staryang.cn/?p=22#comments</comments>
		<pubDate>Wed, 31 Mar 2010 16:00:16 +0000</pubDate>
		<dc:creator>Star</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.staryang.cn/?p=22</guid>
		<description><![CDATA[IE8支持三种完全不同的网页渲染模式.
在IE8下,为了使页面显示效果与IE7相同,目前绝大多数网站都用IE7的渲染模式.
只需要在head标签内加入一行代码即可.
&#60;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" &#62;
]]></description>
		<wfw:commentRss>http://www.staryang.cn/?feed=rss2&amp;p=22</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS在线帮助文档.</title>
		<link>http://www.staryang.cn/?p=16</link>
		<comments>http://www.staryang.cn/?p=16#comments</comments>
		<pubDate>Sun, 28 Feb 2010 16:00:07 +0000</pubDate>
		<dc:creator>Star</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.staryang.cn/?p=16</guid>
		<description><![CDATA[Microsoft msdn提供的CSS在线帮助文档.
两种浏览方式:
1.按CSS名称浏览:http://msdn.microsoft.com/zh-cn/library/ee371197(Expression.30).aspx
2.按CSS类别浏览:http://msdn.microsoft.com/zh-cn/library/ee371193(v=Expression.30).aspx
]]></description>
		<wfw:commentRss>http://www.staryang.cn/?feed=rss2&amp;p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010年法定节假日.</title>
		<link>http://www.staryang.cn/?p=9</link>
		<comments>http://www.staryang.cn/?p=9#comments</comments>
		<pubDate>Sun, 31 Jan 2010 16:00:02 +0000</pubDate>
		<dc:creator>Star</dc:creator>
				<category><![CDATA[None]]></category>
		<category><![CDATA[法定节假日]]></category>

		<guid isPermaLink="false">http://www.staryang.cn/?p=9</guid>
		<description><![CDATA[1.元旦：1月1日至3日放假公休,共3天.
2.春节：2月13日至19日放假调休,共7天.(2月20日（星期六）,21日（星期日）上班)
3.清明节：4月3日至5日放假公休,共3天.
4.劳动节：5月1日至3日放假公休,共3天.
5.端午节：6月14日至16日放假调休,共3天.(6月12日（星期六）,13日（星期日）上班)
6.中秋节：9月22日至24日放假调休,共3天.(9月19日（星期日）,25日（星期六）上班)
7.国庆节：10月1日至7日放假调休,共7天.(9月26日（星期日）,10月9日（星期六）上班)
]]></description>
		<wfw:commentRss>http://www.staryang.cn/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New blog.</title>
		<link>http://www.staryang.cn/?p=1</link>
		<comments>http://www.staryang.cn/?p=1#comments</comments>
		<pubDate>Fri, 01 Jan 2010 00:00:00 +0000</pubDate>
		<dc:creator>Star</dc:creator>
				<category><![CDATA[None]]></category>
		<category><![CDATA[New]]></category>

		<guid isPermaLink="false">http://www.staryang.cn/?p=1</guid>
		<description><![CDATA[这个世界有太多的不如意.但是你的生活还是要继续&#8230;
新的一年.新的生活.新的开始&#8230;
New year,new life,new start&#8230;
All are new&#8230;
]]></description>
		<wfw:commentRss>http://www.staryang.cn/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
