<?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>CSSPod</title>
	<atom:link href="http://csspod.com/feed" rel="self" type="application/rss+xml" />
	<link>http://csspod.com</link>
	<description>关注web标准、前端技术</description>
	<lastBuildDate>Tue, 17 Apr 2012 03:48:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>微软面向开发者公布HTML5 Metro开发技术指引</title>
		<link>http://csspod.com/archives/building-apps-with-html5-what-you-need-to-know</link>
		<comments>http://csspod.com/archives/building-apps-with-html5-what-you-need-to-know#comments</comments>
		<pubDate>Tue, 17 Apr 2012 03:48:27 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Metro]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=334</guid>
		<description><![CDATA[微软今天在博客编撰了一篇有关HTML5开发Metro应用的文章，介绍了HTML5的技术意义以及应用程序开发人员如何用它来创建一个新的Metro7应用。微软的IE10已经完整支持HTML5，对于用惯了Visual Studio 2010和Expression Web等工具的开发者来说用这种技术来进行开发可以让自己的程序更轻量且更广泛地支持其它平台。 查看：Building Apps with HTML5: What You Need to Know]]></description>
			<content:encoded><![CDATA[<p>微软今天在博客编撰了一篇有关HTML5开发Metro应用的文章，介绍了HTML5的技术意义以及应用程序开发人员如何用它来创建一个新的Metro7应用。微软的IE10已经完整支持HTML5，对于用惯了Visual Studio 2010和Expression Web等工具的开发者来说用这种技术来进行开发可以让自己的程序更轻量且更广泛地支持其它平台。</p>
<p><a href="http://static.csspod.com/images/2012/04/hh335062.Satrom_Figure2_hiresen-usMSDN.10.jpg"><img class="aligncenter size-full wp-image-339" title="hh335062.Satrom_Figure2_hires(en-us,MSDN.10)" src="http://static.csspod.com/images/2012/04/hh335062.Satrom_Figure2_hiresen-usMSDN.10.jpg" alt="" width="210" height="277" /></a><strong>查看：</strong><a href="http://msdn.microsoft.com/en-us/magazine/hh335062.aspx" target="_blank">Building Apps with HTML5: What You Need to Know</a></p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/building-apps-with-html5-what-you-need-to-know/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为程序员和设计师准备的10个流程图</title>
		<link>http://csspod.com/archives/10-useful-and-hilarious-flowcharts-for-web-designers-and-developers</link>
		<comments>http://csspod.com/archives/10-useful-and-hilarious-flowcharts-for-web-designers-and-developers#comments</comments>
		<pubDate>Wed, 15 Feb 2012 02:21:48 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Flowcharts]]></category>
		<category><![CDATA[Inspiration]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=318</guid>
		<description><![CDATA[流程图是一样很有用的工具。它可以用来帮助你做决策，给你一步一步的引导。对于很多复杂的设计和流程来说，流程图是必不可少的。和其他图形一样，流程图让你直观的理解一个流程，甚至有可能帮助你找出流程中的问题或者瓶颈。 这篇文章介绍了10个非常有用的流程图，可以帮助程序员和设计师来做决定。你可以点击放大这些图片。 1. 如何使用 HTML5 标签？ 这个流程图可以帮助你决定什么时候使用什么HTML5标签。 2. 你需要一个新的LOGO吗？ 这个流程图可以帮助你决定是否需要重新设计LOGO，以及如何重新设计LOGO。 3. 如何判断是否要在Twitter上关注一个人？ 这个流程图教你是否应该在Twitter（景德镇人民可以同理到微博）关注某个人。 4. 如何选择字体？ 5. 你是否应该成为自由职业者？ 6. 程序员该如何加入创业公司？ 7. 网站制作和上线流程 8. 你可以成为一个网页设计师吗？ 9. 你的想法确实是一个好想法吗？ 这个流程可以帮助你判断你认为激动人心的想法是否是一个好想法。 10. 如何判断一个网页是不是做的很烂？ （ via 10 Useful and Hilarious Flowcharts for Web Designers and Developers &#8230; <a href="http://csspod.com/archives/10-useful-and-hilarious-flowcharts-for-web-designers-and-developers">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>流程图是一样很有用的工具。它可以用来帮助你做决策，给你一步一步的引导。对于很多复杂的设计和流程来说，流程图是必不可少的。和其他图形一样，流程图让你直观的理解一个流程，甚至有可能帮助你找出流程中的问题或者瓶颈。 这篇文章介绍了10个非常有用的流程图，可以帮助程序员和设计师来做决定。你可以点击放大这些图片。</p>
<p><strong>1. 如何使用 HTML5 标签？</strong></p>
<p>这个流程图可以帮助你决定什么时候使用什么HTML5标签。</p>
<p><img src="http://static.csspod.com/images/2012/02/024505TE8.png" alt="" width="689" height="487" /></p>
<p><strong>2. 你需要一个新的LOGO吗？</strong></p>
<p>这个流程图可以帮助你决定是否需要重新设计LOGO，以及如何重新设计LOGO。</p>
<p><img src="http://static.csspod.com/images/2012/02/024507aQw.png" alt="" /></p>
<p><strong>3. 如何判断是否要在Twitter上关注一个人？</strong></p>
<p>这个流程图教你是否应该在Twitter（景德镇人民可以同理到微博）关注某个人。</p>
<p><img src="http://static.csspod.com/images/2012/02/024509eDC.jpg" alt="" width="649" height="530" /></p>
<p><strong>4. 如何选择字体？</strong></p>
<p><img src="http://static.csspod.com/images/2012/02/024511Sz4.png" alt="" width="676" height="477" /></p>
<p><strong>5. 你是否应该成为自由职业者？</strong></p>
<p><img src="http://static.csspod.com/images/2012/02/024513g8t.jpg" alt="" /></p>
<p><strong>6. 程序员该如何加入创业公司？</strong></p>
<p><img src="http://static.csspod.com/images/2012/02/0245155r6.png" alt="" width="689" height="1679" /></p>
<p><strong>7. 网站制作和上线流程</strong></p>
<p><img src="http://static.csspod.com/images/2012/02/024517r7e.jpg" alt="" width="645" height="844" /></p>
<p><strong>8. 你可以成为一个网页设计师吗？</strong></p>
<p><img src="http://static.csspod.com/images/2012/02/024519Egt.jpg" alt="" /></p>
<p><strong>9. 你的想法确实是一个好想法吗？</strong></p>
<p>这个流程可以帮助你判断你认为激动人心的想法是否是一个好想法。</p>
<p><img src="http://static.csspod.com/images/2012/02/024522XzY.jpg" alt="" width="682" height="353" /></p>
<p><strong>10. 如何判断一个网页是不是做的很烂？</strong></p>
<p><img src="http://static.csspod.com/images/2012/02/024523axP.png" alt="" /></p>
<p>（ via <a title="10 Useful and Hilarious Flowcharts for Web Designers and Developers" href="http://favbulous.com/post/857/10-useful-and-hilarious-flowcharts-for-web-designers-and-developers">10 Useful and Hilarious Flowcharts for Web Designers and Developers</a> &amp; oschina ）</p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/10-useful-and-hilarious-flowcharts-for-web-designers-and-developers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>微软Internet Explorer团队发布情人节HTML5页面</title>
		<link>http://csspod.com/archives/loveisintheair-by-msie-team</link>
		<comments>http://csspod.com/archives/loveisintheair-by-msie-team#comments</comments>
		<pubDate>Wed, 15 Feb 2012 01:42:24 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Micorosoft]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=315</guid>
		<description><![CDATA[微软Internet Explorer团队今天发布了一个基于HTML5构建的站点&#8221;Love is in the Air&#8221;，这是去年冬天Let it snow网站后又一个炫技版网页。它运用了目前最顶尖的各种Web技术：HTML5 canvas, SVG, CSS transforms &#38; transitions, WOFF和声音，实现了大量的心形标记展示，并提供计数（最多可实现4000个），该网站不但传递了浪漫，还展示了IE和HTML5的强大性能。 访问：Love is in the Air]]></description>
			<content:encoded><![CDATA[<p>微软Internet Explorer团队今天发布了一个基于HTML5构建的站点&#8221;Love is in the Air&#8221;，这是去年冬天Let it snow网站后又一个炫技版网页。它运用了目前最顶尖的各种Web技术：HTML5 canvas, SVG, CSS transforms &amp; transitions, WOFF和声音，实现了大量的心形标记展示，并提供计数（最多可实现4000个），该网站不但传递了浪漫，还展示了IE和HTML5的强大性能。</p>
<p><img src="http://static.csspod.com/images/2012/02/014225UEM.jpg" alt="http://static.csspod.com/images/2012/02/014225UEM.jpg" /></p>
<p><strong>访问：</strong><a href="http://ie.microsoft.com/testdrive/performance/loveisintheair/" target="_blank">Love is in the Air</a></p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/loveisintheair-by-msie-team/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7、IE8、IE9、IE10后各版本的更新内容和各版本的差别</title>
		<link>http://csspod.com/archives/ie-6-10-update-and-differences</link>
		<comments>http://csspod.com/archives/ie-6-10-update-and-differences#comments</comments>
		<pubDate>Mon, 28 Nov 2011 01:57:12 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[HTML&CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[IE10]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[IE9]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=312</guid>
		<description><![CDATA[在程序员的眼里，万恶的IE6的结束对他们而言是一种解脱，IE7首次开始完整支持W3C标准，从此之后IE的标准化之路就开始越走越顺，以下总结了IE7以后各版本的更新内容，和各版本的差别，作为Web开发人员解决浏览器兼容性问题的参考。 IE7更新 解决了IE6的一个float bug,见http://www.positioniseverything.net/explorer/peekaboo.html 增强了CSS选择器支持 内置AJAX 透明PNG图片支持 微软官方更新说明http://www.microsoft.com/china/msdn/library/webservices/WebApp/IE7_RevGd.mspx?mfr=true IE8更新 解决了所有浮动bug（可能是所有CSS Bug都解决了）,完全支持CSS2.1规则和选择器（这个是亮点，至少在CSS上完全符合W3C标准了） 具体见http://msdn.microsoft.com/library/cc304082.aspx 去掉了CSS 表达式 使用 -ms-厂商前缀表示IE专有属性，这一点向webkit和firefox学习了，值得表杨 修正了一系列DOM错误，更符合标准，但并没有新增支持 如getElementById的时候ID区分大小写，不会错把Name当ID，详细列表见 http://msdn.microsoft.com/library/dd433047.aspx 支持link标签的charset属性 AJAX支持增强 支持HTML5中的本地存储（挺先进的 本地JSON对象支持（这个也挺先进） 增加UA兼容模式 增加了almost Stardards渲染模式 然而IE8仍然没有实现DOM L2,DOM L3和DOM L2 和 L3 事件处理（包括冒泡模型）的完整支持 微软官方更新说明 http://msdn.microsoft.com/library/cc288472%28VS.85%29.aspx#html IE9更新 实现DOM L2,DOM L3和DOM L2 和 &#8230; <a href="http://csspod.com/archives/ie-6-10-update-and-differences">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在程序员的眼里，万恶的IE6的结束对他们而言是一种解脱，IE7首次开始完整支持W3C标准，从此之后IE的标准化之路就开始越走越顺，以下总结了IE7以后各版本的更新内容，和各版本的差别，作为Web开发人员解决浏览器兼容性问题的参考。</p>
<h2>IE7更新</h2>
<ul>
<li>解决了IE6的一个float bug,见<a href="http://www.positioniseverything.net/explorer/peekaboo.html">http://www.positioniseverything.net/explorer/peekaboo.html</a></li>
<li>增强了CSS选择器支持</li>
<li>内置AJAX</li>
<li>透明PNG图片支持</li>
</ul>
<h2>微软官方更新说明<a href="http://www.microsoft.com/china/msdn/library/webservices/WebApp/IE7_RevGd.mspx?mfr=true">http://www.microsoft.com/china/msdn/library/webservices/WebApp/IE7_RevGd.mspx?mfr=true</a></p>
<p>IE8更新</h2>
<ul>
<li>解决了所有浮动bug（可能是所有CSS Bug都解决了）,完全支持CSS2.1规则和选择器（这个是亮点，至少在CSS上完全符合W3C标准了） 具体见<a href="http://msdn.microsoft.com/library/cc304082.aspx">http://msdn.microsoft.com/library/cc304082.aspx</a></li>
<li>去掉了CSS 表达式 使用 -ms-厂商前缀表示IE专有属性，这一点向webkit和firefox学习了，值得表杨</li>
<li>修正了一系列DOM错误，更符合标准，但并没有新增支持 如getElementById的时候ID区分大小写，不会错把Name当ID，详细列表见 <a href="http://msdn.microsoft.com/library/dd433047.aspx">http://msdn.microsoft.com/library/dd433047.aspx</a></li>
<li>支持link标签的charset属性 AJAX支持增强</li>
<li>支持HTML5中的本地存储（挺先进的</li>
<li>本地JSON对象支持（这个也挺先进）</li>
<li>增加UA兼容模式</li>
<li>增加了almost Stardards渲染模式</li>
<li>然而IE8仍然没有实现DOM L2,DOM L3和DOM L2 和 L3 事件处理（包括冒泡模型）的完整支持</li>
</ul>
<h2>微软官方更新说明<br />
<a href="http://msdn.microsoft.com/library/cc288472%28VS.85%29.aspx#html">http://msdn.microsoft.com/library/cc288472%28VS.85%29.aspx#html</a></p>
<p>IE9更新</h2>
<ul>
<li>实现DOM L2,DOM L3和DOM L2 和 L3 事件处理（包括冒泡模型）的完整支持</li>
<li>HTML5和CSS3支持 opacity透明属性的支持</li>
<li>CSS3 2-D transforms</li>
<li>Canvas,video之类，等等</li>
<li>Web 开放字体格式 (WOFF) 的支持 SVG原生支持 一系列JS Bug的修复（Jscript更符合ECMAScript标准 见<a href="http://blogs.msdn.com/b/ie/archive/2010/06/25/enhanced-scripting-in-ie9-ecmascript-5-support-and-more.aspx">http://blogs.msdn.com/b/ie/archive/2010/06/25/enhanced-scripting-in-ie9-ecmascript-5-support-and-more.aspx</a><br />
和<a href="http://blogs.msdn.com/b/ie/archive/2010/03/26/standards-documentation-for-ie7-and-ie8.aspx">http://blogs.msdn.com/b/ie/archive/2010/03/26/standards-documentation-for-ie7-and-ie8.aspx</a></li>
<li>ECMAScript 5支持 在DOM中空白字符也作为独立的文本节点以保持与其它浏览器一致 见<a href="http://www.w3school.com.cn/xmldom/dom_mozilla_vs_ie.asp">http://www.w3school.com.cn/xmldom/dom_mozilla_vs_ie.asp</a><br />
未知标签也能使用CSS样式 支持application/xhtml+xml的MIME</li>
</ul>
<h2>微软更新说明<br />
<a href="http://msdn.microsoft.com/zh-cn/ie/ff468705">http://msdn.microsoft.com/zh-cn/ie/ff468705</a></p>
<p>IE10更新</h2>
<ul>
<li>ECMAScript 5 Strict 模式支持 HTML5和CSS3增强 CSS3 3-D transforms(需要-ms-前缀，因为W3C还未定稿)</li>
<li>Websocket,webwork,file api等等</li>
<li>SVG改进和增强 SVG滤境</li>
<li>DOM增强 大多是带ms前缀的增强（也是就IE专有的）</li>
<li>如触屏操作，手势事件，等等</li>
<li>不再支持IE10的UA兼容设置（因为从IE9开始已经完全符合W3C标准），但仍支持IE9和之前的UA兼容设置</li>
</ul>
<p>微软更新说明<br />
<a href="http://msdn.microsoft.com/en-us/ie/gg192966">http://msdn.microsoft.com/en-us/ie/gg192966</a></p>
<p>概括的说IE7只是对IE6的小小增强，IE8完全支持CSS2.1和选择器，DOM操作更符合W3C标准，但DOM支持仍不完整IE9 完全支持DOM L1，DOM L2，Jscript更符合标准，ECMAScript5支持，HTML5，CSS3支持，SVG支持。</p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/ie-6-10-update-and-differences/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决Mac OS X上PhpStorm不能输入中文</title>
		<link>http://csspod.com/archives/phpstorm-input-chinese-on-macosx</link>
		<comments>http://csspod.com/archives/phpstorm-input-chinese-on-macosx#comments</comments>
		<pubDate>Sat, 15 Oct 2011 14:13:27 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Storm]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=310</guid>
		<description><![CDATA[看到Netbeans上类似问题的解决办法： /Applications/netbeans/NetBeans 6.7.1/Content/Resource/netbeans/etc/netbeans.conf netbeans_default_options 里加入 -J-Djava.awt.im.style=on-the-spot 类似，找到PhpStorm的启动文件：/Applications/PhpStorm 2.1.2.app/bin/idea.sh 在 REQUIRED_JVM_ARGS 参数里同样加上 -J-Djava.awt.im.style=on-the-spot 可以输入中文了！(via)]]></description>
			<content:encoded><![CDATA[<p>看到Netbeans上类似问题的解决办法：</p>
<p>/Applications/netbeans/NetBeans 6.7.1/Content/Resource/netbeans/etc/netbeans.conf</p>
<p>netbeans_default_options 里加入</p>
<p>-J-Djava.awt.im.style=on-the-spot</p>
<p>类似，找到PhpStorm的启动文件：/Applications/PhpStorm 2.1.2.app/bin/idea.sh</p>
<p>在 REQUIRED_JVM_ARGS 参数里同样加上 -J-Djava.awt.im.style=on-the-spot</p>
<pre class="brush: bash; title: ; notranslate">REQUIRED_JVM_ARGS=&quot;-J-Djava.awt.im.style=on-the-spot -Xbootclasspath/a:../lib/boot.jar $IDEA_PROPERTIES_PROPERTY $REQUIRED_JVM_ARGS&quot;
</pre>
<p>可以输入中文了！(<a href="http://hi.baidu.com/delphiss/blog/item/15476c236ad2e7be4723e861.html" title="Snow Leopard 上 PhpStorm 不能输入中文的解决" target="_blank">via</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/phpstorm-input-chinese-on-macosx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP导出Excel</title>
		<link>http://csspod.com/archives/php-export-excel</link>
		<comments>http://csspod.com/archives/php-export-excel#comments</comments>
		<pubDate>Sat, 15 Oct 2011 13:38:03 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHPExcel]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=306</guid>
		<description><![CDATA[方法一：使用制表符、换行符模拟Excel导出 这个方法最简单，但是导出的文件并不是真正的Excel，无法设置格式，而且在Mac版的MS Office上无效。 php-excel 简单小巧的Excel类库，可自行修改相关代码设置单元格格式，导出的实际上市XML格式的电子表格，相关属性可参考MSDN文档。小技巧：可以先建一个Excel并将相关格式设置好，另存为XML，用文本编辑器打开XML即可查看相关格式的设置方法，其实和HTML、CSS差不多。 PHPExcel 功能强大、全面，支持office2003、office2007与之相应的是过于臃肿。 个人觉得一般应用的话，第二种方法就足够了，毕竟PHP处理office这些东西并非PHP的长项，在相关软件里点几下鼠标就能调整好的格式，又何必用PHP费大劲设置呢？]]></description>
			<content:encoded><![CDATA[<h2>方法一：使用制表符、换行符模拟Excel导出</h2>
<pre class="brush: php; title: ; notranslate">
$filename=&quot;ExportExcel.xls&quot;;//定义一个excel文件

header(&quot;Content-Type: application/vnd.ms-execl&quot;);
header(&quot;Content-Type: application/vnd.ms-excel;charset=UTF-8&quot;);
header(&quot;Content-Disposition: attachment; filename=$filename&quot;);
header(&quot;Pragma: no-cache&quot;);
header(&quot;Expires: 0&quot;);

//设置excel输出表头，当然这不是必须的
echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, &quot;ID&quot;).&quot;\t&quot;;
echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, &quot;Col1&quot;).&quot;\t&quot;;
echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, &quot;Col2&quot;).&quot;\t&quot;;
echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, &quot;Col3&quot;).&quot;\t&quot;;
echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, &quot;Col4&quot;).&quot;\n&quot;;//注意这个要换行

//连接数据库
mysql_query(&quot;SET NAMES utf8&quot;);

$result=&quot;SELECT * FROM&quot;);

while($row =mysql_fetch_array($result)){
	echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, $row[0]).&quot;\t&quot;;
    echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, $row[1]).&quot;\t&quot;;
    echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, $row[2]).&quot;\t&quot;;
    echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, $row[3]).&quot;\t&quot;;
    echo iconv(&quot;UTF-8&quot;, &quot;gb2312&quot;, $row[4]).&quot;\n&quot;;
}
</pre>
<p>这个方法最简单，但是导出的文件并不是真正的Excel，无法设置格式，而且在Mac版的MS Office上无效。</p>
<h2><a href="http://code.google.com/p/php-excel/">php-excel</a></h2>
<p>简单小巧的Excel类库，可自行修改相关代码设置单元格格式，导出的实际上市XML格式的电子表格，<strong>相关属性可参考<a title="XML Spreadsheet Reference" href="http://msdn.microsoft.com/en-us/library/aa140066%28v=office.10%29.aspx">MSDN文档</a>。小技巧：可以先建一个Excel并将相关格式设置好，另存为XML，用文本编辑器打开XML即可查看相关格式的设置方法，其实和HTML、CSS差不多。</strong></p>
<h2><a href="http://www.codeplex.com/PHPExcel/" rel="nofollow">PHPExcel</a></h2>
<p>功能强大、全面，支持office2003、office2007与之相应的是过于臃肿。</p>
<p>个人觉得一般应用的话，第二种方法就足够了，毕竟PHP处理office这些东西并非PHP的长项，在相关软件里点几下鼠标就能调整好的格式，又何必用PHP费大劲设置呢？</p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/php-export-excel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用javascript替换URL中的参数</title>
		<link>http://csspod.com/archives/replace-url-args-using-javascript</link>
		<comments>http://csspod.com/archives/replace-url-args-using-javascript#comments</comments>
		<pubDate>Sat, 15 Oct 2011 12:27:46 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=305</guid>
		<description><![CDATA[via 用javascript替换URL中的参数值]]></description>
			<content:encoded><![CDATA[<pre class="brush: jscript; title: ; notranslate">
  //分析url
  function parseURL(url) {
      var a = document.createElement('a');
      a.href = url;
      return {
          source: url,
          protocol: a.protocol.replace(':', ''),
          host: a.hostname,
          port: a.port,
          query: a.search,
          params: (function () {
              var ret = {},
              seg = a.search.replace(/^\?/, '').split('&amp;'),
              len = seg.length, i = 0, s;
              for (; i &lt; len; i++) {
                  if (!seg[i]) { continue; }
                  s = seg[i].split('=');
                  ret[s[0]] = s[1];
              }
              return ret;

          })(),
          file: (a.pathname.match(/\/([^\/?#]+)$/i) || [, ''])[1],
          hash: a.hash.replace('#', ''),
          path: a.pathname.replace(/^([^\/])/, '/$1'),
          relative: (a.href.match(/tps?:\/\/[^\/]+(.+)/) || [, ''])[1],
          segments: a.pathname.replace(/^\//, '').split('/')
      };
  }

  //替换myUrl中的同名参数值
  function replaceUrlParams(myUrl, newParams) {
      /*
      for (var x in myUrl.params) {
          for (var y in newParams) {
              if (x.toLowerCase() == y.toLowerCase()) {
                  myUrl.params[x] = newParams[y];
              }
          }
      }
      */

      for (var x in newParams) {
          var hasInMyUrlParams = false;
    for (var y in myUrl.params) {
        if (x.toLowerCase() == y.toLowerCase()) {
            myUrl.params[y] = newParams[x];
            hasInMyUrlParams = true;
            break;
        }
    }
          //原来没有的参数则追加
    if (!hasInMyUrlParams) {
        myUrl.params[x] = newParams[x];
          }
}
      var _result = myUrl.protocol + &quot;://&quot; + myUrl.host + &quot;:&quot; + myUrl.port + myUrl.path + &quot;?&quot;;

      for (var p in myUrl.params) {
          _result += (p + &quot;=&quot; + myUrl.params[p] + &quot;&amp;&quot;);
      }

      if (_result.substr(_result.length - 1) == &quot;&amp;&quot;) {
          _result = _result.substr(0, _result.length - 1);
      }

      if (myUrl.hash != &quot;&quot;) {
          _result += &quot;#&quot; + myUrl.hash;
      }
      return _result;
  }

  //辅助输出
  function w(str) {
      document.write(str + &quot;&lt;br&gt;&quot;);
  }

  var myURL = parseURL('http://abc.com:8080/dir/index.html?id=255&amp;m=hello#top');
  w(&quot;myUrl.file = &quot; + myURL.file)     // = 'index.html'
  w(&quot;myUrl.hash = &quot; + myURL.hash)     // = 'top'
  w(&quot;myUrl.host = &quot; + myURL.host)     // = 'abc.com'
  w(&quot;myUrl.query = &quot; + myURL.query)    // = '?id=255&amp;m=hello'
  w(&quot;myUrl.params = &quot; + myURL.params)   // = Object = { id: 255, m: hello }
  w(&quot;myUrl.path = &quot; + myURL.path)     // = '/dir/index.html'
  w(&quot;myUrl.segments = &quot; + myURL.segments) // = Array = ['dir', 'index.html']
  w(&quot;myUrl.port = &quot; + myURL.port)     // = '8080'
  w(&quot;myUrl.protocol = &quot; + myURL.protocol) // = 'http'
  w(&quot;myUrl.source = &quot; + myURL.source)   // = 'http://abc.com:8080/dir/index.html?id=255&amp;m=hello#top'

  var _newUrl = replaceUrlParams(myURL, { id: 101, m: &quot;World&quot;, page: 1,&quot;page&quot;:2 });

  w(&quot;&lt;br&gt;新url为：&quot;)
  w(_newUrl); //http://abc.com:8080/dir/index.html?id=101&amp;m=World&amp;page=2#top   
</pre>
<p>via <a id="ctl04_TitleUrl" href="http://www.cnblogs.com/yjmyzz/archive/2010/06/18/1760015.html">用javascript替换URL中的参数值</a></p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/replace-url-args-using-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>雅虎发布WebPlayer 可简便嵌入媒体到网页</title>
		<link>http://csspod.com/archives/yahoo-webplayer</link>
		<comments>http://csspod.com/archives/yahoo-webplayer#comments</comments>
		<pubDate>Fri, 05 Aug 2011 04:33:40 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[webplayer]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=301</guid>
		<description><![CDATA[雅虎面向网站开发者提供了一个beta版本的WebPlayer应用，它是一个可以内嵌在网页中的媒体播放器，支持各种视频和音频格式，只需要提供媒体文件地址就可以轻松地像YouTube的嵌入代码一样形成一个网页中的播放器，包含播放列表和控制功能。 访问：WebPlayer]]></description>
			<content:encoded><![CDATA[<p>雅虎面向网站开发者提供了一个beta版本的WebPlayer应用，它是一个可以内嵌在网页中的媒体播放器，支持各种视频和音频格式，只需要提供媒体文件地址就可以轻松地像YouTube的嵌入代码一样形成一个网页中的播放器，包含播放列表和控制功能。<strong></strong></p>
<p><strong>访问：</strong><a href="http://webplayer.yahoo.com/get/" target="_blank">WebPlayer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/yahoo-webplayer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP获取文件扩展名的方法</title>
		<link>http://csspod.com/archives/php-getting-file-extension</link>
		<comments>http://csspod.com/archives/php-getting-file-extension#comments</comments>
		<pubDate>Tue, 02 Aug 2011 04:19:27 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[pathinfo]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=298</guid>
		<description><![CDATA[推荐的方法： pathinfo详解： 以上将输出 /www/htdocs your_image.jpg jpg your_image 注意: pathinfo 支持第3个参数 PATHINFO_DIRNAME &#8211; 目录 PATHINFO_BASENAME &#8211; 文件名（含扩展名） PATHINFO_EXTENSION &#8211; 扩展名 PATHINFO_FILENAME &#8211; 文件名（不含扩展名） 其它不推荐的写法： 你可能会这样写 或这样写 之所以不推荐以上两种方法，主要基于效率考虑。 来源：PHP获取文件扩展名的正确方法]]></description>
			<content:encoded><![CDATA[<p>推荐的方法：</p>
<pre class="brush: php; title: ; notranslate">
echo pathinfo('/www/htdocs/your_image.jpg', PATHINFO_EXTENSION);
</pre>
<p>pathinfo详解：</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$file_path = pathinfo('/www/htdocs/your_image.jpg');
echo &quot;$file_path ['dirname']\n&quot;;
echo &quot;$file_path ['basename']\n&quot;;
echo &quot;$file_path ['extension']\n&quot;;
echo &quot;$file_path ['filename']\n&quot;; // only in PHP 5.2+
?&gt;
</pre>
<p>以上将输出</p>
<ul>
<li>/www/htdocs</li>
<li>your_image.jpg</li>
<li>jpg</li>
<li>your_image</li>
</ul>
<p>注意: pathinfo 支持第3个参数</p>
<ul>
<li>PATHINFO_DIRNAME &#8211; 目录</li>
<li>PATHINFO_BASENAME &#8211; 文件名（含扩展名）</li>
<li>PATHINFO_EXTENSION &#8211; 扩展名</li>
<li>PATHINFO_FILENAME &#8211; 文件名（不含扩展名）</li>
</ul>
<p>其它不推荐的写法：</p>
<p>你可能会这样写</p>
<pre class="brush: php; title: ; notranslate">
function get_file_extension($file_name) {
    return substr(strrchr($file_name,'.'),1);
}
</pre>
<p>或这样写</p>
<pre class="brush: php; title: ; notranslate">
function file_extension($filename) {
    return end(explode(&quot;.&quot;, $filename));
}
</pre>
<p>之所以不推荐以上两种方法，主要基于效率考虑。</p>
<p>来源：<a title="PHP获取文件扩展名的正确方法" href="http://www.admpub.com/post-28.html" target="_blank">PHP获取文件扩展名的正确方法</a></p>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/php-getting-file-extension/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE10采用新的HTML5解析规则</title>
		<link>http://csspod.com/archives/ie10-using-the-new-html5-parsing-rules</link>
		<comments>http://csspod.com/archives/ie10-using-the-new-html5-parsing-rules#comments</comments>
		<pubDate>Thu, 14 Jul 2011 09:43:27 +0000</pubDate>
		<dc:creator>H</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[IE10]]></category>
		<category><![CDATA[Web Standard]]></category>

		<guid isPermaLink="false">http://csspod.com/?p=294</guid>
		<description><![CDATA[如果开发人员在不同的浏览器中使用相同的标记和代码可以得到相同的效果，这会让Web开发变得更简单有效。IE10在这方面的取得进展，完全支持 HTML5的标准化解析规则。HTML 5的重要变化之一便是引入了针对非标准HTML特别是错误格式HTML的标准化解析规则。浏览器在遇到存在错误的HTML如缺少结束标记时通常表现得很宽松。 <a href="http://csspod.com/archives/ie10-using-the-new-html5-parsing-rules">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>如果开发人员在不同的浏览器中使用相同的标记和代码可以得到相同的效果，这会让Web开发变得更简单有效。IE10在这方面的取得进展，完全支持 HTML5的标准化解析规则。HTML  5的重要变化之一便是引入了针对非标准HTML特别是错误格式HTML的标准化解析规则。浏览器在遇到存在错误的HTML如缺少结束标记时通常表现得很宽 松。这种大度被广受赞誉，因为相比对手XHTML来说，HTML​在此种情况下会继续正常处理。 		HTML最新待定标准提到：​</p>
<p>本规范定了HTML文档的解析规则，无论它们语法是否错误。解析算法中的某些地方被视为解析错误。针对解析错误的处理明确定义：用户代理（浏览器）在遇到这些问题时要么按照如下描述处理，要么必须在遇到第一个不想遵循如下处理规则的错误时终止处理。</p>
<p>下面的示例说明某些情况下的改进：</p>
<p><a href="http://static.csspod.com/images/2011/07/DOM-IE10-IE9.png"><img class="aligncenter size-full wp-image-295" title="DOM-IE10-IE9" src="http://static.csspod.com/images/2011/07/DOM-IE10-IE9.png" alt="" width="389" height="246" /></a></p>
<h3><strong>互操作的innerHTML</strong></h3>
<p>这些改进也适用于innerHTML。代码模式就像现在这些工作，你会期待<a href="http://www.iefans.net/?tag=ie10">IE10</a>：</p>
<pre class="brush: jscript; title: ; notranslate">
var select = document.createElement(&quot;select&quot;);

select.innerHTML = “&lt;option&gt;one&lt;/option&gt;&lt;option&gt;two&lt;/option&gt;”;

var table = document.createElement(”table”);

table.innerHTML = “&lt;tr&gt;&lt;td&gt;one&lt;/td&gt;&lt;td&gt;two&lt;/td&gt;&lt;/tr&gt;”;
</pre>
<h3><strong>更好的错误报告</strong></h3>
<p>HTML5确保标记将始终解析。它还是一个帮助开发人员一开始便避免无效标记的方法。编写有效的标记可以使您的网站按照期望的方式工作，并更好的与旧版浏览器兼容。</p>
<p>为了在这方面帮助开发人员，IE10现在可以通过F12开发人员工具报告HTML解析错误。</p>
<p><a href="http://static.csspod.com/images/2011/07/IE10-Dev-Tool.png"><img class="aligncenter size-large wp-image-296" title="IE10-Dev-Tool" src="http://static.csspod.com/images/2011/07/IE10-Dev-Tool-600x177.png" alt="" width="600" height="177" /></a></p>
<h3><strong>删除旧特性</strong></h3>
<p>因为某些在早期IE浏览器版本中的特性已不符合HTML5解析，我们已经将他们从IE10模式中删除。这些过时的特性在传统模式下仍然有效。</p>
<p>1、<a href="http://msdn.microsoft.com/en-us/library/ms537512%28v=VS.85%29.aspx">条件注释</a></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!–[if IE]&gt;
在IE10和其他的浏览器中，此内容被忽略。
在旧版本的IE浏览器中，它呈现为页面的一部分。
&lt;![endif]–&gt;
</pre>
<p>这意味着仍然可以使用条件注释，但将只针对旧版本的IE浏览器 。如果你需要区分较新的浏览器，请使用<a href="http://blogs.msdn.com/b/ie/archive/2010/04/14/same-markup-writing-cross-browser-code.aspx">功能检测</a>。</p>
<p>2、<a href="http://msdn.microsoft.com/en-us/library/ms531426%28VS.85%29.aspx">元素行为</a></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html xmlns:my&gt;
&lt;?import namespace=”my” implementation=”my.htc”&gt;
&lt;my:element&gt;
在IE10和其他的浏览器中，这解析为未知的元素
在旧版本的IE浏览器中，它绑定到 “my.htc”
&lt;/my:element&gt;
&lt;/html&gt;
</pre>
<p>3、<a href="http://msdn.microsoft.com/en-us/library/ms766512%28v=VS.85%29.aspx">XML Data Islands</a></p>
<pre class="brush: xml; title: ; notranslate">
&lt;xml&gt;
在IE10和其他的浏览器中，这解析为&lt;b&gt;HTML&lt;/b&gt;
在旧版本的IE浏览器中，它解析为XML
&lt;/xml&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://csspod.com/archives/ie10-using-the-new-html5-parsing-rules/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

