<?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>mocreative</title>
	<atom:link href="http://mocreative.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://mocreative.net</link>
	<description>移动web设计</description>
	<lastBuildDate>Wed, 07 Jul 2010 16:08:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Symbian 3 PDK 3.0</title>
		<link>http://mocreative.net/news/symbian-3-pdk-3-0/</link>
		<comments>http://mocreative.net/news/symbian-3-pdk-3-0/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:08:17 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[新闻]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=61</guid>
		<description><![CDATA[
基于Symbian3的产品开发包（PDK）已经可以下载了。这个PDK包含了完整的Symbian3系统，让你使用新的功能，也有一个全新的主题“Fresh”。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://mocreative.net/wp-content/uploads/180px-S3_Homescreen.png" class="liimagelink"><img class="alignnone size-full wp-image-62" title="180px-S3_Homescreen" src="http://mocreative.net/wp-content/uploads/180px-S3_Homescreen.png" alt="" width="180" height="320" /></a></p>
<p>基于Symbian3的产品开发包（PDK）已经可以<a href="http://developer.symbian.org/main/tools_and_kits/downloads/view.php?id=5" class="liexternal">下载</a>了。这个PDK包含了完整的Symbian3系统，让你使用新的功能，也有一个全新的主题<a href="http://developer.symbian.org/wiki/index.php/PDK_3.0.0_Release_Notes#Symbian_UI_Theme" class="liexternal">“Fresh”</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/news/symbian-3-pdk-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QQREADER216EEE5FE74A2F54</title>
		<link>http://mocreative.net/news/qqreader216eee5fe74a2f54/</link>
		<comments>http://mocreative.net/news/qqreader216eee5fe74a2f54/#comments</comments>
		<pubDate>Thu, 20 May 2010 21:24:43 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[新闻]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=60</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/news/qqreader216eee5fe74a2f54/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>诺基亚开发者论坛：跨浏览器指南</title>
		<link>http://mocreative.net/news/cross-browser-guidlines/</link>
		<comments>http://mocreative.net/news/cross-browser-guidlines/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 01:04:34 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[设计]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[用户体验]]></category>
		<category><![CDATA[设备侦测]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=58</guid>
		<description><![CDATA[Forum Nokia发布了一个关于浏览器兼容的文档。描述了如何为iPhone、Maemo、Android和部分S60触摸设备优化自己的网站。里面有很多有用的小提示和建议值得参考。另外，压缩包内还提供了一些基于诺基亚高端设备移动Web模版创建的示例。最后的参考资料也非常精彩。]]></description>
			<content:encoded><![CDATA[<p>Forum Nokia<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/1042e49c-15b6-4d83-8c4f-d9227ceabd2c/Cross-Browser_Guidelines_v1_0_en.zip.html" class="liexternal">发布了一个关于浏览器兼容的文档</a>。描述了如何为iPhone、Maemo、Android和部分S60触摸设备优化自己的网站。里面有很多有用的小提示和建议值得参考。另外，压缩包内还提供了一些基于诺<a href="http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Browsing/Web_Templates/Templates_for_High-End_Devices/" class="liexternal">基亚高端设备移动Web模版</a>创建的示例。<a href="http://sw.nokia.com/id/1042e49c-15b6-4d83-8c4f-d9227ceabd2c/Cross-Browser_Guidelines_v1_0_en.zip" title="诺基亚跨浏览器指南" class="lizip">可以在这里下载</a>。最后的参考资料也非常精彩。</p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/news/cross-browser-guidlines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad的CSS3媒体查询</title>
		<link>http://mocreative.net/design/ipad-media-query/</link>
		<comments>http://mocreative.net/design/ipad-media-query/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 01:40:47 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[用户体验]]></category>
		<category><![CDATA[设备侦测]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=56</guid>
		<description><![CDATA[iPad的Safari浏览器和iPhone的一样，都支持CSS3媒体查询。通过这个技术，可以对设备不同的握持方向应用不同的样式，增强功能和体验。iPhone是通过屏幕最大宽度来侦测的。而iPad有点不同，它直接使用了媒体查询中的orientation属性。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.apple.com/ipad" title="ipad官方" class="liexternal">iPad</a>的Safari浏览器和iPhone的一样，都支持<a href="http://www.w3.org/TR/css3-mediaqueries/" title="CSS3媒体查询" class="liexternal">CSS3媒体查询</a>。通过这个技术，可以对设备不同的握持方向应用不同的样式，增强功能和体验。iPhone是通过屏幕最大宽度来侦测的。是这样：</p>
<p><code>&lt;link rel="stylesheet" media="screen and (max-width: 320px)" href="portrait.css" /&gt;<br />
&lt;link rel="stylesheet" media="screen and (min-width: 321px)" href="landscape.css" /&gt;</code></p>
<p>而iPad有点不同，它直接使用了媒体查询中的orientation属性。是这样：</p>
<p><code>&lt;link rel="stylesheet" media="screen and (orientation:portrait)" href="portrait.css" /&gt;<br />
&lt;link rel="stylesheet" media="screen and (orientation:landscape)" href="landscape.css" /&gt;</code></p>
<p>之后只要将不同的样式分别定义出来就可以了。在桌面平台测试的话，firefox，Safari和Chrome都支持方向属性，只需要改变窗口让高度大于宽度，就会识别为纵向屏幕。</p>
<p><a href="http://www.cloudfour.com/ipad-orientation-css/" title="cloudfour ipad media query" class="liexternal">Cloud Four Blog的文章</a>里有制作一个例子，可以去<a href="http://www.cloudfour.com/ipad-css/" title="测试方向" class="liexternal">试试看</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/ipad-media-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail mobile iPad页面上线</title>
		<link>http://mocreative.net/design/gmail-mobile-ipad/</link>
		<comments>http://mocreative.net/design/gmail-mobile-ipad/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 01:46:28 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[web apps]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=54</guid>
		<description><![CDATA[iPad今天终于发售了。Google移动博客今天宣布，他们为iPad准备好了专用的Gmail邮箱web页面，iPad用户只要访问Gmail网站就会看到这一新界面。为充分利用iPad的9.7寸大屏幕，Gmail也采用了类似于iPad内置Mail邮件客户端的左右双栏式界面设计。]]></description>
			<content:encoded><![CDATA[<p>iPad今天终于发售了。Google移动博客今天宣布，他们为iPad准备好了专用的Gmail邮箱web页面，iPad用户只要访问Gmail网站就会看到这一新界面。为充分利用iPad的9.7寸大屏幕，Gmail也采用了类似于iPad内置Mail邮件客户端的左右双栏式界面设计。当然如果用户不想使用web访问，也可以用mail应用使用IMAP访问邮箱。</p>
<p><a href="http://mocreative.net/wp-content/uploads/ipad-gmail.png" class="liimagelink"><img class="alignnone size-full wp-image-55" title="ipad-gmail" src="http://mocreative.net/wp-content/uploads/ipad-gmail.png" alt="gmail ipad 界面" width="506" height="658" /></a></p>
<p>的iPad专用版Gmail页面基于去年为iPhone和Android手机推出的移动版Gmail HTML5网页应用。区别就在于他们针对iPad的1024&#215;768分辨率进行了专门优化，让用户使用触摸操作更加舒适方便。</p>
<p>另外Google还表示，明天用户买到iPad后会发现，其使用Google各项网页服务时，有的会出现和桌面版完全相同的界面，有的则基于原本针对智能手机的移动版本。由于iPad无论从尺寸到分辨率都介于普通PC和手机之间，Google会“因地制宜”为每款应用选择最合适的界面提供给iPad用户。</p>
<p>如果你现在就像试试，iPad的UA如下：</p>
<p><em>Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10</em></p>
<p>你知道该怎么做的。</p>
<p><img class="alignnone" title="ipad user agent switcher" src="http://cdn.thenextweb.com/lifehacks/files/2010/04/user-agent.jpg" alt="使用user agent switcher 填写ipad ua" width="500" height="239" /></p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/gmail-mobile-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S60线框图</title>
		<link>http://mocreative.net/design/s60-wireframe/</link>
		<comments>http://mocreative.net/design/s60-wireframe/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:38:45 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=52</guid>
		<description><![CDATA[诺基亚开发者论坛最近放出了S60 系统的线框图，可以给设计师们用做应用程序和原生界面web的概念设计。S60 QVGA版本和触摸版的S60V5都有。横向屏幕和纵向屏幕的都有。AI和PNG格式。]]></description>
			<content:encoded><![CDATA[<p>诺基亚开发者论坛最近放出了<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/cfc7b6a4-2dc5-4c91-88a5-c35764fff8fe/S60_Wireframing_Stencils.html" class="liexternal">S60系统的线框图</a>，可以给设计师们用做应用程序和原生界面web的概念设计。S60 QVGA版本和触摸版的S60V5都有。横向屏幕和纵向屏幕的都有。用的是AI和PNG格式，可以用Adobe Illustrator CS4和Fireworks CS4打开。<a href="http://sw.nokia.com/id/49ef1fab-6ff2-4f03-9b84-80d54aeebb06/S60_Wireframing_Stencils_v1_0_en.zip" class="lizip">这里下载</a>。</p>
<p>想为Maemo5做设计? <a href="http://mocreative.net/design/maemo5-icons/" title="Maemo5图标" class="liinternal">在这里有一些图标</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/s60-wireframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>移动设备的表单设计：现代解决方案</title>
		<link>http://mocreative.net/design/modern-form-on-mobile/</link>
		<comments>http://mocreative.net/design/modern-form-on-mobile/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:34:40 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[用户体验]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=43</guid>
		<description><![CDATA[移动表单往往比它们的桌面版显得有更多的限制：更小的屏幕；更慢的连接速度；更麻烦的文本输入；不胜枚举。因此，通常我们需要限制移动应用和网站中的表单数量。当你需要用户在移动设备上输入，单选按钮复选框、选择菜单和列表往往比开放文字域要好。
但是，限制孕育创新，移动表单也是一样。对移动用户的限制迫使开发和设计人员找到新的方式，令用户更快捷轻松的输入。多亏本文中涉及到的现代解决方案，移动领域也许不再避免更多的表单。相反，它可能促进表单的更多的使用。]]></description>
			<content:encoded><![CDATA[<p>移动表单往往比它们的桌面版显得有更多的限制：更小的屏幕；更慢的连接速度；更麻烦的文本输入；不胜枚举。因此，通常我们需要限制移动应用和网站中的表单数量。当你需要用户在移动设备上输入，单选按钮复选框、选择菜单和列表往往比开放文字域要好。</p>
<p>但是，<strong>限制孕育创新</strong>，移动表单也是一样。对移动用户的限制迫使开发和设计人员找到新的方式，令用户更快捷轻松的输入。多亏本文中涉及到的现代解决方案，移动领域也许不再避免更多的表单。相反，它可能促进表单的更多的使用。</p>
<h3>域缩放</h3>
<p>许多移动浏览器中，当用户选择了表单的输入域，“域缩放”功能会将其扩展到适合屏幕的可视区域的大小。这个方法令本来小小的输入域放大到足够让用户看清输入内容的大小。由于许多表单错误是由人们无法清晰辨认和修正自己的输入内容而造成的，此功能的可用性显而易见。</p>
<p>iPhone上的Safari浏览器和域缩放一起使用的还有一个“表单助手”功能。表单助手在放大了的输入域下方显示“上一个”、“下一个”、“自动填写”和“完成”按钮，提供给用户一个容易的方式在整个表单之间切换。不需要担心是否某个域在屏幕之外：用户只要一路点按“下一个”就不会错过了！</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs1.jpg" alt="" /></p>
<p>但是，不是每个人都会用表单助手，或者知道怎样隐藏键盘。所以，确认网页上的控件始终能让用户完成表单。围绕“提交”按钮的过多的间距会将其挤到键盘后面。</p>
<p>域缩放也是表单标签单列布局的原因。你可以看看Google的注册表单（如下图），当使用域缩放时，表单扩展了，两列布局中左对齐的标签却被挤出了屏幕。如果标签看不见，用户很容易忘记自己需要回答什么问题。过长的输入域也会引起这样的问题。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs2.jpg" alt="" /></p>
<p>两列布局的表单标签在没有域缩放的移动浏览器里也经常会发生问题。任何在Android系统中使用上例的表单也要面对标签消失的问题。屏幕就是没有足够的空间同事显示输入域和相关的标签。单列布局的标签就可以避免这个问题。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs3.jpg" alt="" /></p>
<h3>输入格式</h3>
<p>一些移动浏览器识别<a href="http://diveintohtml5.org/forms.html" title="预定义输入类型" class="liexternal">预定义输入类型</a>（HTML5标准的一部分），以此来调整输入模式。举例来说，定义一个input的type为url，会显示一个带有“.”，“/”，和“.com”键的字母键盘。定义一个input的type为email，会显示一个带有 “.”和“@”键的字母键盘。而一个input的type为number的话，就会显示数字键盘。</p>
<p>这些关联预定义输入的键盘使得在每个要求数据带有特殊格式的输入域输入更加容易。即使没有虚拟键盘的浏览器也能从number属性获得的好处，因为用户不用被迫手动切换到数字输入法输入数字数据了。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs4.jpg" alt="" /></p>
<h3>密码遮蔽</h3>
<p>大部分表单密码域即时遮掩用户输入的全部的字符保证敏感信息不被偷看到。自动遮掩密码看上去安全，但是也会让用户想校验密码时却只能看到一行黑点，引起了可用性问题。</p>
<p>许多移动设备通过显示最近输入的字符，然后过几秒将其转换成黑点来解决这个问题。这个技术在桌面已经解决了，<a href="http://www.zurb.com/article/279/how-to-mask-passwords-like-the-iphone" title="怎样在iPhone上遮蔽密码" class="liexternal">ZURB有描述这个解决方案</a>。</p>
<h3>弹出菜单控件</h3>
<p>下拉选择菜单是最难使用的输入类型之一。首先，你不得不点击一下打开它。然后你不得不卷动常常的列表找寻一个很小的目标。一旦你发现了你需要的值，你需要定位正确的位置选择它。许多下拉菜单要求你保持指针一直在菜单上方卷动，如果你移开，菜单就会关闭！</p>
<p>就算是敏捷的用户也常常搞错，然后需要重新选择一遍。在小屏幕移动设备上这种交互的挑战和解决方案的需求就十分明显了。</p>
<p>对于表单中的下拉选择菜单来说，iPhone呈现给用一个弹出菜单控件。这个控件将菜单的选项显示在一个列表里，这个列表可以用拖动、滑动等手势来控制卷动速度。巨大的触摸目标也令他很容易选中。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs5.jpg" alt="" /></p>
<p>Android也提供了一个类似的大触摸目标给选择菜单选项。当用户点击一个下拉选择菜单，一个浮动在页面之上的对话框中显示了卷动的菜单选项列表。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs6.jpg" alt="" /><br />
图 五</p>
<h3>复合菜单控件</h3>
<p>弹出菜单控件也可以应用层复合输入。所以，相比要求在三个分开的输入域中选择月份、日期和年份，可以用一个date域替代。它可以显示一套弹出菜单，能让用户同时在三个列表中卷动选择正确的日期。这种方式也可以引用在其他组合之中，例如以英尺英寸为单位的高度列表。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs7.jpg" alt="" /></p>
<p>Android也拥有复合域解决方案，通过它的视觉界面元素控制卷动列表，替换依赖手势的卷动。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs8.jpg" alt="" /></p>
<h3>原生输入控件</h3>
<p>除了复合菜单控件，大部分移动操作系统也为应用开发者提供了很多其他的自定义输入控件。滑块、分割按钮、评级Widgets和过滤器等等都值得在设计时考虑替换标准表单控件，令用户输入更简单。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs9.jpg" alt="" /></p>
<h3>屏幕方向</h3>
<p>由于不同的人喜欢不同方向握持移动设备，移动表单应该根据屏幕的方向调整。Android设备上的email撰写表单就是这样。</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/03/mobileinputs10.jpg" alt="" /></p>
<p>当纵向握持时，屏幕上显示三个输入域和几个操作按钮。在水平握持时，只有email正文输入域占据屏幕，并且只有一个操作按钮显示在右边。这个布局为消息内容输入最大利用了屏幕空间。</p>
<h3>语音输入</h3>
<p>Google的Nexus One允许用户在应用的任何文本域使用语音输入。用户可以滑动虚拟键盘切换到音频输入模式，或者按麦克风按钮也可以。在有效的语音输入支持下，在移动设备上打字输入字符将成为历史。</p>
<h3>以后会怎样？</h3>
<p>移动增长的非常快，越来越多的设计师和开发者注意到这个领域，我们充满希望的期待移动表单更进一步的变革。无论如何，任何使输入更快更容易的技术都将为客户带来更多的好处。</p>
<h3>关于作者</h3>
<p><a href="http://www.lukew.com/about/index.asp" title="关于Luke" class="liexternal">Luke  Wroblewski</a>是一个国际知名的数码产品设计师，<a href="http://www.lukew.com/ff/" title="luke的书籍" class="liexternal">两本流行的网页设计书籍</a>的作者。你可以在Twitter follow <a href="http://www.twitter.com/lukewdesign" class="liexternal">@lukewdesign</a> 或者订阅他的<a href="http://feeds.feedburner.com/FunctioningForm" class="liexternal">RSS</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/modern-form-on-mobile/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Helisso – Flash Lite 内容 SIS 打包器</title>
		<link>http://mocreative.net/design/helisso/</link>
		<comments>http://mocreative.net/design/helisso/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 17:19:57 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[Flash Lite]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=31</guid>
		<description><![CDATA[Mark创建了他的第一个ActionScript3应用——Helisso。这时一个为Symbian设备打包Flash Lite应用的小程序。可以在Windows或Mac平台上使用它来将Flash Lite打包成sis文件。对Windows来说是没什么，但是在Mac上，Flash作者们就不用安装任何Symbian SDK了（本来也没有）。太棒了！
功能很简单，看截图就可以了。

]]></description>
			<content:encoded><![CDATA[<p>Mark创建了他的第一个ActionScript3应用——<a href="http://www.flashmobileblog.com/2010/03/03/helisso-a-packager-for-symbian-devices/" class="liexternal">Helisso</a>。这时一个为Symbian设备打包Flash Lite应用的小程序。可以在Windows或Mac平台上使用它来将Flash Lite打包成sis文件。对Windows来说是没什么，但是在Mac上，Flash作者们就不用安装任何Symbian SDK了（本来也没有）。太棒了！<span id="more-31"></span></p>
<p>功能很简单，看截图就可以了。</p>
<p><a href="http://mocreative.net/wp-content/uploads/helisso.png" class="liimagelink"><img class="alignnone size-full wp-image-32" title="helisso" src="http://mocreative.net/wp-content/uploads/helisso.png" alt="helisso截图" width="300" height="324" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/helisso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10条小代码开发iPhone友好的网站</title>
		<link>http://mocreative.net/design/10-snippets-iphone-friendly/</link>
		<comments>http://mocreative.net/design/10-snippets-iphone-friendly/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 03:39:58 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[设备侦测]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=29</guid>
		<description><![CDATA[如果要针对iPhone/iPod Touch开发移动网站，以下十条小代码几乎肯定是需要用到的，方便又有效。可以做到侦测iPhone/iPod、设置viewpoint和屏幕等宽、使用iPhone规格图标、侦测设备旋转方向、隐藏工具栏和模拟:hover伪类等。]]></description>
			<content:encoded><![CDATA[<p>如果要针对iPhone/iPod Touch开发移动网站，以下十条小代码几乎肯定是需要用到的，方便又有效。</p>
<h3>侦测iPhone/iPod</h3>
<p>开发特定设备的移动网站，首先要做的就是设备侦测了。下面是使用Javascript侦测iPhone/iPod的UA，然后转向到专属的URL。</p>
<p><code>if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {<br />
if (document.cookie.indexOf("iphone_redirect=false") == -1) {<br />
window.location = "http://m.espn.go.com/wireless/?iphone&amp;i=COMR";<br />
}<br />
}</code></p>
<p>虽然Javascript是可以在水果设备上运行的，但是用户还是可以禁用。它也会造成客户端刷新和额外的数据传输，所以下面是服务器端侦测和转向：</p>
<p><code>if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) {<br />
header('Location: http://yoursite.com/iphone');<br />
exit();<br />
}</code></p>
<h3>设置viewpoint和屏幕等宽</h3>
<p>如果不设置viewpoint，网站在viewpoint就会显示成缩略形式。如果你专门为iPhone/iPod开发网站，这一条很有用，而且很简单，只需要插入到head里就可以：</p>
<p><code>&lt;meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"&gt;</code></p>
<h3>使用iPhone规格图标</h3>
<p>如果你的用户将你的网站添加到home screen，iPhone会使用网站的缩略图作为图标。然而你可以提供一个自己设计的图标，这样当然更好。图片是57&#215;57大小，png格式。不需要自己做圆角和反光，系统会自动完成这些工作。然后将下面这条加入head中：</p>
<p><code>&lt;rel="apple-touch-icon" href="images/youricon.png"/&gt;</code></p>
<h3>阻止旋转屏幕时自动调整字体大小</h3>
<p><code>-webkit-text-size-adjust</code>是webkit的私有css：</p>
<p><code>html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 {-webkit-text-size-adjust:none;}</code></p>
<h3>侦测设备旋转方向</h3>
<p>iPhone可以在横屏状态下浏览网页，有时候你会想知道用户设备的手持状态来增强可用性和功能。下面一段Javascript可以判断出设备向哪个方向旋转，并且替换css：</p>
<p><code>window.onload = function initialLoad() {updateOrientation();}</code></p>
<p>function updateOrientation(){<br />
var contentType = &#8220;show_&#8221;;<br />
switch(window.orientation){<br />
case 0:<br />
contentType += &#8220;normal&#8221;;<br />
break;</p>
<p>case -90:<br />
contentType += &#8220;right&#8221;;<br />
break;</p>
<p>case 90:<br />
contentType += &#8220;left&#8221;;<br />
break;</p>
<p>case 180:<br />
contentType += &#8220;flipped&#8221;;<br />
break;<br />
}<br />
document.getElementById(&#8220;page_wrapper&#8221;).setAttribute(&#8220;class&#8221;, contentType);<br />
}</p>
<h3>iPhone才识别的CSS</h3>
<p>如果不想设备侦测，可以用CSS媒体查询来专为iPhone/iPod定义样式。</p>
<p><code>@media screen and (max-device-width: 480px) {}</code></p>
<h3>缩小图片</h3>
<p>网站的大图通常宽度都超过480像素，如果用前面的代码限制了缩放，这些图片在iPhone版显示显然会超过屏幕。好在iPhone机能还够，我们可以用CSS让iPhone自动将大图片缩小显示。</p>
<p><code>@media screen and (max-device-width: 480px){<br />
img{max-width:100%;height:auto;}<br />
}</code></p>
<p>注意如果原图片非常大，或一个页面非常多图，最好还是在服务器端缩放到480像素宽，iPhone只需要在正常浏览时缩略到320像素。这样不会消耗太多流量和机能。</p>
<h3>默认隐藏工具栏</h3>
<p>iPhone的浏览器工具栏会在页面最顶端，卷动网页后才隐藏。这样在加载网页完成后显得很浪费空间，特别是横向屏幕时。我们可以让它自动卷动上去。</p>
<p><code>window.addEventListener('load', function() {<br />
setTimeout(scrollTo, 0, 0, 1);<br />
}, false);</code></p>
<h3>使用特殊链接</h3>
<p>这两条不用说了吧：</p>
<p><code>&lt;a href="tel:12345678900"&gt;打电话给我&lt;/a&gt;<br />
&lt;a href="sms:12345678900"&gt;发短信&lt;/a&gt;</code></p>
<h3>模拟:hover伪类</h3>
<p>因为iPhone并没有鼠标指针，所以没有hover事件。那么CSS :hover伪类就没用了。但是iPhone有Touch事件，onTouchStart 类似 onMouseOver，onTouchEnd 类似 onMouseOut。所以我们可以用它来模拟hover。使用Javascript：</p>
<p><code>var myLinks = document.getElementsByTagName('a');<br />
for(var i = 0; i &lt; myLinks.length; i++){<br />
myLinks[i].addEventListener(’touchstart’, function(){this.className = “hover”;}, false);<br />
myLinks[i].addEventListener(’touchend’, function(){this.className = “”;}, false);<br />
}</code></p>
<p>然后用CSS增加hover效果：</p>
<p><code>a:hover, a.hover { /* 你的hover效果 */ }</code></p>
<p>这样设计一个链接，感觉可以更像按钮。并且，这个模拟可以用在任何元素上。</p>
<h3>参考资料：</h3>
<p><a href="http://csswizardry.com/2010/01/iphone-css-tips-for-building-iphone-websites/" class="liexternal">iPhone CSS—tips for building iPhone websites</a></p>
<p><a href="http://davidwalsh.name/detect-iphone" class="liexternal">iPhone &amp; iPod Detection Using Javascript</a></p>
<p><a href="http://articles.sitepoint.com/article/iphone-development-12-tips/" class="liexternal">iPhone Development: 12 Tips To Get You Started</a></p>
<p><a href="http://www.engageinteractive.co.uk/blog/2008/06/19/tutorial-building-a-website-for-the-iphone/" title="Permanent Link: Tutorial: Building a website for the iPhone" rel="bookmark" class="liexternal">Tutorial: Building a website for the iPhone</a></p>
<p><a href="http://www.evotech.net/blog/2008/12/hover-pseudoclass-for-the-iphone/" rel="bookmark" class="liexternal">hover pseudoclass for the iPhone</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/10-snippets-iphone-friendly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maemo5 图标列表</title>
		<link>http://mocreative.net/design/maemo5-icons/</link>
		<comments>http://mocreative.net/design/maemo5-icons/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:21:48 +0000</pubDate>
		<dc:creator>五梭</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[web apps]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[图标]]></category>

		<guid isPermaLink="false">http://mocreative.net/?p=27</guid>
		<description><![CDATA[诺基亚开发者论坛发布了Maemo 5系统所有的图标资源。作为应用的图标设计参考提供给开发者，当然也允许直接使用这些图标，以保证和系统UI视觉上的兼容，给用户一个无间断的体验。图标列表的补充材料可见Hildon 2.2 Widget样式指南和Fremantle Master 布局指南，包含了指导和参考。另外还有Hildon 2.2 Widget 用户界面规范，包含了互动和技术的背景信息。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.forum.nokia.com/" title="forum nokia" class="liexternal">诺基亚开发者论坛</a>发布了<a href="http://www.forum.nokia.com/document/Maemo_5_Icon_List/main.html" title="图标列表" class="liexternal">Maemo 5系统所有的图标资源</a>。作为应用的图标设计参考提供给开发者，当然也允许直接使用这些图标，以保证和系统UI视觉上的兼容，给用户一个无间断的体验。图标列表的补充材料可见<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/eb8a68ba-6225-4d84-ba8f-a00e4a05ff6f/Hildon_2_2_UI_Style_Guide.html" class="liexternal">Hildon 2.2 Widget样式指南</a>和<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/e778ba1f-2507-4672-be45-798359a3aea7/Fremantle_Master_Layout_Guide.html" class="liexternal">Fremantle  Master 布局指南</a>，包含了指导和参考。另外还有<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/019c2b31-3777-49a0-9257-970d79580756/Hildon_2_2_Widget_UI_Specification.html" class="liexternal">Hildon 2.2 Widget 用户界面规范</a>，包含了互动和技术的背景信息。</p>
<p>如果是为Maemo 5开发web apps、WRT Widgets或适配网站，就可以使用这资源了。</p>
<p><a href="http://www.forum.nokia.com/document/Maemo_5_Icon_List/" class="liexternal">http://www.forum.nokia.com/document/Maemo_5_Icon_List/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mocreative.net/design/maemo5-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
