<?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; Webkit</title>
	<atom:link href="http://c.gzl.name/archives/category/iphone/webkit/feed" rel="self" type="application/rss+xml" />
	<link>http://c.gzl.name</link>
	<description>IPhone, Cocoa, PHP, Javascript, JQuery, Actionscript, etc...</description>
	<lastBuildDate>Thu, 29 Dec 2011 07:20:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>iPhone:针对不同设备,使用不同CSS</title>
		<link>http://c.gzl.name/archives/581</link>
		<comments>http://c.gzl.name/archives/581#comments</comments>
		<pubDate>Sat, 03 Jul 2010 23:02:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Webkit]]></category>
		<category><![CDATA[iPhone开发]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://c.gzl.name/?p=581</guid>
		<description><![CDATA[上个文章聊了一下怎么检测iPhone/iPod/iPad, 接下来我们就需要实施CSS了 if&#40;&#40;navigator.userAgent.match&#40;/iPhone/i&#41;&#41; &#124;&#124; &#40;navigator.userAgent.match&#40;/iPod/i&#41;&#41;&#41;&#123; document.write&#40;'&#60;link href=&#34;iphone.css&#34; rel=&#34;stylesheet&#34; type=&#34;text/css&#34;&#62;'&#41;; &#125; if&#40;&#40;navigator.userAgent.match&#40;/iPad/i&#41;&#41;&#41;&#123; document.write&#40;'&#60;link href=&#34;ipadwoflash.css&#34; rel=&#34;stylesheet&#34; type=&#34;text/css&#34;&#62;'&#41;; &#125; 以上的javascript在检测到是iphone和ipod touch的时候就会写入iphone的css, 在检测到ipad的时候就会使用一个为ipad准备的没有flash的css结构~ 南无阿弥陀佛 南无本师释迦牟尼佛 南无药师琉璃光如来]]></description>
		<wfw:commentRss>http://c.gzl.name/archives/581/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone:Javascript/PHP检测iPhone/iPod/iPad</title>
		<link>http://c.gzl.name/archives/579</link>
		<comments>http://c.gzl.name/archives/579#comments</comments>
		<pubDate>Sat, 03 Jul 2010 22:53:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Webkit]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[userAgent]]></category>

		<guid isPermaLink="false">http://c.gzl.name/?p=579</guid>
		<description><![CDATA[PHP的比较简单可爱: if &#40;strpos&#40;$_SERVER&#91;'HTTP_USER_AGENT'&#93;,&#34;iPhone&#34;&#41;&#41; &#123; echo '在用户代理信息里面如果有iPhone, 执行您的代码'; //别忘了给iPod和iPad也加上去当条件阿~~ &#125; javascript的也不错,不过我一直不喜欢浪费太多的iPhone资源,不过这回佛典的html文件还是需要使用javascript,因为所有的xml文件都是简单的转换成html,如果再将php搀和进来就很麻烦了 if&#40;&#40;navigator.userAgent.match&#40;/iPhone/i&#41;&#41; &#124;&#124; &#40;navigator.userAgent.match&#40;/iPod/i&#41;&#41;&#41; &#123; document.write&#40;navigator.userAgent&#41;; &#125; else &#123; document.write&#40;navigator.userAgent&#41;; &#125; 我们可以看一下上面代码的输出: 如果是一台Mac: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4 如果是一台iPhone: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9(KHTML, like Gecko) Version/4.0.5 Mobile/8A293 [...]]]></description>
		<wfw:commentRss>http://c.gzl.name/archives/579/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

