<?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>Shellway Blog</title>
	<atom:link href="http://blog.shellway.cn/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.shellway.cn</link>
	<description>关注前端设计，关注互联网发展趋势</description>
	<lastBuildDate>Wed, 28 Dec 2011 01:52:55 +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>Fengoffice 2.0 简体中文语言包shellway版</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/754</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/754#comments</comments>
		<pubDate>Wed, 28 Dec 2011 01:16:35 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[翻译]]></category>
		<category><![CDATA[语言包]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=754</guid>
		<description><![CDATA[Fengoffice 2.0 简体中文语言包shellway版，初步翻译了一下。供Fengoffice用户们参考。 下载连接：http://s.dbank.com/e0nfx6fyss 密码：shellway]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.shellway.cn/wp-content/uploads/2011/12/fo2.jpg"><img class="aligncenter size-full wp-image-757" title="fo2" src="http://blog.shellway.cn/wp-content/uploads/2011/12/fo2.jpg" alt="" width="582" height="467" /></a></p>
<p>Fengoffice 2.0 简体中文语言包shellway版，初步翻译了一下。供Fengoffice用户们参考。</p>
<p>下载连接：<a title="Fengoffice 2.0 Beta 语言包" href="http://s.dbank.com/e0nfx6fyss" target="_blank">http://s.dbank.com/e0nfx6fyss</a></p>
<p>密码：shellway</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F754&title=Fengoffice+2.0+%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%E8%AF%AD%E8%A8%80%E5%8C%85shellway%E7%89%88" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/754/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如果有什么需要明天做的事，最好现在就开始。——富兰克林</title>
		<link>http://blog.shellway.cn/index.php/logs/weekly-log/749</link>
		<comments>http://blog.shellway.cn/index.php/logs/weekly-log/749#comments</comments>
		<pubDate>Tue, 27 Dec 2011 09:04:47 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[每周一句]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=749</guid>
		<description><![CDATA[如果有什么需要明天做的事，最好现在就开始。——富兰克林]]></description>
			<content:encoded><![CDATA[<p>如果有什么需要明天做的事，最好现在就开始。——富兰克林</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2Fweekly-log%2F749&title=%E5%A6%82%E6%9E%9C%E6%9C%89%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E6%98%8E%E5%A4%A9%E5%81%9A%E7%9A%84%E4%BA%8B%EF%BC%8C%E6%9C%80%E5%A5%BD%E7%8E%B0%E5%9C%A8%E5%B0%B1%E5%BC%80%E5%A7%8B%E3%80%82%E2%80%94%E2%80%94%E5%AF%8C%E5%85%B0%E5%85%8B%E6%9E%97" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/weekly-log/749/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress发布V3.3新版本，写博客变得更好玩</title>
		<link>http://blog.shellway.cn/index.php/wordpress/741</link>
		<comments>http://blog.shellway.cn/index.php/wordpress/741#comments</comments>
		<pubDate>Tue, 13 Dec 2011 14:11:38 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[推荐]]></category>
		<category><![CDATA[新功能]]></category>
		<category><![CDATA[更新]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=741</guid>
		<description><![CDATA[wordpress发布V3.3新版本，写博客变得更好玩。俺滴神啊，真不赖……
下面上图，有图有真相！]]></description>
			<content:encoded><![CDATA[<p>wordpress发布V3.3新版本，写博客变得更好玩。俺滴神啊，真不赖……</p>
<p>下面上图，有图有真相！</p>
<div id="attachment_745" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-updated.jpg"><img class="size-medium wp-image-745" title="wordpress-v3.3-updated" src="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-updated-600x334.jpg" alt="Wordpress v3.3更新后帅帅的页面" width="600" height="334" /></a><p class="wp-caption-text">Wordpress v3.3更新后帅帅的页面</p></div>
<p>&nbsp;</p>
<div id="attachment_744" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-toolbar.jpg"><img class="size-medium wp-image-744" title="wordpress-v3.3-toolbar" src="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-toolbar-600x455.jpg" alt="Wordpress v3.3管理工具条" width="600" height="455" /></a><p class="wp-caption-text">Wordpress v3.3管理工具条</p></div>
<p>&nbsp;</p>
<div id="attachment_742" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-uploadtool.jpg"><img class="size-medium wp-image-742" title="wordpress-v3.3-uploadtool" src="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-uploadtool-600x375.jpg" alt="Wordpress v3.3上传工具更新，上传更方便" width="600" height="375" /></a><p class="wp-caption-text">Wordpress v3.3上传工具更新，上传更方便</p></div>
<p>&nbsp;</p>
<div id="attachment_746" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-uploadmedia.jpg"><img class="size-medium wp-image-746" title="wordpress-v3.3-uploadmedia" src="http://blog.shellway.cn/wp-content/uploads/2011/12/wordpress-v3.3-uploadmedia-600x455.jpg" alt="上传文件界面，支持文件直接拖放上传" width="600" height="455" /></a><p class="wp-caption-text">上传文件界面，支持文件直接拖放上传</p></div>
<p>---------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fwordpress%2F741&title=wordpress%E5%8F%91%E5%B8%83V3.3%E6%96%B0%E7%89%88%E6%9C%AC%EF%BC%8C%E5%86%99%E5%8D%9A%E5%AE%A2%E5%8F%98%E5%BE%97%E6%9B%B4%E5%A5%BD%E7%8E%A9" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/wordpress/741/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fengoffice 2.0 beta3 更新</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/730</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/730#comments</comments>
		<pubDate>Tue, 29 Nov 2011 13:29:04 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[开源OA]]></category>
		<category><![CDATA[更新]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=730</guid>
		<description><![CDATA[Fengoffice 2.0 beta3 发布，改进不多。我的演示站点也更新了，大家可以去看下。]]></description>
			<content:encoded><![CDATA[<p>Fengoffice 2.0 beta3 发布，改进不多。</p>
<p>我的演示站点也更新了，大家可以去看下。</p>
<p><a title="Fengoffice演示站点" href="http://fo2.demo.shellway.cn" target="_blank">http://fo2.demo.shellway.cn</a>，用户名、密码都是demo。</p>
<p>Sourceforge页面：<a title="Fengoffice 2.0 Beta3" href="http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_2.0.0beta3" target="_blank">http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_2.0.0beta3</a></p>
<ul>
<li>bugfix: Fixed problem uncompressing files -修复解压缩文件问题；</li>
<li>bugfix: Loading indicator hidden -加载探测器隐藏；</li>
<li>bugfix: Search in mail contents -邮件内容搜索；</li>
<li>bugfix: Mail reply js error -修复邮件回复js错误</li>
<li>bugfix: Filter members associated with deleted objects -筛选与删除对象关联的成员；</li>
<li>bugfix: Fixed permission error creating a contact -修复创建联系人时的权限错误；</li>
<li>usability: Contact View Improvements-联系人视图优化；</li>
<li>usability: Navigation Improvements -导航优化；</li>
<li>system: Permission system fixes -权限系统修复；</li>
<li>system: Performance issues solved. Using permission cache 'sharing table' for listing -解决性能问题。使用权限缓存“共享表”来生成列表；</li>
<li>system: Weblinks module migrated -链接库模块迁移；</li>
</ul>
<p>&nbsp;</p>
<p>-----------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F730&title=Fengoffice+2.0+beta3+%E6%9B%B4%E6%96%B0" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/730/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>【译】Fengoffice 2.0 Beta版抢先看</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/707</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/707#comments</comments>
		<pubDate>Wed, 21 Sep 2011 14:44:48 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[新功能]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[翻译]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=707</guid>
		<description><![CDATA[Fengoffice 2.0的最大变化在于其架构的翻新，这促使它向终极协同项目管理平台迈进（对很多客户来说，它已然如是）。
也就是说，Fengoffice 2.0的界面跟1.7.x系列的界面是大同小异的（有一些界面的修改我们正在进行——其中之一就是易于定制的界面外观）。
那么，各位就等着不久的将来共同一睹Fengoffice 2.0的新颜。]]></description>
			<content:encoded><![CDATA[<p>Fengoffice开源社区的兄弟姐妹们，大家好。</p>
<p>我们灰常灰常高兴Fengoffice 2.0 beta版终于发布了。高兴之情难以言表啊。</p>
<p>我们为之尽力开发已为期一年了，我们的努力是大大的给力哦。</p>
<h3>概述</h3>
<p>Fengoffice 2.0的最大变化在于其架构的翻新，这促使它向终极协同项目管理平台迈进（对很多客户来说，它已然如是）。</p>
<p>也就是说，Fengoffice 2.0的界面跟1.7.x系列的界面是大同小异的（有一些界面的修改我们正在进行——其中之一就是易于定制的界面外观）。</p>
<p>那么，各位就等着不久的将来共同一睹Fengoffice 2.0的新颜。</p>
<h3>系统平台</h3>
<p>简言之，我们可称Fengoffice为<strong>项目管理软件</strong>。</p>
<p>但是如若您使用了Fengoffice，您就知道它远不止这些。</p>
<p>Fengoffice核心（在2.0及以上，我们将更多提到核心）是一个协同平台。甚于近期的改进。</p>
<p>信息将更多的围绕人而汇集，以及团队协同的方法。</p>
<p>您的团队将能够使用更适合的工具，组织和共享常用的信息，以及使用信息的方法。</p>
<h3>插件机制</h3>
<p>系统具有为不同团队增添特殊功能和行为的能力是大家的希望的。Fengoffice也一直致力于能具有这种功能。</p>
<p>但是之前版本的一个主要问题是，系统缺少正式的定义和插件系统的标准化。我们是用了两种不同的整合技术来实现，在系统中混合使用了插件和“钩子”(hooks)，以便我们用于特定用户的特定情况。</p>
<p>Fengoffice 2.0 系统核心将摆脱以往的进程频率，从而为坚固而简约平台而努力。</p>
<h3>多维度(为每个业务需求)</h3>
<p>其中，Fengoffice 2.0 最为有趣的变化，可能要数“工作区”概念向“多维度”（综合性分类）的进一步拓展。</p>
<p>在我们大多数资深的社区用户中，“工作区”已是一个流行（知名）的概念。“工作区”可以代表一个客户、一个项目、一个文件夹、一个公司，及其他能包含丰富重要信息的实体。</p>
<p>但是，“工作区”（及标签）有两个局限：</p>
<ul>
<li>他们仅限于两种维度（工作区和标签）；</li>
<li>工作区并非您所指的直接名称；</li>
</ul>
<p>随着“工作区”向“维度”的演变，系统管理员和整合者将能够为每一项业务定制Fengoffice，也就是所谓的客户的“客户”，项目的“项目”等（乖乖，到底什么意思？）。</p>
<p>有图有真相哈：<br />
<a href="http://www.fengoffice.com/web/blogen/wp-content/uploads/2011/09/Workspaces-vs-Dimensions.png" rel="thumbnail"><img title="Workspaces vs Dimensions" src="http://www.fengoffice.com/web/blogen/wp-content/uploads/2011/09/Workspaces-vs-Dimensions.png" alt="" /></a></p>
<h3>用户角色</h3>
<p>鉴于您与谁协同办公（客户，合作者，公司总监等），你将希望以不同的方式（权限）展现信息，可以设定信息对用户的重要程度。再者，您可以设定机密信息，防止泄露。</p>
<p>Fengoffice以往版本已经可以让您为每个用户设置这一切了，但是管理起来仍很麻烦。Fengoffice 2.0 将可以预设用户角色，这样您就可以轻松设置访问权限和对每个成员都最有意义的设置了。</p>
<h3>API</h3>
<p>开发者们，欢呼吧！我们在开发FO的API。也就是说，您将可以方便地整合您的程序和插件到Fengoffice系统中，而无需与系统核心死磕。</p>
<p>这意味着更便捷的维护功能和业务扩展机遇。</p>
<p>API功能仍在开发中，但在Fengoffice 2.0中已将此需求提上重要日程，敬请期待。</p>
<h3>移动设备访问</h3>
<p>最后，Fengoffice 2.0 将是一个更易于移动设备访问的平台。移动设备访问功能仍在开发中，但我们会及时分享相关的进度情况……敬请期待哦！</p>
<p>目前只有这些了。希望大家一起来帮忙测试Feng Office 2.0。欢迎大家积极反馈和评论。</p>
<p><a title="Download" href="http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_2.0.0beta/fengoffice_2.0.0beta.zip/download">点此链接</a>下载Fengoffice 2.0 (Beta版本，勿用于正式场合！)。</p>
<p>原文地址：<a href="http://www.fengoffice.com/web/blogen/?p=643" target="_blank">http://www.fengoffice.com/web/blogen/?p=643</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F707&title=%E3%80%90%E8%AF%91%E3%80%91Fengoffice+2.0+Beta%E7%89%88%E6%8A%A2%E5%85%88%E7%9C%8B" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/707/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>强悍，支持Excel的fengoffice版本</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/700</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/700#comments</comments>
		<pubDate>Mon, 11 Jul 2011 13:29:03 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[spreadsheet]]></category>
		<category><![CDATA[开源OA]]></category>
		<category><![CDATA[新功能]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[电子表格]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=700</guid>
		<description><![CDATA[近期本人发现一个支持Excel电子表格的fengoffice版本V1.7.2。
该版本发布在开源项目gelsheet的官方网站上，是整合好的fengoffice程序包。
gelsheet的官方网站：http://www.gelsheet.org
改程序还有一个Wordpress插件版本，名叫WP CALC，大家有博客的可以搜索安装试试哈。
个人感觉整合的还不错，在将语言设置成中文之后，支持中文输入，可以到处到xls或者xlsx文件中。本人测试导出后没有乱码。]]></description>
			<content:encoded><![CDATA[<p>近期本人发现一个支持Excel电子表格的fengoffice版本V1.7.2。</p>
<p>该版本发布在开源项目gelsheet的官方网站上，是整合好的fengoffice程序包。</p>
<p>gelsheet的官方网站：<a href="http://www.gelsheet.org">http://www.gelsheet.org</a></p>
<p>改程序还有一个Wordpress插件版本，名叫WP CALC，大家有博客的可以搜索安装试试哈。</p>
<p>个人感觉整合的还不错，在将语言设置成中文之后，支持中文输入，可以到处到xls或者xlsx文件中。本人测试导出后没有乱码。</p>
<p>唯一的遗憾，上传的xls文件不能在线编辑，要签出线下编辑；还有PDF导出中文依然乱码。</p>
<p>下面截几张图出来晾凉。</p>
<div id="attachment_701" class="wp-caption aligncenter" style="width: 480px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/07/spreadsheet-for-fo.png"><img class="size-full wp-image-701" title="Fengoffice的电子表格界面" src="http://blog.shellway.cn/wp-content/uploads/2011/07/spreadsheet-for-fo.png" alt="Fengoffice的电子表格界面" width="470" height="290" /></a><p class="wp-caption-text">Fengoffice的电子表格界面</p></div>
<p>&nbsp;</p>
<div id="attachment_702" class="wp-caption aligncenter" style="width: 412px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/07/spreadsheet-exported-fo.png"><img class="size-full wp-image-702" title="导出为xls文件之后打开的界面" src="http://blog.shellway.cn/wp-content/uploads/2011/07/spreadsheet-exported-fo.png" alt="导出为xls文件之后打开的界面" width="402" height="218" /></a><p class="wp-caption-text">导出为xls文件之后打开的界面</p></div>
<p>&nbsp;</p>
<p>------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F700&title=%E5%BC%BA%E6%82%8D%EF%BC%8C%E6%94%AF%E6%8C%81Excel%E7%9A%84fengoffice%E7%89%88%E6%9C%AC" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/700/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fengoffice简体中文语言包v4.0</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/687</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/687#comments</comments>
		<pubDate>Wed, 01 Jun 2011 03:16:12 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[中文支持]]></category>
		<category><![CDATA[开源OA]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[语言包]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=687</guid>
		<description><![CDATA[本站发布Fengoffice简体中文语言包v4.0。
本语言包适合Fengoffice最新版本v1.7.5rc2，其他之前版本Shellway还未测试，欢迎大家试试，有问题及时报。
 
本站下载]]></description>
			<content:encoded><![CDATA[<p>本站发布Fengoffice简体中文语言包v4.0。</p>
<p>本语言包适合Fengoffice最新版本v1.7.5rc2，其他之前版本Shellway还未测试，欢迎大家试试，有问题及时报。</p>
<p>本站下载：<a title="Fengoffice简体中文语言包V4.0" href="http://blog.shellway.cn/resrc/fengoffice/FengOffice1.7-Language-zh_cn-v4.0.zip" target="_blank"><span style="color: #807d7a;">http://blog.shellway.cn/resrc/fengoffice/FengOffice1.7-Language-zh_cn-v4.0.zip</span></a></p>
<h3>更新内容：</h3>
<p><strong>1. 词条用词修正：</strong></p>
<blockquote><p>笔记       -&gt;      便签</p>
<p>报告       -&gt;      报表</p>
<p>web链接 -&gt;     网址收藏</p>
<p>日历        -&gt;     日程表</p></blockquote>
<p><strong>2. 翻译新版添加词条</strong></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F687&title=Fengoffice%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%E8%AF%AD%E8%A8%80%E5%8C%85v4.0" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/687/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>[转]fengoffice用户/用户组/工作区”权限”设置说明</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/681</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/681#comments</comments>
		<pubDate>Mon, 23 May 2011 13:56:37 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[权限设置]]></category>
		<category><![CDATA[转载]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=681</guid>
		<description><![CDATA[作为一款国外优秀的php开源OA软件，fengoffice（以下简称“FO”）易于安装和部署的优点自不待言，亦要谢谢shellway对该软件中文化的基础工作，使我们可以在这里深入使用研究这款软件。OA软件的使用首先是管理员的使用，科学化的用户、用户组、工作区权限的设置划分是完善组织管理的首要步骤，也为用户简单合理使用划分了界限。这里结合个人的使用实践，详细说明权限设置问题。]]></description>
			<content:encoded><![CDATA[<p>作为一款国外优秀的php开源OA软件，fengoffice（以下简称“FO”）易于安装和部署的优点自不待言，亦要谢谢shellway对该软件中文化的基础工作，使我们可以在这里深入使用研究这款软件。OA软件的使用首先是管理员的使用，科学化的用户、用户组、工作区权限的设置划分是完善组织管理的首要步骤，也为用户简单合理使用划分了界限。这里结合个人的使用实践，详细说明权限设置问题。</p>
<p>一、形象了解用户、用户组、工作区权限界面。</p>
<p>1、当你添加一名用户时，该用户的权限，为两大块：“系统权限”、“工作区权限”（见图一）；另外 “工作区权限”的细分（见图二）。两个部分的权限内容是完全不同的。</p>
<p>用户权限页面</p>
<div id="attachment_682" class="wp-caption aligncenter" style="width: 225px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/05/JCY@YLVM3KRM34DK-215x300.jpg"><img class="size-full wp-image-682" title="用户权限设置" src="http://blog.shellway.cn/wp-content/uploads/2011/05/JCY@YLVM3KRM34DK-215x300.jpg" alt="用户权限设置" width="215" height="300" /></a><p class="wp-caption-text">图一、用户权限设置</p></div>
<div id="attachment_683" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/05/243242423243-300x286.jpg"><img class="size-full wp-image-683" title="工作区权限" src="http://blog.shellway.cn/wp-content/uploads/2011/05/243242423243-300x286.jpg" alt="工作区权限" width="300" height="286" /></a><p class="wp-caption-text">图二、工作区权限</p></div>
<p>&nbsp;</p>
<p>2、当你添加一个用户组时，权限和用户一样，可能翻译上用户的“系统权限”改为了“权限”（以下都使用“系统权限”来称呼）。</p>
<p>3、当你添加某工作区时，该工作区的权限是“组”和“用户”（见图三），由此可以看到工作区的权限和用户、用户组是双边对应的，我们只需要了解某一边即可。</p>
<div id="attachment_684" class="wp-caption aligncenter" style="width: 272px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/05/eerewe.jpg"><img class="size-full wp-image-684" title="新建工作区-权限" src="http://blog.shellway.cn/wp-content/uploads/2011/05/eerewe.jpg" alt="新建工作区-权限" width="262" height="170" /></a><p class="wp-caption-text">图三、新建工作区-权限</p></div>
<p>二、用户、用户组的权限如何合并和如何理解其性质</p>
<p>1、用户、用户组的权限是简单相加，并且“系统权限”是扩展叠加的。</p>
<p>例如：“甲”用户组权限（“系统权限”是“可以管理报告”，“工作区权限”是对“办公程序工作区”的“笔记的读和写”）</p>
<p>用户“张三”的权限（“系统权限”是“可以管理工作区”，“工作区权限”是对“办公程序工作区”的“任务的读和写”）</p>
<p>如果我们将用户“张三”分配为“甲”用户组的成员，则张三打开控制面板会发现他的权限就是（“系统权限”是“可以管理报告”和“可以管理工作区”，“工作区权限”是对“办公程序工作区”的“笔记的读和写”和“任务的读和写”）。</p>
<p>这种叠加是全方位的，因为“工作区权限”很窄，仅在本工作区有效，所以叠加起来没有太大影响，但是“系统权限”却是很广泛的，其结果会产生原本没有预料的效果。</p>
<p>再例如，原本给张三只是对“办公程序工作区”可见以及编辑（该编辑就是“系统权限”中的“可以管理工作区”），但是如果张三成为了“甲”用户组成员，而该用户组权限除了对“办公程序工作区”可见，还对“内部事务工作区”可见，最后这个张三的可见工作区就变成了两个，并且他全部可以编辑。</p>
<p>2、如何设置用户组和用户才合理。</p>
<p>用户组是成员（一般认为就是人，当然不是人也可以）的集合，一般的公司可以理解为部门（直接命名为部门名也是个不错的办法），这意味着用户组的权限是该集体中最普遍的权限，所以用户组权限设置要尽可能的少，并且最好不要分配“系统权限”，除非该“系统权限”是普遍的。</p>
<p>“可以管理工作区”这个“系统权限”尤其是要注意的地方，它的基本内涵是“只要它能看到的工作区，他都能管理”，这是个很恐怖的权力。</p>
<p>成员的权限就少加组，多细分，不会出错的。</p>
<p>三、通过子工作区的建立变相分配权限</p>
<p>因为工作区可以往下细分，父工作区、子工作区，孙工作区（最多能几层不知道），得到父工作区的权限不是想当然得到子工作区的权限，这个是可选的，可分配的（除非该子工作区是分配权限之后才建立的，否则是不会完全继承的）。</p>
<p>用户可以不拥有父工作区，而直接拥有子工作区，用户是不能通过某工作区知道他是否还有上级。</p>
<p>这样可以发现特定的、专门的事情就建立一个工作区（父、子区都可以），只对需要他的人分配该区，也可以达到某种分配特定权限的目的，而不混淆。</p>
<p>四、通过工作区的选择，方便的共享“笔记”“文档”等资料。前面说的都是用户或者组的权限，如果仅仅是针对某份文件，希望给某个特定群体看，只需要在新建该资料时，选择要公布的工作区即可，这样可以完成对某一份文件的所有者权属的划分。</p>
<p>五、最后我想说通过如上的说明，你灵活配置还是可以达到很细致的权限分配目的，让工作顺利有序的进行。</p>
<p>（说明：如果仍有不明白的地方，可以E-mail我讨论，为了更有效的使用FO，让更多的人体会到该软件的优点，大家一起努力。）</p>
<p>版权所有: 且歌且止<br />
本文链接: http://www.qiegeqiezhi.com/xxjs/foyhyhzgzqqxszsm.html<br />
站长声明: 除特别标注, 本站所有文章均为原创, 互联分享, 尊重版权, 转载请注明.</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F681&title=%5B%E8%BD%AC%5Dfengoffice%E7%94%A8%E6%88%B7%2F%E7%94%A8%E6%88%B7%E7%BB%84%2F%E5%B7%A5%E4%BD%9C%E5%8C%BA%22%E6%9D%83%E9%99%90%22%E8%AE%BE%E7%BD%AE%E8%AF%B4%E6%98%8E" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/681/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Feng office发布新版本1.7.5beta</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/671</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/671#comments</comments>
		<pubDate>Wed, 18 May 2011 05:54:06 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[开源OA]]></category>
		<category><![CDATA[新功能]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[浏览器兼容]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=671</guid>
		<description><![CDATA[Feng office昨日发布新版本1.7.5beta。]]></description>
			<content:encoded><![CDATA[<p>Feng office昨日发布新版本1.7.5beta。</p>
<p>Sourceforge页面：<a title="fengoffice_1.7.5beta" href="http://sourceforge.net/projects/opengoo/files%2Ffengoffice%2Ffengoffice_1.7.5beta/" target="_blank">http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_1.7.5beta/</a></p>
<div>ChinaZ 下载地址：<a title="ChinaZ下载" href="http://down.chinaz.com/soft/29715.htm" target="_blank">http://down.chinaz.com/soft/29715.htm</a></div>
<p>相对于1.7.4，新版本做了一下修改和更新：</p>
<blockquote><p>bug修复: Bug when creating contact from user.</p>
<p>bug修复: Fixed security issues.</p>
<p>bug修复: Issue with js config option in task module.</p>
<p>bug修复: Send button dissapears when sending email.</p>
<p>bug修复: Improved &lt;show all&gt; query for linked objects.</p>
<p>bug修复: Incompatibility with IE9.</p>
<p>bug修复: Language improvements.</p>
<p>bug修复: Warnings of combine.php.</p>
<p>bug修复: Issue when adding/edditing company.</p>
<p>bug修复: Issue with reports.</p>
<p>bug修复: Issue in Date Format Config Handler.</p>
<p>bug修复: Solved issue when viewing different emails in different browser tabs.</p>
<p>bug修复: Email forward is not included in conversation.</p>
<p>可用性: Disable edit workspace button if user does not have permissions, "add workspace" text added.</p>
<p>可用性: New wizard to get started using Feng Office.</p>
<p>系统核心: Check for mb_string library when installing.</p>
<p>系统核心: Images spriting. 	system: HTTPS support.</p>
<p>&nbsp;</p></blockquote>
<p>---------------------------------------------------</p>
<p>好好学习，天天向上</p>
<div id="_mcePaste" class="mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Since 1.7.4 	------------ 	bugfix: Bug when creating contact from user. 	bugfix: Fixed security issues. 	bugfix: Issue with js config option in task module. 	bugfix: Send button dissapears when sending email. 	bugfix: Improved &lt;show all&gt; query for linked objects. 	bugfix: Incompatibility with IE9. 	bugfix: Language improvements. 	bugfix: Warnings of combine.php. 	bugfix: Issue when adding/edditing company. 	bugfix: Issue with reports. 	bugfix: Issue in Date Format Config Handler. 	bugfix: Solved issue when viewing different emails in different browser tabs. 	bugfix: Email forward is not included in conversation. 	 	usability: Disable edit workspace button if user does not have permissions, "add workspace" text added. 	usability: New wizard to get started using Feng Office. 	 	system: Check for mb_string library when installing. 	system: Images spriting. 	system: HTTPS support.</div>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F671&title=Feng+office%E5%8F%91%E5%B8%83%E6%96%B0%E7%89%88%E6%9C%AC1.7.5beta" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/671/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Web QQ今天换新界面</title>
		<link>http://blog.shellway.cn/index.php/logs/share/667</link>
		<comments>http://blog.shellway.cn/index.php/logs/share/667#comments</comments>
		<pubDate>Thu, 21 Apr 2011 11:55:24 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[快乐分享]]></category>
		<category><![CDATA[用户体验]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[界面]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=667</guid>
		<description><![CDATA[2011年4月21日下午，Web QQ更换了新界面，子域名也由原来的http://web2.qq.com直接改成了http://web.qq.com。
新界面给人的感觉一见如故，我们平常的windows系统中就经常看到，类似于windows vista、windows 7、windows server 2008等系统的界面，有开始菜单、桌面图标，甚至加上了Dock快捷菜单和ipad中的主界面多屏切换。]]></description>
			<content:encoded><![CDATA[<p>2011年4月21日下午，Web QQ更换了新界面，子域名也由原来的http://web2.qq.com直接改成了http://web.qq.com。</p>
<p>新界面给人的感觉一见如故，我们平常的windows系统中就经常看到，类似于windows vista、windows 7、windows server 2008等系统的界面，有开始菜单、桌面图标，甚至加上了Dock快捷菜单和ipad中的主界面多屏切换。ipad上用应该还不错的。</p>
<p>这次更新估计折腾不小。腾讯Web QQ费这么大劲，到底搞什么飞机？要进军ipad、android等MID应用领域？应该是吧！</p>
<p>截图如下：</p>
<div id="attachment_668" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/04/web-qq-desktop-layout.png"><img class="size-medium wp-image-668" title="腾讯Web QQ桌面UI" src="http://blog.shellway.cn/wp-content/uploads/2011/04/web-qq-desktop-layout-600x494.png" alt="腾讯Web QQ桌面UI" width="600" height="494" /></a><p class="wp-caption-text">腾讯Web QQ桌面UI</p></div>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2Fshare%2F667&title=Web+QQ%E4%BB%8A%E5%A4%A9%E6%8D%A2%E6%96%B0%E7%95%8C%E9%9D%A2" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/share/667/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feng Office任务之我见</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/661</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/661#comments</comments>
		<pubDate>Wed, 06 Apr 2011 09:13:51 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[任务]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[建议]]></category>
		<category><![CDATA[开源OA]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=661</guid>
		<description><![CDATA[关于任务是否要分配给多个人，我觉得多人同时接受任务是不妥的。
因为执行任务具有独占性，如果多个人同时是一个任务的接收者，那我估计他们都会不知道是否要自己先去执行这个任务，可能最后都没人去执行。]]></description>
			<content:encoded><![CDATA[<div id="attachment_662" class="wp-caption aligncenter" style="width: 561px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/04/fengoffice-adding-a-task.png"><img class="size-full wp-image-662" title="fengoffice中添加任务" src="http://blog.shellway.cn/wp-content/uploads/2011/04/fengoffice-adding-a-task.png" alt="fengoffice中添加任务" width="551" height="399" /></a><p class="wp-caption-text">fengoffice中添加任务</p></div>
<p>关于任务是否要分配给多个人，我觉得多人同时接受任务是不妥的。</p>
<p>因为执行任务具有独占性，如果多个人同时是一个任务的接收者，那我估计他们都会不知道是否要自己先去执行这个任务，可能最后都没人去执行。</p>
<p>任务执行其实我们可以按一定的流程来，创建任务时分配给项目经理或者直接是任务执行者，然后由他们完成一部分工作然后转发给另一个执行者，一直这样传下去，直到任务完成。</p>
<p>订户就可以作为任务进程中的所有执行者被添加到任务中来，以实现多人参与。</p>
<p>拿我公司的bug修改任务来说吧：</p>
<ul>
<li> 测试组测试页面发现bug，发给相应人员，添加订户；</li>
<li> 相应人员（比如前端js人员）改完之后，发给下一个人处理（订户中的，比如php程序员）；</li>
<li>再传给下一个bug相关人员修改</li>
<li>And next ……</li>
<li> 最后都改完，发回测试组的bug发起人检查；</li>
<li> 检查ok就关闭任务，不行再发回某人处理……</li>
</ul>
<p>补充一下：我也同时在使用热门的redmine系统（一款Ruby on Rails的开源程序），它的任务分配也是针对单个用户的。</p>
<p>-----------------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F661&title=Feng+Office%E4%BB%BB%E5%8A%A1%E4%B9%8B%E6%88%91%E8%A7%81" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/661/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Feng Office之订户</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/657</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/657#comments</comments>
		<pubDate>Wed, 06 Apr 2011 08:56:54 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[subscribers]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[开源OA]]></category>
		<category><![CDATA[订户]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=657</guid>
		<description><![CDATA[订户：是FO数据对象的订阅者，即查阅者和动态关注者，或者可以认为是项目管理中的干系人。
在FO中，订户如果具有工作区中的相关权限，就可以对工作区中的数据对象进行操作。如有任务的读写权限，他就可以读写任务，也就可以被添加成订户，对任务进行编辑、执行、结束等操作。]]></description>
			<content:encoded><![CDATA[<p>订户：是FO数据对象的订阅者，即查阅者和动态关注者，或者可以认为是项目管理中的干系人。</p>
<div id="attachment_658" class="wp-caption aligncenter" style="width: 566px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/04/fengoffice-add-objects-subscribers.png"><img class="size-full wp-image-658" title="fengoffice中添加数据对象的订户" src="http://blog.shellway.cn/wp-content/uploads/2011/04/fengoffice-add-objects-subscribers.png" alt="fengoffice中添加数据对象的订户" width="556" height="580" /></a><p class="wp-caption-text">fengoffice中添加数据对象的订户</p></div>
<p>在FO中，订户如果具有工作区中的相关权限，就可以对工作区中的数据对象进行操作。如有任务的读写权限，他就可以读写任务，也就可以被添加成订户，对任务进行编辑、执行、结束等操作。</p>
<p>所以，刚开始使用FO，我们需要配置FO的一些参数，如工作区（可以作为部门、项目、客户等来创建）、用户、用户对工作区的权限等……</p>
<p>这样配置之后，新建每一种数据对象都可以添加订户（订阅者||干系人）。</p>
<p>&nbsp;</p>
<p>-----------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F657&title=Feng+Office%E4%B9%8B%E8%AE%A2%E6%88%B7" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/657/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS高级技巧：使用形状字符、图片精灵(sprites)和伪元素</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/627</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/627#comments</comments>
		<pubDate>Sat, 02 Apr 2011 09:58:10 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[翻译文章]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[sprites]]></category>
		<category><![CDATA[伪元素]]></category>
		<category><![CDATA[图片精灵]]></category>
		<category><![CDATA[样式]]></category>
		<category><![CDATA[高级技巧]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=627</guid>
		<description><![CDATA[2002年，Mark Newhouse发表了一篇题为“驯服列表”的有趣文章，文章中他解释了如何使用伪元素创建自定义列表标记。近10年后，Nicolas Gallagher提出“伪背景组”技术，其使用伪元素和图片精灵实现。

如今，站在巨人的肩上，我们试着更进一步。我们将探讨如何不通过使用多余的标记标签和使用一种友好的高对比的CSS图像精灵技术来为元素定义样式。这种技术可以很好的兼容IE6/7。]]></description>
			<content:encoded><![CDATA[<p>2002年，Mark Newhouse发表了一篇题为“<a title="Taming Lists驯服列表" href="http://www.alistapart.com/articles/taminglists/" target="_blank">驯服列表</a>”的有趣文章，文章中他解释了如何使用伪元素创建自定义列表标记。近10年后，Nicolas Gallagher提出“<a href="http://nicolasgallagher.com/css-background-image-hacks/demo/crop.html" target="_blank">伪背景组</a>”技术，其使用伪元素和图片精灵实现。</p>
<p>如今，站在巨人的肩上，我们试着更进一步。我们将探讨如何不通过使用多余的标记标签和使用一种友好的高对比的CSS图像精灵技术来为元素定义样式。这种技术可以很好的兼容IE6/7。</p>
<p><a href="http://blog.shellway.cn/wp-content/uploads/2011/04/figure-1.png"><img class="aligncenter size-full wp-image-636" title="插图一" src="http://blog.shellway.cn/wp-content/uploads/2011/04/figure-1.png" alt="插图一" width="500" height="235" /></a></p>
<h3>从特殊字符开始</h3>
<p>我们有<a title="Unidata特殊字符集" href="http://inamidst.com/stuff/unidata/" target="_blank">很多特殊字符</a>可以替代图片，用以实现自定义图标。这可以改进：</p>
<ul class="glyphs">
<li class="one">性能 (无HTTP请求)；</li>
<li class="two">可用性 (这些字符将根据用户设置伸缩)；</li>
<li class="three red">维护 (无需图片精灵，无需组合图片碎片)；</li>
<li class="four red">可及 (详见下文)。</li>
</ul>
<p><!--<br />
.glyphs {<br />
list-style-type: none;<br />
}</p>
<p>.glyphs li:before,<br />
.glyphs b {<br />
display: inline-block;<br />
width: 1.5em;<br />
font-size: 1.5em;<br />
text-align: center;<br />
}</p>
<p>.one,<br />
.one:before {<br />
content: "\2660"; /* ♠ */<br />
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='<b>&spades;'+this.innerHTML);<br />
}</p>
<p>.two,<br />
.two:before {<br />
content: "\2663"; /* ♣ */<br />
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='<b>&clubs;</b>'<br />
+this.innerHTML);<br />
}</p>
<p>.three,<br />
.three:before {<br />
content: "\2665"; /* ♥ */<br />
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='<b>&hearts;</b>'<br />
+this.innerHTML);<br />
}</p>
<p>.four,<br />
.four:before {<br />
content: "\2666"; /* ♦ */<br />
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='<b>&diams;</b>'<br />
+this.innerHTML);<br />
}</p>
<p>.red b,<br />
.red:before {<br />
color: red;<br />
}<br />
--></p>
<h4>例子：</h4>
<p>如上列表的符号（♠, ♣, ♥, ♦）是通过以下HTML和CSS生成的：</p>
<p><strong>HTML:</strong></p>
<blockquote>
<pre>&lt;ul class="glyphs"&gt;</pre>
<pre>&lt;li class="one"&gt;performance&lt;/li&gt;</pre>
<pre>&lt;li class="two"&gt;usability&lt;/li&gt;</pre>
<pre>&lt;li class="three red"&gt;maintenance &lt;/li&gt;</pre>
<pre>&lt;li class="four red"&gt;accessibility&lt;/li&gt;</pre>
<pre>&lt;/ul&gt;</pre>
</blockquote>
<p><strong>CSS:</strong></p>
<blockquote>
<pre>.glyphs {
list-style-type: none;
}

.glyphs li:before,
.glyphs b {
display: inline-block;
width: 1.5em;
font-size: 1.5em;
text-align: center;
}</pre>
<pre>.one,
.one:before {
content: "\2660"; /* ♠ */
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='&lt;b&gt;&amp;spades;&lt;/b&gt;'
+this.innerHTML);
}</pre>
<pre>.two,
.two:before {
content: "\2663"; /* ♣ */
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='&lt;b&gt;&amp;clubs;&lt;/b&gt;'
+this.innerHTML);
}</pre>
<pre>.three,
.three:before {
content: "\2665"; /* ♥ */
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='&lt;b&gt;&amp;hearts;&lt;/b&gt;'
+this.innerHTML);
}</pre>
<pre>.four,
.four:before {
content: "\2666"; /* ♦ */
background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML ='&lt;b&gt;&amp;diams;&lt;/b&gt;'
+this.innerHTML);
}</pre>
<pre>.red b,
.red:before {
color: red;
}</pre>
</blockquote>
<p>&nbsp;</p>
<h4>这是如何工作的？</h4>
<ul>
<li>content属性值必须是一个指向Unicode字符值的十六进制转义索引值（IE中，我们用CSS表达式来生成html代码）。</li>
<li>IE6、7不支持“::before”和“:before”伪元素，所以字符需要通过CSS表达式插入到HTML中。</li>
<li>IE8不支持“::before”，但是支持单冒号的“:before”。</li>
<li>请注意：在不考虑浏览器支持与否的情况下，“:before”与“::before”或者“:after”与“::after”之间是没有什么区别的。CSS3之前的所有CSS版本中，单冒号的语法用作伪类和伪元素选择器。随着CSS3的引入，为了区分伪类和伪元素的区别，CSS3中的所有伪元素必须使用双冒号语法，而所有的伪类必须使用单冒号语法。</li>
<li>IE下，字符被包裹在&lt;b&gt;元素中，这样我们就可以定位到这些字符并给他们附上样式（您可能更喜欢用class来实现）。</li>
</ul>
<p>注意：此处使用的CSS表达式并非如用来<a href="http://robertnyman.com/2007/11/13/stop-using-poor-performance-css-expressions-use-javascript-instead/">模拟min-width</a>之类的技术一般糟。这些只被执行一次，对性能的影响极小。</p>
<h3>通过伪元素显示图片</h3>
<p>使用伪元素来显示图片的主要优势在于，它允许设计师裁切图片精灵（sprites）。实际上，这也没什么新鲜的。如今很多站点已在使用附加标记（实则是垃圾标记）来实现此技术。如，雅虎搜索使用空的&lt;s&gt;元素，Facebook则用空的&lt;i&gt;标记来达到这个目的。此方法需要创建复杂的CSS图片精灵（sprites），其中图片之间没有空白间隔。</p>
<p>下面两例没有使用额外的标记，而且他们用的是同一张sprites图片：</p>
<p><img src="http://blog.shellway.cn/wp-content/uploads/2011/04/sprite.png" alt="Sprite in Styling Elements With Glyphs, Sprites and Pseudo-Elements" width="60" height="15" /></p>
<p>下面两张图，也就是上图的第二个图标，是用两种技术分别生成的。</p>
<h4>Nicolas Gallagher的方法</h4>
<p>给伪元素添加背景图：</p>
<blockquote>
<pre>#first:before {
  content: "";
  float: left;
  width: 15px;
  height: 15px;
  margin: 4px 5px 0 0;
  background: url(sprite.png) -15px 0;
}</pre>
</blockquote>
<h4>新的url() / clip方法</h4>
<p>使用content属性插入图片精灵，之后会被clip属性裁切：</p>
<blockquote>
<pre>#second {
  position: relative;
  padding-left: 20px;
  background-image: expression(this.runtimeStyle.backgroundImage="none",this.innerHTML =
  '&lt;img alt="" src="sprite.png"&gt;'+this.innerHTML);
}

#second:before,
#second img {
  content: url(sprite.png);position: absolute;
  top: 3px;
  clip: rect(0 30px 15px 15px);
  left: -15px; /* to offset the clip value */
  _left: -35px; /* some massaging for IE 6 */
}</pre>
</blockquote>
<p>可能你会纳闷，为什么我要在上面的规则中用<code>position: absolute。那是因为clip属性仅会作用于绝对定位元素。</code></p>
<h4>新技术：她是如何工作的？</h4>
<ul>
<li>我们使用伪元素来插入图片（用content属性），而不是给元素定义背景样式。</li>
<li>使用clip属性，我们裁切图片成我们想显示的那一部分。也就是说，我们再也没有必要为了避免显示图片的其他部分，而给图片添加多余的空白了（一般被用作大元素的背景图片）。</li>
<li>我们用left和top属性使clip偏移到想要的位置。</li>
</ul>
<p>使用“无裁切”技术时，sprites中的图片应该右对齐或者左对齐排列来迎合RTL/LTR的文本排版模式（<code>background-position: [left]|[right] [竖向值]</code>）。另外一个局限是，创建挨着排的图片sprites（其他图片可能也显示出来）。但是，用裁切sprites技术，这些问题就随之消失了，这样所有的图片就可以紧挨着排列了。</p>
<p>例如下图所示：</p>
<p><img src="http://blog.shellway.cn/wp-content/uploads/2011/04/figure-2.png" alt="Figure-2 in Styling Elements With Glyphs, Sprites and Pseudo-Elements" width="500" height="235" /></p>
<h4>此方法较之以前技术的优点：</h4>
<p><strong>打印样式</strong><br />
跟背景图片不一样，打印的时候，这些图片将会被传送到打印机中打印出来。</p>
<p><strong>可及性样式</strong><br />
跟背景图片不一样的是，这些图片在微软视窗高对比度模式或者高对比样式表渲染下不会消失。</p>
<p><strong>兼容IE8之前浏览器的样式</strong><br />
IE 6、7中同样有效.</p>
<p>注意：<a href="http://en.wikipedia.org/wiki/Data_URI_scheme">数据URI scheme</a>可用于避免HTTP请求。IE6/7不支持数据URI scheme，但是我们可以使用IE6、7的<a title="MHTML – when you need data: URIs in IE7 and under" href="http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/">MHTML</a>来使IE7及更老浏览器也能理解它。</p>
<h3>用伪元素定义链接样式</h3>
<p>Nicolas Gallager秀出了 <a href="http://nicolasgallagher.com/css-background-image-hacks/">很多很酷的玩意儿</a>，我们可以用这些来处理为元素。在此我仅说一件，就是用“::after”为链接添加样式，如下所示：</p>
<p><a href="http://www.smashingmagazine.com/2011/03/19/styling-elements-with-glyphs-sprites-and-pseudo-elements/#">更多详情&gt;&gt;</a></p>
<p><strong>CSS:</strong></p>
<blockquote>
<pre>.more,
.more:after {
white-space: nowrap;
content: " \00BB"; /* » */
background-image: expression(this.runtimeStyle.backgroundImage="none",
this.innerHTML = this.innerHTML+' &amp;raquo;');
}</pre>
</blockquote>
<h3>可及性</h3>
<p>您可以假设内容是给屏幕阅读器看的。既然没有任何机制可以为content属性所插入的图片提供替代文本，那我们就应该确保这些图片只是纯粹的装饰用的，原因是我们的屏幕阅读用户可能看不到这些图片信息。</p>
<p>原文作者：<a title="Posts by Thierry Koblentz" href="http://www.smashingmagazine.com/author/thierry-koblentz/">Thierry Koblentz</a></p>
<p>原文地址：<a href="http://www.smashingmagazine.com/2011/03/19/styling-elements-with-glyphs-sprites-and-pseudo-elements/">http://www.smashingmagazine.com/2011/03/19/styling-elements-with-glyphs-sprites-and-pseudo-elements/</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F627&title=CSS%E9%AB%98%E7%BA%A7%E6%8A%80%E5%B7%A7%EF%BC%9A%E4%BD%BF%E7%94%A8%E5%BD%A2%E7%8A%B6%E5%AD%97%E7%AC%A6%E3%80%81%E5%9B%BE%E7%89%87%E7%B2%BE%E7%81%B5%28sprites%29%E5%92%8C%E4%BC%AA%E5%85%83%E7%B4%A0" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/627/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【前端新书】HTML5高级程序设计</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/621</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/621#comments</comments>
		<pubDate>Tue, 22 Mar 2011 08:05:32 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[前端设计]]></category>
		<category><![CDATA[推荐]]></category>
		<category><![CDATA[新书]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=621</guid>
		<description><![CDATA[HTML5高级程序设计
作 者：Peter Lubbers， Brian Albers，Frank Salim 著，李杰 柳靖 刘淼 译
出版社：人民邮电出版社

简介：本书首先介绍了HTML5 的历史背景、新的语义标签及与以往HTML 版本相比的根本变化，同时揭示了HTML5 背后的设计原理。从第2 章起，分别围绕构建令人神往的富Web 应用，逐一讨论了HTML5 的Canvas、Geolocation……]]></description>
			<content:encoded><![CDATA[<h3>HTML5高级程序设计</h3>
<div id="attachment_622" class="wp-caption aligncenter" style="width: 290px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/03/pro-html5-programing-cover.jpg"><img class="size-full wp-image-622" title="pro-html5-programing-cover" src="http://blog.shellway.cn/wp-content/uploads/2011/03/pro-html5-programing-cover.jpg" alt="HTML5高级程序设计封面" width="280" height="280" /></a><p class="wp-caption-text">HTML5高级程序设计封面</p></div>
<p><strong>作 者：</strong>Peter Lubbers， Brian Albers，Frank Salim 著，李杰 柳靖 刘淼 译</p>
<p><strong>出版社：</strong>人民邮电出版社</p>
<p><strong>简介：</strong></p>
<p>本书首先介绍了HTML5 的历史背景、新的语义标签及与以往HTML 版本相比的根本变化，同时揭示了HTML5 背后的设计原理。从第2  章起，分别围绕构建令人神往的富Web 应用，逐一讨论了HTML5 的Canvas、Geolocation  、Communication、WebSocket、Forms、Web Workers、Storage 等API 的使用，  辅以直观明了的客户端和服务器端示例代码，让开发人员能够迅速理解和掌握新一代Web 标准所涵盖的核心技术。本书最后探索了离线Web  应用并展望了HTML5 未来的发展前景。</p>
<p>本书面向<span style="color: #ff0000;"><strong>有一定经验的</strong></span>Web 应用开发人员，对HTML5 及未来Web 应用技术发展抱有浓厚兴趣的读者也可以学习参考。</p>
<p>在线预览：<a href="http://book.51cto.com/art/201012/239224.htm" target="_blank">http://book.51cto.com/art/201012/239224.htm</a></p>
<p>&nbsp;</p>
<p>---------------------------------------------</p>
<p>好好生活，天天快乐</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F621&title=%E3%80%90%E5%89%8D%E7%AB%AF%E6%96%B0%E4%B9%A6%E3%80%91HTML5%E9%AB%98%E7%BA%A7%E7%A8%8B%E5%BA%8F%E8%AE%BE%E8%AE%A1" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/621/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>腾讯QQ的快速发布功能</title>
		<link>http://blog.shellway.cn/index.php/logs/share/617</link>
		<comments>http://blog.shellway.cn/index.php/logs/share/617#comments</comments>
		<pubDate>Tue, 22 Mar 2011 07:52:31 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[快乐分享]]></category>
		<category><![CDATA[用户体验]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[快速发布]]></category>
		<category><![CDATA[新功能]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=617</guid>
		<description><![CDATA[QQ 2011 beta1版本添加了许多新功能，其中就有“快速发布”功能。
可能是腾讯考虑到QQ空间使用量很大，才增加这个功能的。如果用户再需要登录网页再发布内容，可能会制约QQ空间的发展。
这项功能其实就是将QQ空间的部分常用功能简单地在客户端实现，方便用户发布空间日志和图片。]]></description>
			<content:encoded><![CDATA[<div id="attachment_618" class="wp-caption aligncenter" style="width: 495px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/03/QQ-note-weblog-quick-post.png"><img class="size-full wp-image-618" title="QQ-note-weblog-quick-post" src="http://blog.shellway.cn/wp-content/uploads/2011/03/QQ-note-weblog-quick-post.png" alt="QQ记事、日志的快速发布功能" width="485" height="546" /></a><p class="wp-caption-text">QQ记事、日志的快速发布功能</p></div>
<p>QQ 2011 beta1版本添加了许多新功能，其中就有“快速发布”功能。<br />
可能是腾讯考虑到QQ空间使用量很大，才增加这个功能的。如果用户再需要登录网页再发布内容，可能会制约QQ空间的发展。<br />
这项功能其实就是将QQ空间的部分常用功能简单地在客户端实现，方便用户发布空间日志和图片。</p>
<p>这项功能可能很多人不懂怎么用。其实很简单的，在“我的好友”列表中找到你自己，然后双击你自己的用户名就打开了文章开头的界面了。确实很方便。</p>
<p>--------------------------------------<br />
好好生活，天天快乐</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2Fshare%2F617&title=%E8%85%BE%E8%AE%AFQQ%E7%9A%84%E5%BF%AB%E9%80%9F%E5%8F%91%E5%B8%83%E5%8A%9F%E8%83%BD" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/share/617/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转]Modernizr&#8211;为HTML5和CSS3而生</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/612</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/612#comments</comments>
		<pubDate>Mon, 21 Mar 2011 07:57:41 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Modernizr]]></category>
		<category><![CDATA[浏览器兼容]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=612</guid>
		<description><![CDATA[今天，以CSS为基础进行的布局已经非常普遍，浏览器们对它的支持也非常的坚实。但是现在CSS3和HTML5来了，历史转了个圈又回到了原地—— 各个浏览器对这些新技术的支持又开始变得参差不齐了。我们早都习惯了书写整洁的符合标准的代码，也不会再使用CSS hacks或者浏览器嗅探这些不靠谱又低级的技术。]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://www.blueidea.com/articleimg/2011/03/8341/01.jpg" border="0" alt="" width="510" height="234" /></p>
<p>10年前，只有最尖端的网站设计师会为网页的布局和修饰使用CSS。那时的浏览器对CSS进行布局的支持即不完善又漏洞百出，所以这些人在坚持 WEB标准化的同时，也不得不采用hacks来使得他们的页面在所有浏览器中都能正常显示。其中一个被使用的越来越多的hack技术是浏览器嗅探 （browser  sniffing），使用Javascript里的navigator.userAgent属性来判断用户使用的是什么品牌哪个版本的浏览器。浏览器嗅探 技术可以快捷的将代码进行分支，以便针对不同的浏览器应用不同的指令。</p>
<p>今天，以CSS为基础进行的布局已经非常普遍，浏览器们对它的支持也非常的坚实。但是现在CSS3和HTML5来了，历史转了个圈又回到了原地—— 各个浏览器对这些新技术的支持又开始变得参差不齐了。我们早都习惯了书写整洁的符合标准的代码，也不会再使用CSS  hacks或者浏览器嗅探这些不靠谱又低级的技术。我们也相信越来越多的用户会认同 <a href="http://dowebsitesneedtolookexactlythesameineverybrowser.com/" target="_blank">网站不必在所有浏览器里都看起来一样</a> 的理念。那面对当下这个熟悉的情形（浏览器支持的不同），我们该怎么做呢？简单：使用特征检测（feature  detection），这意味着我们不必通过问浏览器“你是谁？”来做出不靠谱的推测。取而代之，我们问浏览器“你能做这个或那个吗”。这么来检测浏览器 的能力是很简便的，但一个个的花时间去手工测试依然令人厌烦。此时 <a href="http://www.modernizr.com/" target="_blank">Modernizr</a> 可以帮助我们。</p>
<p><strong>Modernizr：专为HTML5和CSS3开发的功能检测类库</strong></p>
<p>Modernizr是一个开源的JS库，它使得那些基于访客浏览器的不同（指对新标准支持性的差异）而开发不同级别体验的设计师的工作变得更为简 单。它使得设计师可以在支持HTML5和CSS3的浏览器中充分利用HTML5和CSS3的特性进行开发，同时又不会牺牲其他不支持这些新技术的浏览器的 控制。</p>
<p>当你在网页中嵌入Modernizr的脚本时，它会检测当前浏览器是否支持CSS3的特性，比如  @font-face、border-radius、 border-image、box-shadow、rgba()  等，同时也会检测是否支持HTML5的特性——比如audio、video、本地储存、和新的  &lt;input&gt;标签的类型和属性等。在获取到这些信息的基础上，你可以在那些支持这些功能的浏览器上使用它们，来决定是否创建一个基于JS的 fallback，或者对那些不支持的浏览器进行简单的优雅降级。另外，Modernizr还可以令IE支持对HTML5的元素应用CSS样式，这样开发 者就可以立即使用这些更富有语义化的标签了。</p>
<p><strong>Modernizr</strong>是基于渐进增强理论来开发的，所以它支持并鼓励开发者一层一层的创建他们的网站。一切从一个 应用了Javascript的空闲地基开始，一个接一个的添加增强的应用层。因为使用了Modernizr，所以你容易知道浏览器都支持什么。下面我们来 看一个通过应用Modernizr来创建尖端网站的实例。</p>
<p><strong>从应用Modernizr开始</strong></p>
<p>首先从<a href="http://www.modernizr.com/" target="_blank">www.modernizr.com</a>下 载Modernizr的最新的稳定版（目前国内封了Modernizr的官网，我们可以从github上下载。或者更简单点，可以从堂主这里下载最新的 1.7版的脚本文件），在官网上你还可以看到它支持检测的所有特性的清单（本文末位会给出这些清单，以便翻不了墙的童鞋可以知道都支持哪些）。下载完最新 版本以后（作者写这篇文章的时候用的是1.5版），把它加入页面的&lt;head&gt;区域：</p>
<p>&nbsp;</p>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta charset="utf-8"&gt;<br />
&lt;title&gt;My Beautiful Sample Page&lt;/title&gt;<br />
&lt;script src="modernizr-1.5.min.js"&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
…</p>
<p>接下来，向&lt;html&gt;元素添加“no-js”的类。</p>
<p>&nbsp;</p>
<p>&lt;html&gt;</p>
<p>当Modernizr运行的时候，它会把这个“no-js”的类变为“js”来使你知道它已经运行。Modernizr并不仅仅只做这一件事情，它 还会为所有它检测过的特性添加class类，如果浏览器不支持某个特性，它就为该特性对应的类名加上“no-”的前缀。所以，你 的&lt;html&gt;元素可能会变得看起来像下面这个样子：</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&lt;html&gt;</p>
<p>Modernizr同时还会创建一个JS对象，被命名为“Modernizr”，其内容是为每一个检测完的特性给出的布尔值结果组成的列表。如果浏 览器支持新的canvas元素，那么“Modernizr.canvas”的值就是true；如果浏览器不支持这个新元素，那它对应的值就是false。 这个JS对象针对某些功能还会包含更为详细的信息，如“Modernizr.video.h264”会告诉你浏览器是否支持这个特殊的编解码器。 “Modernizr.inputtypes.search”会告诉你当前浏览器是否支持新的search input类型，等等。</p>
<p>我们的 <a href="http://www.alistapart.com/d/taking-advantage-of-html5-and-css3-with-modernizr/sample-raw.html" target="_blank">未加工的简单小页面</a> 看起来有点像一个准测试系统了，但它具备更好的语义性和可访问性。让我们为它添加一点基本的样式：一点文字格式、颜色和布局以使它更好看。目前位置，没什么新东西，只是为一个语义化结构的HTML页面添加表现样式，看看添加了样式后的页面。</p>
<p>下面，我们要增强这个页面使得它更有意思。我想为头部的h1应用一个奇特的文字效果，把关于检测特性的列表分为两栏，然后将带有一张照片的关于 Modernizr的部分的一切都弄到右边去。我还要把围绕页面内容的边框变美点。现在，更给力的CSS3使你可以对一条规则添加更多的属性，如果浏览器 不支持这些属性，它会忽略它们。配合使用CSS的层叠（继承），你可以不必依赖Modernizr而使用像“border-radius”这样的新属性。 不过，使用Modernizr可以为你提供一些既有手段提供不了的功能：根据浏览器对新东西支持的差异动态修改的&lt;html&gt;的类名。我会通 过对我们的页面添加2条新的规则来说明这点：</p>
<p>&nbsp;</p>
<p>.borderradius #content {<br />
border: 1px solid #141414;<br />
-webkit-border-radius: 12px;<br />
-moz-border-radius: 12px;<br />
border-radius: 12px;<br />
}<br />
.boxshadow #content {<br />
border: none;<br />
-webkit-box-shadow: rgba(0,0,0, .5) 3px 3px 6px;<br />
-moz-box-shadow: rgba(0,0,0, .5) 3px 3px 6px;<br />
box-shadow: rgba(0,0,0, .5) 3px 3px 6px;<br />
}</p>
<p>第一条规则为“#content ”元素添加了一个12像素的圆角。但在既有的页面里我们已经为“#content  ”元素设置了一个属性值为“2px outset  #666”的边框，这在box是直角的时候是蛮好看的，但在圆角情况下就不是了。感谢Modernizr，我可以在浏览器支持“border- radius”的情况下给box设置一个1px的实边。</p>
<p>第二条规则更进步了一点，我们为“#content  ”元素添加了一个阴影，并且针对支持“box-shadow”属性的浏览器一并移除了border属性。为什么呢？因为大部分浏览器并不为“边框附带边 角”的组合外加阴影这样的效果提供一个好的表现（这是一个应该被注意的浏览器的瑕疵，但我们现在却必须忍受它）。同不使用阴影只使用边框相比，我宁可只使 用阴影包围元素。采用这种方式，我可以拥有全世界最好的，准确点的，最好的一种CSS表现：在支持“box-shadow”属性的浏览器里将会呈现一个美 妙的阴影；只支持“border-radius”属性的浏览器将会呈现一个好看的圆角薄边框；对于那些这2者都不支持的破烂浏览器，我们会看到一个2像素 的直角边框。</p>
<p>下面我们要为header应用一个自定义的特殊字体，下面的是我们目前针对h1的声明，没改动版的：</p>
<p>&nbsp;</p>
<p>h1 {<br />
color: #e33a89;<br />
font: 27px/27px Baskerville, Palatino, "Palatino Linotype",<br />
"Book Antiqua", Georgia, serif;<br />
margin: 0;<br />
text-shadow: #aaa 5px 5px 5px;<br />
}</p>
<p>这些声明在我们的基础网页里工作良好，27像素的文字大小也很适合我们为h1设置的那些字体的展示。但对于我要用的名叫“Beautiful”的字体来说，27像素就太小了。下面我们要添加其他的规则来使用这个自定义字体：</p>
<p>&nbsp;</p>
<p>@font-face {<br />
src: url(Beautiful-ES.ttf);<br />
font-family: "Beautiful";<br />
}</p>
<p>.fontface h1 {<br />
font: 42px/50px Beautiful;<br />
text-shadow: none;<br />
}</p>
<p>首先，我们添加<a href="mailto:%E2%80%9C@font-face">“@font-face</a>”声明，并在其中为我 们的自定义字体指定路径、文件名和字体名。之后我们用一条CSS语句为我们的h1选择字体样式。你会看到，我这里选择了一个很大的字号，那是因为 “Beautiful”字体本身就比其他字体的文字要小很多，所以我们必须要指示浏览器在展示我们自定义字体的时候，给予h1一个很大的字号。</p>
<p>此外，我们漂亮的手写体文字在文字阴影方面存在一些渲染问题，所以我们要在浏览器决定使用自定义文字时取消文字的阴影。另外，关于检测特征部分的列 表还需要被分为两栏。为了达到目的，我要使用牛叉的CSS columns  属性，这一属性会使浏览器把列表智能分栏而不会打乱它的顺序，而我们的列表，虽然没有数字序号，却也是按照字母顺序排列的。当然，不是所有的浏览器都支持 这一属性，对于那些不支持的浏览器，我们使用浮动来达到2栏的目的——使用了浮动后列表在视觉上不会再按照字母顺序排列，但那也好过什么都没有。</p>
<p>&nbsp;</p>
<p>.csscolumns ol.features {<br />
-moz-column-count: 2;<br />
-webkit-columns: 2;<br />
-o-columns: 2;<br />
columns: 2;<br />
}</p>
<p>.no-csscolumns ol.features {<br />
float: left;<br />
margin: 0 0 20px;<br />
}</p>
<p>.no-csscolumns ol.features li {<br />
float: left;<br />
width: 180px;<br />
}</p>
<p>我又一次使用了Modernizr来针对不同的情况设置不同的属性。如果浏览器支持CSS  columns，它就会把列表完美的分为2栏，如果不支持，通过Modernizr为&lt;html&gt;添加的“no-csscolumns”类我 们也可以用浮动的方式使得列表变为两栏，虽然不那么完美，但也比直接来一个长串的单栏列表强。</p>
<p>这里您可能注意到了我为属性添加了不同的前缀（-moz-、-webkit-、-o-），这是因为不同的浏览器厂商对该功能的实现有不同的定义，所以要实现该功能需要针对不同的浏览器加上它们对应的前缀。</p>
<p>经过这些改变，我们 <a href="http://www.alistapart.com/d/taking-advantage-of-html5-and-css3-with-modernizr/sample-medium.html" target="_blank">新的页面</a> 看起来更好了。</p>
<p>我们将为我们的页面添加进更多的渐进式增强效果来结束这篇教程。基于WebKit的浏览器支持一些更牛叉的特效，如CSS变换、动画和三维转换等。 并且我想在最后一个阶段的页面中应用一些这类特效。再一次的，这些属性会被添加进我们既有的CSS中并在不支持它们的浏览器中给忽视。所以，针对这种一方 面是渐进增强一方面是不被支持的情况，使用Modernizr是恰当的。</p>
<p>首先设置的：</p>
<p>&nbsp;</p>
<p>@-webkit-keyframes spin {<br />
0% { -webkit-transform: rotateY(0); }<br />
100% { -webkit-transform: rotateY(360deg); }<br />
}</p>
<p>.csstransforms3d.cssanimations section {<br />
-webkit-perspective: 1000;<br />
}</p>
<p>@keyframes规则是新的CSS animations规范中的一部分，目前只有WebKit支持。它容许你针对任何属性声明一个完整的动画路径，并在你喜欢的任何阶段改变它们。想知道关于animations的更多知识，请阅读 <a href="http://www.w3.org/TR/css3-animations/" target="_blank">W3C Working Draft specification</a>。</p>
<p>下面我们添加使得我们一个元素在三维空间里旋转的代码：</p>
<p>&nbsp;</p>
<p>.csstransforms3d.cssanimations section h2 {<br />
background-image: url(modernizr-logo.png);<br />
overflow: hidden;<br />
-webkit-animation: spin 2s linear infinite;<br />
}</p>
<p>因为logo要转动，且又希望它转的时候和背景相处的融洽些，于是这里用了一个png格式的文件。我还采用了一个 “overflow:hidden”属性来隐藏设置了缩进-9999像素的header里的文字。使元素以3D的形式旋转虽然有趣却并不太美观。最终，我 们选择使用animation规则，设置它的旋转周期为2秒钟，沿着自身的中轴线旋转，永不停止。</p>
<p><a href="http://www.alistapart.com/d/taking-advantage-of-html5-and-css3-with-modernizr/sample-advanced.html" target="_blank">最终的页面</a> 看起来很给力，甚至还针对WebKit浏览器设置了好玩的动画。我希望到现在你能明白使用Modernizr可以使你对网站控制的手腕变得多么牛叉，以及 它可以令真正的渐进增强变得多么简单。这还不仅仅是Modernizr的全部好处，它还可以帮你建立基于JS的fallbacks以及可以帮你应用 html5那些牛掰的新特性。</p>
<p><strong>附，Modernizr检测清单</strong>：</p>
<p>1. @font-face<br />
2. Canvas<br />
3. Canvas Text<br />
4. WebGL<br />
5. HTML5 Audio<br />
6. HTML5 Audio formats<br />
7. HTML5 Video<br />
8. HTML5 Video formats<br />
9. rgba()<br />
10. hsla()<br />
11. border-image<br />
12. border-radius<br />
13. box-shadow<br />
14. text-shadow<br />
15. Multiple backgrounds<br />
16. background-size<br />
17. opacity<br />
18. CSS Animations<br />
19. CSS Columns<br />
20. CSS Gradients<br />
21. CSS Reflections<br />
22. CSS 2D Transforms<br />
23. CSS 3D Transforms<br />
24. Flexible Box Model<br />
25. CSS Transitions<br />
26. Geolocation API<br />
27. Input Types<br />
28. Input Attributes<br />
29. localStorage<br />
30. sessionStorage<br />
31. Web Workers<br />
32. applicationCache<br />
33. SVG<br />
34. Inline SVG<br />
35. SVG Clip paths<br />
36. SMIL<br />
37. Web SQL Database<br />
38. IndexedDB<br />
39. Web Sockets<br />
40. hashchange Event<br />
41. History Management<br />
42. Drag and Drop<br />
43. Cross-window Messaging<br />
44. Touch Events</p>
<ul>
<li>原文地址：<br />
<a href="http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr/">http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr/</a></li>
<li>堂主译文地址：<br />
<a href="http://osmn00.com/blog/front-end/taking-advantage-of-html5-and-css3-with-modernizr.html">http://osmn00.com/blog/front-end/taking-advantage-of-html5-and-css3-with-modernizr.html</a></li>
</ul>
<p><strong>经典论坛交流</strong>：<br />
<a href="http://bbs.blueidea.com/thread-3014642-1-1.html">http://bbs.blueidea.com/thread-3014642-1-1.html</a></p>
<p>本文链接：<a href="http://www.blueidea.com/tech/web/2011/8341.asp" target="_blank">http://www.blueidea.com/tech/web/2011/8341.asp</a></p>
<p>出处：<a href="http://www.blueidea.com/">蓝色理想</a><br />
责任编辑：<a href="http://www.blueidea.com/common/contact.asp?type=%E7%BC%96%E8%BE%91&amp;username=bluehearts" target="_blank">bluehearts</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F612&title=%5B%E8%BD%AC%5DModernizr--%E4%B8%BAHTML5%E5%92%8CCSS3%E8%80%8C%E7%94%9F" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/612/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fengoffice 1.7.4新版发布</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/604</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/604#comments</comments>
		<pubDate>Mon, 14 Mar 2011 01:35:31 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[新功能]]></category>
		<category><![CDATA[更新]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=604</guid>
		<description><![CDATA[Fengoffice 最新版本v1.7.4于2011年03月11日发布。本次版本做了一些bug修复，添加了少许新功能。
相对于1.7.3.1版本，做了一下优化和改进（部分翻译）]]></description>
			<content:encoded><![CDATA[<p><a title="Feng Office专题" href="http://blog.shellway.cn/index.php/fengoffice">Fengoffice</a> 最新版本v1.7.4于2011年03月11日发布。本次版本做了一些bug修复，添加了少许新功能。</p>
<p>下载地址：<a title="Feng Office 1.7.4下载地址" href="http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_1.7.4/" target="_blank">http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_1.7.4/</a></p>
<p>直接下载：<a title="Fengoffice下载" href="http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_1.7.4/fengoffice_1.7.4.zip/download" target="_blank">http://sourceforge.net/projects/opengoo/files/fengoffice/fengoffice_1.7.4/fengoffice_1.7.4.zip/download</a></p>
<p>Shellway之前发布的<a title="Fengoffice简体中文语言包最近更新——V3.0" href="http://blog.shellway.cn/index.php/fengoffice/298">语言包</a>和<a title="Feng Office开源OA系统主题包（兼容IE6）" href="http://blog.shellway.cn/index.php/fengoffice/189">主题</a>仍然可以继续使用。</p>
<p>相对于1.7.3.1版本，做了一下优化和改进（部分翻译）：</p>
<blockquote><p>bugfix: HtmlPurifier library updated（更新HtmlPurifier库）</p>
<p>bugfix: Sending emails fixed to avoid sending an email more than one  time when receiving 'mysql has gone away' msg in the middle of the  process.（修复发邮件可能会重复发送的问题）</p>
<p>bugfix: Security issue with cookies.（修复cookie安全问题）</p>
<p>bugfix: Issue in combine.php.</p>
<p>bugfix: Issue with report conditions with date comparisons.（修复报表日期比对条件问题）</p>
<p>bugfix: Fixed langs for es_es and es_la.</p>
<p>bugfix: Logs were not written for subtasks when trashing, untrashing, archiving and unarchiving tasks.</p>
<p>bugfix: Permissions issue at users history log.</p>
<p>bugfix: Tasks reports shows priority codes instead of showing prioriy names.</p>
<p>bugfix: Fixed: reminder didn't use timezone in some cases.</p>
<p>bugfix: Class name removed from search results.</p>
<p>bugfix: File revisions in search results sometimes shows html code.</p>
<p>bugfix: When reporting objects with list custom properties only the first value was shown.</p>
<p>bugfix: When composing an email, fields to, cc and bcc not always select the email from the list if clicking it.</p>
<p>bugfix: Event creator appears twice in the email when other user accepted the invitation.</p>
<p>bugfix: Email signature does not change when composing an email and changing the from address.</p>
<p>bugfix: Issue with upload control when attaching a file that already exists in the system.</p>
<p>bugfix: Bug with CKEditor and Chrome when adding an image to a document.</p>
<p>bugfix: Checkbox were not cleared when reloading contact list.</p>
<p>bugfix: Issue when having more than one tab with Feng Office and viewing emails in each tab.</p>
<p>bugfix: Templates with assigned tasks are not shown properly at tasks widgets.</p>
<p>bugfix: Date format config handler is not initializing correctly for some values.</p>
<p>bugfix: Escape characters for report results.</p>
<p>bugfix: Issue with calendar reports.</p>
<p>bugfix: Issue with tasks widget in dashboard.</p>
<p>bugfix: Issue with milestone due dates in listing.</p>
<p>bugfix: Issue with conversation list permissions when viewing an email.</p>
<p>bugfix: LinkedObjectManager issue fixed.</p>
<p>system: CKEditor upgraded to version 3.5.1（CKEditor更新版本）</p>
<p>feature: Added APC cache for config options and other frequent objects.（添加频繁使用的对象的缓存功能）</p>
<p>feature: Added languages: Bulgarian, Suomi and Svenska.</p>
<p>feature: Upgraded languages: cs_cz, de_de, el_gr, it_it, ja_jp, nb_no, nl_nl, pl_pl, zh_cn.</p>
<p>feature: Improved the message for emails in outbox when logging in.（登录时已发邮件提示信息的优化）</p>
<p>feature: Added some indexes and improved parts of the code to improve performance.（添加索引，优化代码提升性能）</p>
<p>feature: Added more checks when sending emails.（添加更多发送邮件时的检查项）</p>
<p>feature: Performance improved for reminder and email pollings.（系统提醒和邮件投票的性能改进）</p>
<p>feature: Show label "Tags" when tags panel is collapsed.（标签面板关闭时显示“标签”文字）</p>
<p>feature: Javascript injection prevention.（添加Javascript注入攻击防卫功能）</p></blockquote>
<p>&nbsp;</p>
<p>---------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F604&title=Fengoffice+1.7.4%E6%96%B0%E7%89%88%E5%8F%91%E5%B8%83" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/604/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7相对定位元素不显示怎么办？</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/575</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/575#comments</comments>
		<pubDate>Wed, 09 Mar 2011 06:46:28 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hasLayout]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[浏览器兼容]]></category>
		<category><![CDATA[浏览器呈现]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=575</guid>
		<description><![CDATA[今天碰到一件怪事。我的页面content部分在IE7中莫名其妙的就隐藏起来了，把我急了一上午。
最后想起一个IE的属性：zoom，试了一下果然行。这个属性可以缩放元素，触发IE中该元素的布局模式（hasLayout），使其有布局结构。]]></description>
			<content:encoded><![CDATA[<p>今天碰到一件怪事。</p>
<p>我的页面content部分在IE7中莫名其妙的就隐藏起来了，把我急了一上午。</p>
<p>这个content的样式是这样的：</p>
<blockquote><p>.content{padding-top:1px; background:url(../Images/tree_body.png) repeat-y right -1px scroll;}<br />
.content_in{margin-top:-334px; position:relative;}</p></blockquote>
<p>外面是.content，里面还有一个.content_in，再里面就是一些装饰性的元素（绝对定位的）和内容（相对定位以实现层叠效果）。</p>
<p>这样在火狐中打开一点问题都没有，IE8、IE9RC都没问题，只有在IE7中.content整个隐藏了，但是还占着空间。</p>
<p>后来试了很多方法，去除定位属性，设定left和top属性，给.content和.content_in设置visibility:visible……等等，这些都不起作用。</p>
<p>最后想起一个IE的属性：zoom，试了一下果然行。这个属性可以缩放元素，触发IE中该元素的布局模式（hasLayout），使其有布局结构。</p>
<blockquote><p>在ie中，一个元素要么自己对自身的内容进行计算大小和组织，要么依赖于父元素来计算尺寸和组织内容。当一个元素的 hasLayout属性值为true时，它负责对自己和可能的子孙元素进行<strong>尺寸计算</strong>和<strong>定位</strong>。这意味着这个元素需要花更多的代价来维护自身和里面的内容，而不是依赖于祖先元素来完成这些工作。——《<a title="《认识hasLayout——IE浏览器css bug的一大罪恶根源》" href="http://blog.shellway.cn/goto.php?url=http://ariyue.javaeye.com/blog/512725" target="_blank">认识hasLayout——IE浏览器css bug的一大罪恶根源</a>》</p></blockquote>
<p>---------------------------------------<br />
好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F575&title=IE7%E7%9B%B8%E5%AF%B9%E5%AE%9A%E4%BD%8D%E5%85%83%E7%B4%A0%E4%B8%8D%E6%98%BE%E7%A4%BA%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/575/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Cufon网页字体替换技术</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/js/570</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/js/570#comments</comments>
		<pubDate>Tue, 08 Mar 2011 05:50:47 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[使用]]></category>
		<category><![CDATA[文字替换]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=570</guid>
		<description><![CDATA[在网页设计中，设计师会在设计中加入一些特殊效果的字体以使得页面更加美观，然而访问者的系统一般都是没有安装这些特殊字体的，所以使用font-family属性来定义这些特殊字体是行不通的，于是人们想出了很多解决方案，今天要介绍的是其中之一的Cufon方案。]]></description>
			<content:encoded><![CDATA[<p>在网页设计中，设计师会在设计中加入一些特殊效果的字体以使得页面更加美观，然而访问者的系统一般都是没有安装这些特殊字体的，所以使用font-family属性来定义这些特殊字体是行不通的，于是人们想出了很多解决方案，今天要介绍的是其中之一的Cufon方案。</p>
<p><strong>定义及基本原理</strong></p>
<p>什么是Cufon呢？简单的说，Cufon是一个用来替代sIFR（更早期的一种自定义字体实现方案）框架，实现在网页中对文字字体进行渲染功能的 纯JavaScript开源类库。其基本原理是借助于浏览器所推出的专有页面绘画方案，如 VML、Canvas 和 SVG  等，在网页相关位置上“画”出了所需要显示的文字字符，并同时替换原先区域所需要显示的文字。如果读者所使用的浏览器恰好是Firefox的话，右键单击 经Cufon 渲染的文字，就可以发现这些文字可以按照图片模式进行查看和存储。</p>
<p><strong>简单范例</strong></p>
<p><strong>步骤一：引入Cufon核心库</strong></p>
<p>作为一种基于 JavaScript 的网页字体引入方案， Cufon 的核心功能是通过一个名为“cufon-yui.js”的 JavaScript 类库，提供给开发人员的。因此使用 Cufon 技术的第一步，当然就是在 Web 页面中引入这一类库。首先到<a href="http://blog.shellway.cn/goto.php?url=http://cufon.shoqolate.com/generate/" target="_blank">Cufon网站</a>下载类库文件（最新版本是1.09i），如下图所示：</p>
<p><img src="http://www.blueidea.com/articleimg/2011/02/8307/01.jpg" border="0" alt="" width="510" height="300" /></p>
<p>代码中引入Cufon库，如下所示：</p>
<p>&lt;script type="text/javascript" src="js/cufon-yui.js"&gt;&lt;/script&gt;</p>
<p><strong>步骤二：创建和引入字体文件</strong></p>
<p>这里说的字体文件是Cufon字体文件，这是使用 Cufon 技术的另一个关键所在。什么是 Cufon 字体文件呢？简言之 Cufon  字体文件，就是按照 Cufon 所提出的字体描述标准，创建形成的一种字体文件。而和其他字体创建标准如 TrueType、OpenType  等不同的是，按照 Cufon 标准所形成的这一文件本身，就是一个标准的 JavaScript 脚本文件，并交由 Cufon 类库进行解析和处理。</p>
<p>Cufon为开发人员准备了相应的<a title="Cufon字体在线生成工具" href="http://blog.shellway.cn/goto.php?url=http://cufon.shoqolate.com/generate/" target="_blank">在线工具</a>，来实现这一转换过程。而目前工具所可以转换的字体标准则包括了 TrueType、FreeType2、OpenType、PostScript Font 等多种，应该说这几乎囊括了当前主流的一些字体创建标准。工具的使用其实并不复杂，笔者就不赘述了。</p>
<p><img src="http://www.blueidea.com/articleimg/2011/02/8307/02.jpg" border="0" alt="" width="478" height="355" /></p>
<p>以Denne Shuffle字体为例（<a href="http://blog.shellway.cn/goto.php?url=http://www.cnblogs.com/lhb25/archive/2011/02/19/1958626.html" target="_blank">更多创意字体可见20款非常有趣的高质量免费字体</a>），在使用这一工具产生了相应的 Cufon 标准的字体文件“Denne_Shuffle_400.font.js”后，就可以通过如下代码所示的形式将其引入到页面中：</p>
<p>&lt;script type="text/javascript" src="js/Denne_Shuffle_400.font.js"&gt;&lt;/script&gt;</p>
<p>&nbsp;</p>
<p><strong>步骤三：应用Cufon渲染</strong></p>
<p>在完成了上述的两项准备工作后，使用 Cufon 类库来实现对字体的渲染是非常简单的，这仅仅牵涉到了 Cufon 类库所提供的一个核心方法，即 Cufon.replace 方法，如下代码所示：</p>
<p>&lt;h1&gt;Take me to your heart&lt;/h1&gt;<br />
&lt;script type="text/javascript"&gt;<br />
Cufon.replace("h1");<br />
Cufon.set("fontSize","66px");<br />
Cufon.set("color","red");<br />
&lt;/script&gt;</p>
<p>而与此同时，为了可以更为精确的控制在进行字体渲染时所使用的字体风格，Cufon  还提供了“配置项（Option）”这一概念，来帮助开发者直接在 Cufon  方法中指定相应字体风格值，上述代码后面两项配置了字体大小为66像素，颜色是红色，更多设置可见Cufon的官方文档。示例的完整代码如下：</p>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;<br />
&lt;title&gt;Cufon&lt;/title&gt;<br />
&lt;script type="text/javascript" src="js/cufon-yui.js"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript" src="js/Denne_Shuffle_400.font.js"&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;h1&gt;Take me to your heart&lt;/h1&gt;<br />
&lt;script type="text/javascript"&gt;<br />
Cufon.replace("h1");<br />
Cufon.set("fontSize","66px");<br />
Cufon.set("color","red");<br />
&lt;/script&gt;<br />
&lt;body&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>需要的朋友可以<a href="http://www.blueidea.com/articleimg/2011/02/8307/CufonDemo.zip" target="_blank"><strong>下载Demo</strong></a>，本示例最终效果如下：</p>
<p><img src="http://www.blueidea.com/articleimg/2011/02/8307/03.jpg" border="0" alt="" width="490" height="72" /></p>
<p><strong>优缺点及兼容性</strong></p>
<p>优点：</p>
<ol>
<li>比siFR技术简单100倍</li>
<li>速度快，瞬间执行</li>
<li>不依赖于服务器端语言</li>
</ol>
<p>缺点：</p>
<ol>
<li>依赖于JavaScript</li>
<li>文本无法被选中</li>
<li>无法实现悬停变换效果</li>
</ol>
<p>Cufon技术在主流浏览器中的兼容性情况如下表所示：</p>
<p><img src="http://www.blueidea.com/articleimg/2011/02/8307/11.jpg" border="0" alt="" width="40" height="40" /> 5+  <img src="http://www.blueidea.com/articleimg/2011/02/8307/12.jpg" border="0" alt="" width="40" height="40" />1.5+  <img src="http://www.blueidea.com/articleimg/2011/02/8307/13.jpg" border="0" alt="" width="40" height="37" />1.0+  <img src="http://www.blueidea.com/articleimg/2011/02/8307/14.jpg" border="0" alt="" width="40" height="40" />3.0+  <img src="http://www.blueidea.com/articleimg/2011/02/8307/15.jpg" border="0" alt="" width="40" height="40" />9.5+</p>
<p><strong>总结</strong></p>
<p>总的来说，这种实现自定义字体的方案还是比较简单的，虽然有些不足，但也是一种兼容性相对比较好的方案，个人觉得将来CSS3的@font-face更有可能成为实现网页自定义字体的主要方法。</p>
<p><strong>参考文章</strong>：</p>
<ol>
<li><a href="http://blog.shellway.cn/goto.php?url=http://www.ibm.com/developerworks/cn/web/0911_zhuzh_cufon/" target="_blank">使用 Cufon 渲染网页字体</a></li>
<li><a href="http://blog.shellway.cn/goto.php?url=http://net.tutsplus.com/articles/news/the-easiest-way-to-use-any-font-you-wish/" target="_blank">The Easiest Way to Use Any Font You Wish</a></li>
</ol>
<p><strong>原文</strong>：<a href="http://blog.shellway.cn/goto.php?url=http://www.cnblogs.com/lhb25" target="_blank">http://www.cnblogs.com/lhb25</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fjs%2F570&title=%E4%BD%BF%E7%94%A8Cufon%E7%BD%91%E9%A1%B5%E5%AD%97%E4%BD%93%E6%9B%BF%E6%8D%A2%E6%8A%80%E6%9C%AF" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/js/570/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cufon字体替换对IE9的支持问题</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/js/535</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/js/535#comments</comments>
		<pubDate>Fri, 04 Mar 2011 02:20:28 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[IE9]]></category>
		<category><![CDATA[字体]]></category>
		<category><![CDATA[改进]]></category>
		<category><![CDATA[文字替换]]></category>
		<category><![CDATA[更新]]></category>
		<category><![CDATA[浏览器兼容]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=535</guid>
		<description><![CDATA[我比较好新鲜，前几天装了IE9的更新。
总体来说，IE9的表现还是不错，页面加载速度快了，对标准的支持也多了，还支持HTML5和CSS3的部分功能。
但是当我IE9打开我的博客主页时，我的微软雅黑Cufon字体不见了。当时我吓一跳。
然后我就去官网看他们的更新。http://cufon.shoqolate.com/generate/
发现官网有1.09版的IE9兼容版本1.09i。所以就下载下来用。
果然不错，问题解决了。]]></description>
			<content:encoded><![CDATA[<p>我比较好新鲜，前几天装了IE9的更新。</p>
<p>总体来说，IE9的表现还是不错，页面加载速度快了，对标准的支持也多了，还支持HTML5和CSS3的部分功能。</p>
<p>但是当我IE9打开我的博客主页时，我的微软雅黑Cufon字体不见了。当时我吓一跳。</p>
<p>然后我就去官网看他们的更新。<a title="Cufon官网" href="http://blog.shellway.cn/goto.php?url=http://cufon.shoqolate.com/generate/" target="_blank">http://cufon.shoqolate.com/generate/</a></p>
<p>发现官网有1.09版的IE9兼容版本1.09i。所以就下载下来用。</p>
<p>果然不错，问题解决了。</p>
<p>注意：我们之前生成的字体js文件就不用再次生成了，我们只需要替换<code>cufon-yui.js文件</code>。</p>
<p>&nbsp;</p>
<p>------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fjs%2F535&title=Cufon%E5%AD%97%E4%BD%93%E6%9B%BF%E6%8D%A2%E5%AF%B9IE9%E7%9A%84%E6%94%AF%E6%8C%81%E9%97%AE%E9%A2%98" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/js/535/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE浏览器的CSS识别技术（CSS Hacks）</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/548</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/548#comments</comments>
		<pubDate>Mon, 28 Feb 2011 15:35:01 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[浏览器兼容]]></category>
		<category><![CDATA[浏览器呈现]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=548</guid>
		<description><![CDATA[对于IE各浏览器的兼容性问题，可能很多前端设计师都会为之心烦，甚至想把IE打入十八层地狱。但是回过头来，光烦脑和抱怨是没用的，我们还是要解决这些问题。
大多数情况下，我们可以使用IE版本的条件判断注释语句（在HTML代码中，而非CSS），来区别对待每个IE版本。另外，还有很多其他方法可以针对各IE版本设置元素样式。]]></description>
			<content:encoded><![CDATA[<p>对于IE各浏览器的兼容性问题，可能很多前端设计师都会为之心烦，甚至想把IE打入十八层地狱。但是回过头来，光烦脑和抱怨是没用的，我们还是要解决这些问题。</p>
<p>大多数情况下，我们可以使用IE版本的条件判断注释语句（在<span style="color: #0000ff;"><strong>HTML代码</strong></span>中，而非CSS），来区别对待每个IE版本。另外，还有很多其他方法可以针对各IE版本设置元素样式。</p>
<h3>1. IE条件判断语句</h3>
<p>修复各IE版本Bug最常用的方法就是用条件判断语句。如下为针对各版本的示例代码：</p>
<ul>
<li><code>&lt;!--[if IE 8]&gt;</code> = IE8</li>
<li><code>&lt;!--[if lt IE 8]&gt;</code> = IE7及更低版本</li>
<li><code>&lt;!--[if gte IE 8]&gt;</code> = IE8及更高版本</li>
</ul>
<pre><code>&lt;!--[if IE 8]&gt;
&lt;style type="text/css"&gt;
	/* 这里放IE 8的CSS代码 */
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if lt IE 8]&gt;
	&lt;link href="ie7.css" rel="stylesheet" type="text/css" /&gt;
&lt;![endif]--&gt;</code></pre>
<h3><em></em>2. 针对各IE版本的CSS规则(IE CSS hacks)</h3>
<p>另一种方法就是定义仅IE一些版本可以识别的CSS规则。如在CSS规则属性名前添加星号<code>（*</code>）以使规则仅运用于IE7及更低版本，而下划线则针对IE6。这些方法不是正确的CSS语法，不到万不得已的情况，一般不推荐随便使用。</p>
<ul>
<li><strong>IE8 or below</strong>: 在规则语句末尾，结束分号（;）之前添加反斜杠和数字9 <code>（\9）；</code></li>
<li><strong>IE7 or below</strong>: 在CSS属性名称前加英文的星号<code>（*</code>）；</li>
<li><strong>IE6</strong>: 在CSS属性名称前加英文下划线（<code>_</code>）。</li>
</ul>
<pre><code>.box {

	background: gray; /* 标准的规则定义 */

	background: pink<strong>\9</strong>; /* IE 8及更低版本 */

	<strong>*</strong>background: green; /* IE 7 </code><code>及更低版本</code><code> */

	<strong>_</strong>background: blue; /* IE 6 */

}
</code></pre>
<h3><em></em>3. 条件判断中的HTML元素类（Class）</h3>
<p>第三种方法是<a href="http://blog.shellway.cn/goto.php?url=http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">Paul Irish</a>发明的，为&lt;html /&gt;标签添加带IE版本号的CSS类，然后用条件判断语句将元素分别添加各版本的CSS规则。此方法优点是明显的，不会导至W3C验证错误。</p>
<pre><code>&lt;!--[if lt IE 7 ]&gt; &lt;html class="lt-ie7"&gt; &lt;![endif]--&gt;
&lt;!--[if IE 7 ]&gt; &lt;html</code><code> class="ie7"</code><code>&gt; &lt;![endif]--&gt;
&lt;!--[if IE 8 ]&gt; &lt;html</code><code> class="ie8"</code><code>&gt; &lt;![endif]--&gt;
&lt;!--[if IE 9 ]&gt; &lt;html</code><code> class="ie8"</code><code>&gt; &lt;![endif]--&gt;
&lt;!--[if (gt IE 9)|!(IE)]&gt;&lt;!--&gt; &lt;html class="gt-ie9"&gt; &lt;!--&lt;![endif]--&gt;</code></pre>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F548&title=IE%E6%B5%8F%E8%A7%88%E5%99%A8%E7%9A%84CSS%E8%AF%86%E5%88%AB%E6%8A%80%E6%9C%AF%EF%BC%88CSS+Hacks%EF%BC%89" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/548/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>忘</title>
		<link>http://blog.shellway.cn/index.php/logs/545</link>
		<comments>http://blog.shellway.cn/index.php/logs/545#comments</comments>
		<pubDate>Fri, 25 Feb 2011 04:06:00 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[日志]]></category>
		<category><![CDATA[活着]]></category>
		<category><![CDATA[生存状态]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/index.php/logs/545</guid>
		<description><![CDATA[忘，乐不思蜀 忘了头上还有一片天 还忘了脚下有一方土 过去的所做所为我分不清好坏 过去的光阴流水我记不清年代 忘了老崔的歌 忘了那股劲从何而来 忘了生活并不只是活着 手机发布  ]]></description>
			<content:encoded><![CDATA[<p>忘，乐不思蜀<br />
忘了头上还有一片天<br />
还忘了脚下有一方土</p>
<p>过去的所做所为我分不清好坏<br />
过去的光阴流水我记不清年代</p>
<p>忘了老崔的歌<br />
忘了那股劲从何而来<br />
忘了生活并不只是活着<br />
手机发布<br />
	 </p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2F545&title=%E5%BF%98" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/545/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.1版发布，添加十大新功能</title>
		<link>http://blog.shellway.cn/index.php/wordpress/536</link>
		<comments>http://blog.shellway.cn/index.php/wordpress/536#comments</comments>
		<pubDate>Thu, 24 Feb 2011 12:07:57 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[新功能]]></category>
		<category><![CDATA[新版本]]></category>
		<category><![CDATA[更新]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=536</guid>
		<description><![CDATA[Wordpress 3.1发布于2011年02月23日发布。期待已久的WP稳定版本终于有较大更新。
此次更新添加了不少新功能，也做了不少UI界面方面的改进。]]></description>
			<content:encoded><![CDATA[<p>WordPress 3.1发布于2011年02月23日发布。期待已久的WP稳定版本终于有较大更新。</p>
<p>此次更新添加了不少新功能，也做了不少UI界面方面的改进。</p>
<ol>
<li><strong>内部链接</strong>：3.1版本在撰写文章是可以通过“内部链接”功能链接已有的文章或者页面，我们再也不用到网站中去找了。</li>
<li><strong>管理工具条</strong>：包含大量便于切换到某一管理页面的链接。此工具条在用户登录博客后在前台页面显示（如文后图）。</li>
<li><strong>流线型写作界面</strong>：新装WP的用户会发现撰写文章页面比之前的简洁了很多。更多的选项默认就隐藏起来了，我们可以点击右上角的显示选项来开启这些隐藏选项。</li>
<li><strong>文章格式</strong>：可以被用于文章自定义字段的元信息。详情请参考 <a title="Post Formats" href="http://blog.shellway.cn/goto.php?url=http://codex.wordpress.org/Post_Formats">Post Formats</a>。</li>
<li><strong>网络管理</strong>：常规管理界面中的主站管理菜单和相关页面被迁移到新的网络管理界面了。</li>
<li><strong>列表形式的管理界面</strong>：为列表式的界面和更好的分页提供可排序列。</li>
<li><strong>导入/导出检查</strong>：很多新功能都隐藏在主要更新中，包括：添加作者信息、更好地处理分类和标签，导航菜单的适当支持。</li>
<li>改进了<strong>自定义内容类型</strong>：允许开发人员生成存档页，更好地控制菜单及其性能。详情请参考<a title="Post Types" href="http://blog.shellway.cn/goto.php?url=http://codex.wordpress.org/Post_Types">Post Types</a>。</li>
<li><strong>高级查询</strong>：允许开发人员查询多个分类及自定义字段。</li>
<li><strong>后台主题翻新</strong>：帮助您将注意力集中在您关心的内容上。</li>
</ol>
<p>除了这十大新功能，此次更新还有以下改进：</p>
<ul>
<li>改进了主题搜索和浏览；</li>
<li>改进了主题删除的过程；</li>
<li>新的模板文件：archive-{post_type}.php，便于自定义文章类型；</li>
<li>登录页面优化；</li>
<li>主题和插件开发的很多优化；</li>
<li>……</li>
</ul>
<div id="attachment_543" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/02/WordPress3.1-admin-bar.jpg"><img class="size-medium wp-image-543" title="WordPress3.1-admin-bar" src="http://blog.shellway.cn/wp-content/uploads/2011/02/WordPress3.1-admin-bar-600x302.jpg" alt="WordPress3.1中新增的“管理工具条”" width="600" height="302" /></a><p class="wp-caption-text">WordPress3.1中新增的“管理工具条”</p></div>
<p>---------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fwordpress%2F536&title=Wordpress+3.1%E7%89%88%E5%8F%91%E5%B8%83%EF%BC%8C%E6%B7%BB%E5%8A%A0%E5%8D%81%E5%A4%A7%E6%96%B0%E5%8A%9F%E8%83%BD" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/wordpress/536/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jPlayer 2 播放器示例集合</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/js/509</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/js/509#comments</comments>
		<pubDate>Fri, 11 Feb 2011 06:49:24 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jPlayer]]></category>
		<category><![CDATA[jQuery1.4]]></category>
		<category><![CDATA[影音播放]]></category>
		<category><![CDATA[示例]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=509</guid>
		<description><![CDATA[jPlayer 2.0.0 示例集合]]></description>
			<content:encoded><![CDATA[<p>本集合示例源自jPlayer官方，希望对大家开发有帮助。后面我还会抽空做几个播放器主题出来show一下。</p>
<div style="width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #cccccc;">
<h4>Demo 01</h4>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-01.htm">demo-01.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-01-solution-flash-html.htm">demo-01-solution-flash-html.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-01-supplied-mp3.htm">demo-01-supplied-mp3.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-01-video.htm">demo-01-video.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-01-video-solution-flash-html.htm">demo-01-video-solution-flash-html.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-01-video-supplied-m4v.htm">demo-01-video-supplied-m4v.htm</a></p>
<h4>Demo 02</h4>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-02.htm">demo-02.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-02-media.htm">demo-02-media.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-02-media-solution-flash-html.htm">demo-02-media-solution-flash-html.htm</a></p>
<h4>Demo 03</h4>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-03.htm">demo-03.htm</a></p>
<p><a href="http://blog.shellway.cn/tools/jplayer2-demos/demo-03-video.htm">demo-03-video.htm</a></p>
<hr />
<p style="font-size: 12px; color: #666;">* 本资料仅供学习使用，最终版权归<a title="jPlayer官网" href="http://blog.shellway.cn/goto.php?url=http://www.jplayer.org" target="_blank">jPlayer官方</a>所有。</p>
</div>
<p>--------------------------------<br />
好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fjs%2F509&title=jPlayer+2+%E6%92%AD%E6%94%BE%E5%99%A8%E7%A4%BA%E4%BE%8B%E9%9B%86%E5%90%88" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/js/509/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无端责备就是不善解人意</title>
		<link>http://blog.shellway.cn/index.php/logs/weekly-log/506</link>
		<comments>http://blog.shellway.cn/index.php/logs/weekly-log/506#comments</comments>
		<pubDate>Thu, 27 Jan 2011 09:58:00 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[每周一句]]></category>
		<category><![CDATA[博客日志]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=506</guid>
		<description><![CDATA[“无端责备”就是不“善解人意”。]]></description>
			<content:encoded><![CDATA[<p>“无端责备”就是不“善解人意”。</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2Fweekly-log%2F506&title=%E6%97%A0%E7%AB%AF%E8%B4%A3%E5%A4%87%E5%B0%B1%E6%98%AF%E4%B8%8D%E5%96%84%E8%A7%A3%E4%BA%BA%E6%84%8F" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/weekly-log/506/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>性感的HTML5图标</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/498</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/498#comments</comments>
		<pubDate>Wed, 26 Jan 2011 07:37:19 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[新图标]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=498</guid>
		<description><![CDATA[HTML5图标真是太帅了。
想要显示一下你的网站是多么先进吗？来添加HTML5图标吧。哈哈]]></description>
			<content:encoded><![CDATA[<div id="attachment_499" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/01/1-26-2011-3-23-48-PM.png"><img class="size-medium wp-image-499" title="HTML5新Logo" src="http://blog.shellway.cn/wp-content/uploads/2011/01/1-26-2011-3-23-48-PM-600x402.png" alt="HTML5新Logo" width="600" height="402" /></a><p class="wp-caption-text">HTML5新Logo</p></div>
<p>HTML5图标真是太帅了。</p>
<p>想要显示一下你的网站是多么先进吗？来添加HTML5图标吧。哈哈</p>
<p>不过本博客比较菜，没有用多少HTML5。希望以后可以多多使用到这个新技术。</p>
<p><strong>这是横排的HTML5图标：</strong><br />
<a href="http://blog.shellway.cn/goto.php?url=http://www.w3.org/html/logo/"><br />
<img title="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics" src="http://www.w3.org/html/logo/badge/html5-badge-h-css3-multimedia-semantics.png" alt="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics" width="197" height="64" /><br />
</a></p>
<p><strong>这是竖排的HTML5图标：</strong><br />
<a href="http://blog.shellway.cn/goto.php?url=http://www.w3.org/html/logo/"><br />
<img title="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics" src="http://www.w3.org/html/logo/badge/html5-badge-v-css3-multimedia-semantics.png" alt="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics" width="38" height="170" /><br />
</a></p>
<p>--------------------------------------</p>
<h4>HTML5简介：</h4>
<blockquote><p>HTML5为HTML标准的最新版本，它提供了：</p>
<ol>
<li>视频（&lt;video/&gt;）、音乐（&lt;audio/&gt;）等多媒体的实现标签；</li>
<li>为HTML实现画图提供了强大的支持（&lt;canvas/&gt;）；</li>
<li>多种新的属性（是否可拖放、内容是否可编辑、上下文菜单）和事件（拖放、鼠标滚动、页面的滚动显示隐藏等）；</li>
<li>本地大数据的存储（使用localStorage和sessionStorage对数据进行存储）；</li>
<li>新的特殊区块标签，如：header、nav、footer、article、section等；</li>
<li>多种新的表单控件，如：calendar、date、time、email、url、search等。</li>
<li>头部DTD更简单，只要&lt;!DOCTYPE HTML&gt;这几个字符就完事；</li>
</ol>
</blockquote>
<p>--------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F498&title=%E6%80%A7%E6%84%9F%E7%9A%84HTML5%E5%9B%BE%E6%A0%87" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/498/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shellway祝大家：新春快乐，万事如意！</title>
		<link>http://blog.shellway.cn/index.php/logs/weekly-log/494</link>
		<comments>http://blog.shellway.cn/index.php/logs/weekly-log/494#comments</comments>
		<pubDate>Mon, 24 Jan 2011 07:14:54 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[每周一句]]></category>
		<category><![CDATA[博客日志]]></category>
		<category><![CDATA[春节]]></category>
		<category><![CDATA[祝福]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=494</guid>
		<description><![CDATA[Shellway祝大家： 新春快乐 万事如意 身体安康 财源滚滚！]]></description>
			<content:encoded><![CDATA[<h4><span style="color: #ff0000;">Shellway祝大家：</span></h4>
<p><span style="color: #ff0000;">新春快乐<br />
万事如意<br />
身体安康<br />
财源滚滚！</span></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2Fweekly-log%2F494&title=Shellway%E7%A5%9D%E5%A4%A7%E5%AE%B6%EF%BC%9A%E6%96%B0%E6%98%A5%E5%BF%AB%E4%B9%90%EF%BC%8C%E4%B8%87%E4%BA%8B%E5%A6%82%E6%84%8F%EF%BC%81" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/weekly-log/494/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery轻松实现导航菜单的滚动效果</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/js/491</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/js/491#comments</comments>
		<pubDate>Fri, 21 Jan 2011 02:39:44 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery1.4]]></category>
		<category><![CDATA[前端优化]]></category>
		<category><![CDATA[导航菜单]]></category>
		<category><![CDATA[效果]]></category>
		<category><![CDATA[滚动]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=491</guid>
		<description><![CDATA[当你滚动页面时，jQuery会动态修改导航菜单和相关元素的css属性，将导航条绝对定位并设置与页面滚动高度对比后的top属性，导航条就会在浏览器窗口顶部出现了。效果如本站导航菜单所示。]]></description>
			<content:encoded><![CDATA[<p>本站导航条可以跟随滚动条滚动啦。</p>
<p>使用jQuery可以轻松实现。</p>
<p>当你滚动页面时，jQuery会动态修改导航菜单和相关元素的css属性，将导航条绝对定位并设置与页面滚动高度对比后的top属性，导航条就会在浏览器窗口顶部出现了。效果如本站导航菜单所示。</p>
<p>HTML结构如下：</p>
<blockquote><p>&lt;div id="wrapper"&gt;<br />
...<br />
&lt;div id="header"&gt;...&lt;/div&gt;<br />
...<br />
&lt;/div&gt;</p></blockquote>
<p>Javascript代码如下：</p>
<blockquote><p>if($(window).scrollTop() &gt; 100){<br />
$('#wrapper').css({'position': 'relative', 'overflow': 'visible'});<br />
$('#header').css({'position': 'absolute', 'top': $(window).scrollTop()-20, 'z-index':'999', 'overflow': 'visible', 'width': '977px'});<br />
}else{<br />
$('#wrapper').removeAttr('style');<br />
$('#header').removeAttr('style');<br />
}</p></blockquote>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fjs%2F491&title=jQuery%E8%BD%BB%E6%9D%BE%E5%AE%9E%E7%8E%B0%E5%AF%BC%E8%88%AA%E8%8F%9C%E5%8D%95%E7%9A%84%E6%BB%9A%E5%8A%A8%E6%95%88%E6%9E%9C" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/js/491/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>检查您的浏览器是否支持HTML5视频功能</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/473</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/473#comments</comments>
		<pubDate>Wed, 19 Jan 2011 11:14:33 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[CSS & XHTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[检测]]></category>
		<category><![CDATA[视频]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=473</guid>
		<description><![CDATA[检查您的浏览器是否支持HTML5视频功能]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">// < ![CDATA[
function checkVideo() { if(!!document.createElement('video').canPlayType)   {   var vidTest=document.createElement("video");   oggTest=vidTest.canPlayType('video/ogg; codecs="theora, vorbis"');   if (!oggTest)     {     h264Test=vidTest.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');     if (!h264Test)       {       document.getElementById("checkVideoResult").innerHTML="哦哦，您的浏览器OUT了，不支持HTML5视频哦！"       }     else       {       if (h264Test=="probably")         {         document.getElementById("checkVideoResult").innerHTML="好耶，您的浏览器支持HTML5全部的视频功能！";         }       else         {         document.getElementById("checkVideoResult").innerHTML="哈，还好，您的浏览器支持HTML5部分视频功能！";         }       }     }   else     {     if (oggTest=="probably")       {       document.getElementById("checkVideoResult").innerHTML="好耶，您的浏览器支持HTML5全部的视频功能！";       }     else       {       document.getElementById("checkVideoResult").innerHTML="哈，还好，您的浏览器支持HTML5部分视频功能！";       }     }   } else   {   document.getElementById("checkVideoResult").innerHTML="哦哦，您的浏览器OUT了，不支持HTML5视频哦！"   } }
// ]]&gt;</script></p>
<table border="0">
<tbody>
<tr>
<th></th>
<th>IE 8</th>
<th>Firefox 3.5</th>
<th>Opera 10.5</th>
<th>Chrome 3.0</th>
<th>Safari 3.0</th>
</tr>
<tr>
<td>Ogg</td>
<td></td>
<td>√</td>
<td>√</td>
<td>√</td>
<td></td>
</tr>
<tr>
<td>MPEG 4</td>
<td></td>
<td></td>
<td></td>
<td>√</td>
<td>√</td>
</tr>
</tbody>
</table>
<p>检查您的浏览器是否支持HTML5视频功能，点击下面的按钮：</p>
<div id="checkVideoResult" style="margin: 10px 0 20px 0; border: 0; padding: 0; font-size: 16px; font-weight: bold;"><button style="font-family: Arial, Helvetica, sans-serif;" onclick="checkVideo()">Check</button></div>
<h3>&lt;video&gt; 标签的属性</h3>
<table border="0">
<tbody>
<tr>
<th>属性</th>
<th>值</th>
<th>描述</th>
</tr>
<tr>
<td>autoplay</td>
<td>autoplay</td>
<td>如果出现该属性，则视频在就绪后马上播放。</td>
</tr>
<tr>
<td>controls</td>
<td>controls</td>
<td>如果出现该属性，则向用户显示控件，比如播放按钮。</td>
</tr>
<tr>
<td>height</td>
<td><em>pixels</em></td>
<td>设置视频播放器的高度。</td>
</tr>
<tr>
<td>loop</td>
<td>loop</td>
<td>如果出现该属性，则当媒介文件完成播放后再次开始播放。</td>
</tr>
<tr>
<td>preload</td>
<td>preload</td>
<td>如果出现该属性，则视频在页面加载时进行加载，并预备播放。</p>
<p>如果使用 "autoplay"，则忽略该属性。</td>
</tr>
<tr>
<td>src</td>
<td><em>url</em></td>
<td>要播放的视频的 URL。</td>
</tr>
<tr>
<td>width</td>
<td><em>pixels</em></td>
<td>设置视频播放器的宽度。</td>
</tr>
</tbody>
</table>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fcss-xhtml%2F473&title=%E6%A3%80%E6%9F%A5%E6%82%A8%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81HTML5%E8%A7%86%E9%A2%91%E5%8A%9F%E8%83%BD" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/css-xhtml/473/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何解决Fengoffice报表导出CSV或PDF中文乱码问题？</title>
		<link>http://blog.shellway.cn/index.php/fengoffice/463</link>
		<comments>http://blog.shellway.cn/index.php/fengoffice/463#comments</comments>
		<pubDate>Sat, 15 Jan 2011 02:39:32 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Feng Office专题]]></category>
		<category><![CDATA[Feng Office]]></category>
		<category><![CDATA[中文]]></category>
		<category><![CDATA[乱码]]></category>
		<category><![CDATA[开源OA]]></category>
		<category><![CDATA[报表导出]]></category>
		<category><![CDATA[改进]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=463</guid>
		<description><![CDATA[前一段时间有群友报Fengoffice报表导出CSV或PDF中文乱码问题。当时我在QQ群（41542825）中有说一下，原因在于 Fengoffice的默认编码是欧码（ISO-8859-1，一般称Latin-1或者“西欧语言”），改成万国码（UTF-8）的就好了。]]></description>
			<content:encoded><![CDATA[<p>前一段时间有群友报<a title="Fengoffice专题" href="http://blog.shellway.cn/index.php/categories/fengoffice" target="_blank">Fengoffice</a>报表导出CSV或PDF中文乱码问题。当时我在QQ群（41542825）中有说一下，原因在于<a title="Fengoffice专题" href="../index.php/categories/fengoffice" target="_blank">Fengoffice</a>的默认编码是欧码（ISO-8859-1，一般称Latin-1或者“西欧语言”），改成万国码（UTF-8）的就好了。</p>
<p>在<a title="Fengoffice专题" href="../index.php/categories/fengoffice" target="_blank">Fengoffice</a>中具体有多少文件的输出使用了其默认的欧码，<a title="Shellway博客" href="http://blog.shellway.cn">Shellway</a>未曾一一查看，请大家举一反三，一般用IDE（Eclipse）或者简单的代码编辑器（如UltraEdit）在<a title="Fengoffice专题" href="../index.php/categories/fengoffice" target="_blank">Fengoffice</a>安装目录中全局查找“ISO-8859-1”，就能很容易地找出来。</p>
<p>关于报表中文乱码问题，我们只需要修改下面这个文件：</p>
<p>\application\controllers\ReportingController.class.php</p>
<p>第一个欧码是在第515行，替换成UTF-8编码就好了，其他同此。修改方法如下图：</p>
<div id="attachment_464" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/01/fengoffice-report-export-encoding-zh-cn.png"><img class="size-medium wp-image-464" title="fengoffice-report-export-encoding-zh-cn" src="http://blog.shellway.cn/wp-content/uploads/2011/01/fengoffice-report-export-encoding-zh-cn-600x386.png" alt="Fengoffice报表导出编码修改成UTF-8" width="600" height="386" /></a><p class="wp-caption-text">Fengoffice报表导出编码修改成UTF-8</p></div>
<p>-------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Ffengoffice%2F463&title=%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3Fengoffice%E6%8A%A5%E8%A1%A8%E5%AF%BC%E5%87%BACSV%E6%88%96PDF%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98%EF%BC%9F" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/fengoffice/463/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>开源个人相册管理平台——ZenPhoto</title>
		<link>http://blog.shellway.cn/index.php/logs/share/456</link>
		<comments>http://blog.shellway.cn/index.php/logs/share/456#comments</comments>
		<pubDate>Fri, 14 Jan 2011 02:55:18 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[快乐分享]]></category>
		<category><![CDATA[PHP开源]]></category>
		<category><![CDATA[zenphoto]]></category>
		<category><![CDATA[个人相册]]></category>
		<category><![CDATA[实用]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=456</guid>
		<description><![CDATA[ZenPhoto是一款小巧的相册软件，基于PHP+MySQL构建，另需GD库支持。

ZenPhoto安装方便，扩展性强，可轻易安装各类模版及插件，并可与 Wordpress整合。具备RSS输出、FTP上传方式、Tag功能、评论回复等功能。除了能存放图片外，ZenPhoto还支持FLV及WMV视频。

最新版本：ZenPhoto1.4，于2011年1月2日发布。]]></description>
			<content:encoded><![CDATA[<div id="attachment_457" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/01/zenphoto-images-customthumbcrop.jpg"><img class="size-medium wp-image-457" title="zenphoto-images-customthumbcrop" src="http://blog.shellway.cn/wp-content/uploads/2011/01/zenphoto-images-customthumbcrop-600x428.jpg" alt="Zenphoto的后台界面和缩略图生成工具" width="600" height="428" /></a><p class="wp-caption-text">Zenphoto的后台界面和缩略图生成工具</p></div>
<p>ZenPhoto是一款小巧的相册软件，基于PHP+MySQL构建，另需GD库支持。</p>
<p>ZenPhoto安装方便，扩展性强，可轻易安装各类模版及插件，并可与  WordPress整合。具备RSS输出、FTP上传方式、Tag功能、评论回复等功能。除了能存放图片外，ZenPhoto还支持FLV及WMV视频。</p>
<p>最新版本：ZenPhoto1.4，于2011年1月2日发布。</p>
<p>官方网址：http://www.zenphoto.org/</p>
<p>Demo：http://www.zenphoto.org/zenphoto</p>
<p>-----------------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Flogs%2Fshare%2F456&title=%E5%BC%80%E6%BA%90%E4%B8%AA%E4%BA%BA%E7%9B%B8%E5%86%8C%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0%E2%80%94%E2%80%94ZenPhoto" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/logs/share/456/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery强悍插件之jPlayer：在线影音播放器</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/js/445</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/js/445#comments</comments>
		<pubDate>Wed, 12 Jan 2011 13:19:59 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jPlayer]]></category>
		<category><![CDATA[jQuery1.4]]></category>
		<category><![CDATA[强悍]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=445</guid>
		<description><![CDATA[jPlayer是个很强悍的jQuery插件，目前版本已到2.0.0，发布时间：2010年12月20日。
jPlayer到目前这个版本已经拥有丰富的API，可以轻松定制播放器界面。]]></description>
			<content:encoded><![CDATA[<div id="attachment_446" class="wp-caption aligncenter" style="width: 514px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/01/jPlayer-video.png"><img class="size-full wp-image-446" title="jPlayer-video" src="http://blog.shellway.cn/wp-content/uploads/2011/01/jPlayer-video.png" alt="jPlayer视频播放器" width="504" height="440" /></a><p class="wp-caption-text">jPlayer视频播放器</p></div>
<div id="attachment_447" class="wp-caption aligncenter" style="width: 450px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/01/jPlayer-audio.png"><img class="size-full wp-image-447" title="jPlayer-audio" src="http://blog.shellway.cn/wp-content/uploads/2011/01/jPlayer-audio.png" alt="jPlayer音频播放器" width="440" height="384" /></a><p class="wp-caption-text">jPlayer音频播放器</p></div>
<p>jPlayer是个很强悍的jQuery插件，目前版本已到2.0.0，发布时间：2010年12月20日。</p>
<p>jPlayer到目前这个版本已经拥有丰富的API，可以轻松定制播放器界面。</p>
<p>插件主页：http://www.jplayer.org</p>
<p><strong>主要功能：</strong></p>
<ul>
<li>在您的网页中<strong>控制播放媒体文件</strong>；</li>
<li>仅需HTML和CSS知识就可以<strong>轻松定制播放器外观</strong>；</li>
<li>将影音文件添加到您的jQuery项目中；</li>
<li>可以使用 <strong>HTML5，支持更多设备</strong>；</li>
<li>使用Flash可以兼容旧版本浏览器；<strong> </strong></li>
<li>使用JavaScript API轻松控制多媒体播放；</li>
</ul>
<p>jPlayer支持的多媒体类型：</p>
<ul>
<li><strong>HTML5:</strong> mp3, m4a (AAC), m4v (H.264), ogv*, oga*, wav*, webm*</li>
<li><strong>Flash:</strong> mp3, m4a (AAC), m4v (H.264)</li>
</ul>
<p>标“*”的是为兼容HTML5的浏览器提供的可选格式。</p>
<p>jPlayer兼容的浏览器及系统：</p>
<ul>
<li><strong>Windows:</strong> Firefox, Chrome, Opera, Safari, IE6, IE7, IE8, IE9 beta</li>
<li><strong>OS X:</strong> Firefox, Chrome, Opera, Safari</li>
<li><strong>iOS:</strong> Mobile Safari: iPad, iPhone, iPod Touch</li>
<li>Android: 待测试</li>
</ul>
<p>jPlayer需要js类库jQuery 1.3.2以上版本；</p>
<p>Demo:</p>
<div id="jpId">player:</div>
<p><script src="http://blog.shellway.cn/tools/jplayer-2.0/js/jquery.jplayer.min.js" type="text/javascript"></script> <script type="text/javascript">// < ![CDATA[
$(function() {
  $("#jpId").jPlayer({
    ready: function () {
      $(this).jPlayer("setMedia", {
        mp3: "http://blog.shellway.cn/tools/jplayer-2.0/mp3/02Fame.mp3"
      }).jPlayer("play");
    },
    supplied: "mp3",
    swfPath: "http://blog.shellway.cn/tools/jplayer-2.0/js"
  });
});
// ]]&gt;</script></p>
<p>-----------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fjs%2F445&title=jQuery%E5%BC%BA%E6%82%8D%E6%8F%92%E4%BB%B6%E4%B9%8BjPlayer%EF%BC%9A%E5%9C%A8%E7%BA%BF%E5%BD%B1%E9%9F%B3%E6%92%AD%E6%94%BE%E5%99%A8" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/js/445/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.shellway.cn/tools/jplayer-2.0/mp3/02Fame.mp3" length="8253451" type="audio/mpeg" />
		</item>
		<item>
		<title>如何使WordPress支持中文标签链接</title>
		<link>http://blog.shellway.cn/index.php/wordpress/443</link>
		<comments>http://blog.shellway.cn/index.php/wordpress/443#comments</comments>
		<pubDate>Wed, 12 Jan 2011 12:39:34 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[中文支持]]></category>
		<category><![CDATA[中文标签]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=443</guid>
		<description><![CDATA[产生中文tag链接提示无法打开或者找不到博客文章的原因在于WordPress默认是不支持中文URI编码的。那我们就需要强制让WordPress能支持中文的编码形式，即UTF-8和GBK编码。]]></description>
			<content:encoded><![CDATA[<p>产生中文tag链接提示无法打开或者找不到博客文章的原因在于WordPress默认是不支持中文URI编码的。那我们就需要强制让WordPress能支持中文的编码形式，即UTF-8和GBK编码。</p>
<p>修改方法如下：<br />
首先修改WP-include中的classes.php文件（用记事本或者其他更强的编辑器打开），将第47行和第52行代码进行修改。</p>
<blockquote><p>第47行原代码：<br />
<code>$pathinfo = $_SERVER['PATH_INFO'];</code></p>
<p>替换为：<br />
<code>$pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'], "UTF-8", "GBK");</code></p>
<p>第52行原代码：<br />
<code>$req_uri = $_SERVER['REQUEST_URI'];</code></p>
<p>替换为：<br />
<code>$req_uri = mb_convert_encoding($_SERVER['REQUEST_URI'], "UTF-8", "GBK");</code></p></blockquote>
<p>修改后，保存，然后上传新的classes.php文件覆盖原文件即可。</p>
<p>------------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fwordpress%2F443&title=%E5%A6%82%E4%BD%95%E4%BD%BFWordPress%E6%94%AF%E6%8C%81%E4%B8%AD%E6%96%87%E6%A0%87%E7%AD%BE%E9%93%BE%E6%8E%A5" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/wordpress/443/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>本站使用Cufon文字替换技术</title>
		<link>http://blog.shellway.cn/index.php/web-frontend/js/435</link>
		<comments>http://blog.shellway.cn/index.php/web-frontend/js/435#comments</comments>
		<pubDate>Mon, 10 Jan 2011 06:21:21 +0000</pubDate>
		<dc:creator>Shellway</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[快乐分享]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[中文支持]]></category>
		<category><![CDATA[字体]]></category>
		<category><![CDATA[微软雅黑]]></category>
		<category><![CDATA[文字替换]]></category>

		<guid isPermaLink="false">http://blog.shellway.cn/?p=435</guid>
		<description><![CDATA[由于中文字体支持问题，本站的cufon功能一直没有开启。
近来有空，搜索了一下“cufon中文支持”，无意中找到了一个强悍的角落，呵呵
不过只有“微软雅黑”字体。
http://www.cycoo.net/demo/cufon/demo_cn.htm]]></description>
			<content:encoded><![CDATA[<div id="attachment_436" class="wp-caption aligncenter" style="width: 542px"><a href="http://blog.shellway.cn/wp-content/uploads/2011/01/cufon-font-replacement-for-zh-cn.png"><img class="size-full wp-image-436" title="cufon-font-replacement-for-zh-cn" src="http://blog.shellway.cn/wp-content/uploads/2011/01/cufon-font-replacement-for-zh-cn.png" alt="cufon中文雅黑替换效果" width="532" height="495" /></a><p class="wp-caption-text">cufon中文雅黑替换效果</p></div>
<p>由于中文字体支持问题，本站的cufon功能一直没有开启。<br />
近来有空，搜索了一下“cufon中文支持”，无意中找到了一个强悍的角落，呵呵<br />
不过只有“微软雅黑”字体。</p>
<p>http://www.cycoo.net/demo/cufon/demo_cn.htm</p>
<p>我于是查看源码，直接下载字体js，1.28M，虽然大了点，但是如果替换内容不多，国内访问的话，速度影响还是可以接受的。<br />
于是下载了，传到我空间。<br />
<strong>字体js下载地址：</strong>http://www.cycoo.net/demo/cufon/Microsoft_YaHei_400.font.js</p>
<p>终于可以cufon了，效果就如你看到的本站文章标题那样。</p>
<p>--------------------------------------</p>
<p>好好学习，天天向上</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fblog.shellway.cn%2Findex.php%2Fweb-frontend%2Fjs%2F435&title=%E6%9C%AC%E7%AB%99%E4%BD%BF%E7%94%A8Cufon%E6%96%87%E5%AD%97%E6%9B%BF%E6%8D%A2%E6%8A%80%E6%9C%AF" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shellway.cn/index.php/web-frontend/js/435/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
