<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>SUNThink 三思</title><link>http://www.sunthink.org/</link><description>{思考前端;思考用户体验;思考互联网;}</description><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 90619</generator><language>zh-CN</language><copyright>回到首页 前端 用户体验 互联网 三思集 兵器谱 相册 标签云 搜索 给我留言 M 回到顶部↑Copyright SUNThink.org 三思 Rights Reserved. 本blog服务器空间由  河南371网络服务专家 极速支持 豫ICP备09034799号 </copyright><pubDate>Sun, 27 Nov 2011 13:39:09 +0800</pubDate><item><title>前田约翰《简单法则》</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/29.html</link><pubDate>Tue, 02 Aug 2011 13:50:17 +0800</pubDate><guid>http://www.sunthink.org/post/29.html</guid><description><![CDATA[<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>感谢<a target="_blank" href="http://striblog.com/">木小乐</a>送我 前田约翰的《简单法则》，看了几章很有收获，其中的法则适用于各种方面：</p><p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前田约翰《简单法则》十条：　</strong>　</p><p>　　<strong>减少</strong>，就是说，达到简单的最简单方法，就是要有所割舍，割舍一些没用的功能、多余的部分，就能简单许多。　　</p><p>　　<strong>组织</strong>，妥善组织能使复杂的系统显得比较简单，这就好比合理使用一张写字台。　　</p><p>　　<strong>时间</strong>，节省时间也会让人感觉简单(虽然这种一时的简单不一定是真正的简单)。　　</p><p>　　<strong>学习</strong>，知识、经验的积累能帮助人们把某些事物变得更为简捷。　　</p><p>　　<strong>差异</strong>，简单和复杂相辅相成，没有复杂的对比反差，简单就不能更好地显现。　　</p><p>　　<strong>背景</strong>，简单的周边事物决非无关紧要，它有助于形成一种简单的氛围，让人感觉到简单。</p><p>　　<strong>感情</strong>，感情的寄托也有助于简单。　　</p><p>　　<strong>信任</strong>，要对一些简单的事物报以必要的信任。　　</p><p>　　<strong>失败</strong>，要相信有些事物不可能简单，不是所有东西都适合简单。　　</p><p>　　<strong>单一</strong>，简单就是要求减少形式的、无意义的，增加有意义的。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>]]></description><category>三思集</category><comments>http://www.sunthink.org/post/29.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=29</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=29&amp;key=c8c858e8</trackback:ping></item><item><title>互联网大讲堂QQ群话题整理分享（1-10期）</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/djt.html</link><pubDate>Sat, 09 Jan 2010 16:11:25 +0800</pubDate><guid>http://www.sunthink.org/post/djt.html</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp; 有幸加入到<strong>思域</strong>（<a href="http://www.pmday.com/about">http://www.pmday.com/about</a>）创建的<strong>互联网大讲堂</strong>qq群(<span style="color: rgb(153, 153, 153);">提供互联网行业讲座，内容涵盖产品设计、产品管理、产品运营、公司管理、电商等等！</span>)，群主会定期邀请业内牛人在群中讨论一些话题，看后获益良多，不敢独享集中分享。&nbsp;</p><div align="left"><a href="http://www.sunthink.org/down/djt/第一期话题：餐饮行业信息化.ppt" target="_blank">第一期话题：餐饮行业信息化.ppt</a></div><div align="left">嘉宾：思域 饭统网 群主哥</div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第二期话题：IM和移动客户端的结合之Q聊记录版.txt" target="_blank">第二期话题：IM和移动客户端的结合之Q聊记录版.txt</a></div><div align="left">嘉宾：原腾讯QQ产品经理 现任飞信产品经理：张程</div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第三期话题：sns产品设计（阿里巴巴产品经理-狒狒）.doc" target="_blank">第三期话题：sns产品设计（阿里巴巴产品经理-狒狒）.doc</a></div><div align="left"><span class="Apple-style-span">嘉宾：阿里巴巴产品经理 狒狒 </span></div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第四期话题：B2C类电商平台支持系统解决方案.doc" target="_blank">第四期话题：B2C类电商平台支持系统解决方案.doc</a></div><div align="left">&nbsp;嘉宾：红孩子集团系统架构和规划师 十二</div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第五期话题：saas的应用和经营2009-12-18.doc" target="_blank">第五期话题：saas的应用和经营2009-12-18.doc</a></div><div align="left">嘉宾：来自金蝶的saas市场经理</div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第六期话题：敏捷设计经验分享 2009-12-23.doc" target="_blank">第六期话题：敏捷设计经验分享 2009-12-23.doc</a></div><div align="left">千鸟 和大家分享敏捷设计的经验</div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第七期话题：交互设计和用户访谈经验分享.doc" target="_blank">第七期话题：交互设计和用户访谈经验分享.doc</a></div><div align="left"><span style="font-size: 12px; line-height: normal; white-space: pre;" class="Apple-style-span">嘉宾：来自腾讯的 西贝</span></div><div align="left">&nbsp;</div><div align="left"><span><a href="http://www.sunthink.org/down/djt/第八期话题：创业公司技术咨询和服务外包经验分享.doc" target="_blank">第八期话题：创业公司技术咨询和服务外包经验分享</a></span></div><div align="left"><span><span style="font-size: 12px; line-height: normal; white-space: pre;" class="Apple-style-span">嘉宾：搜狗产品经理 车东</span></span></div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第九期话题：谈职业规划 2010-01-06.doc" target="_blank">第九期话题：谈职业规划 2010-01-06.doc</a></div><div align="left"><span style="font-size: 12px; line-height: normal; white-space: pre;" class="Apple-style-span">嘉宾：搜狐高级副总裁 CTO 王小川</span></div><div align="left">&nbsp;</div><div align="left"><a href="http://www.sunthink.org/down/djt/第十期话题：谈bi的应用及与互联网的结合.doc" target="_blank"><span>第</span><span>10</span><span>期话题：</span><span>BI</span><span>（商业智能）的引用及与互联网的结合</span></a></div><div align="left"><span class="Apple-style-span">嘉宾：国内知名BI论坛ttnn 坛主 </span></div><div align="left">&nbsp;</div><div align="left"><div align="left"><a href="http://www.sunthink.org/down/djt/第11期话题：seo策略与案例分析.doc" target="_blank"><span>第11期话题：seo策略与案例分析.doc</span></a></div><div align="left"><span class="Apple-style-span">嘉宾：云枫 案例：丁丁网 </span></div><div align="left">&nbsp;</div><div align="left">第12期话题：谈地方门户 <span style="color: rgb(255, 0, 0);"><strong>预告</strong></span></div><div align="left">嘉宾：知名地方门户常州化龙巷 骨骨头 </div><div align="left">时间：2月4日15：00-17：00</div></div><div align="left">&nbsp;</div><div>感谢思域、感谢嘉宾、感谢漫步等的整理！</div><div align="left">欢迎讨论，欢迎分享，一起进步！</div>]]></description><category>兵器谱</category><comments>http://www.sunthink.org/post/djt.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=26</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=26&amp;key=d1d092e9</trackback:ping></item><item><title>ime-mode:disabled css实现关闭文本框输入法</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/ime-mode.html</link><pubDate>Sat, 21 Nov 2009 14:17:53 +0800</pubDate><guid>http://www.sunthink.org/post/ime-mode.html</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;最近客服部的MM反映：用户总是在输入电话的时候不小心开启了全角无法通过格式验证而打来电话求助。如图：</p><p><img title="" alt="" src="http://www.sunthink.org/upload/css自动关闭文本框输入法.gif" onload="ResizeImage(this,600)" /></p><p>&nbsp;&nbsp;&nbsp;&nbsp;就是在后面增加了，请输入半角数字的提示效果也不会很好，因为很多用户不知道什么是全角半角，都是无意中开启了全角状态。我们在平时填写表单的时候也会这样，上个文本框是输入中文，到下个要输入英文，就要来回切换输入法，极容易出现全角验证不通过，还很麻烦。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;路人甲：用<strong>js全角转半角</strong>不就可以了？</p><p>&nbsp;&nbsp;&nbsp;&nbsp;这个当然可以，不过其实用css就可以了：<strong>ime-mode:disabled</strong>。在群里问了一下很多人都不用这个css属性，测试了下其实挺好用的（<strong>省去了用户切换输入法的麻烦还规避了用户容易输错数字的错误，不用白不用</strong>），看一个简单的例子：</p><p><a href="http://www.sunthink.org/down/demo/ime-mode.html" target="_blank">ime-mode:disabled css实现关闭文本框输入法</a></p><div>附：苏昱css手册中对此属性的解释：</div><div id="idContentTitle"><strong><span id="idTitleName">ime-mode&nbsp;</span></strong></div><div class="cssColumnTitle">语法：</div><div><b>ime-mode : </b><span class="cssDefault"><b>auto</b></span> | <b>active</b>  | <b>inactive</b> | <b>disabled</b></div><div class="cssColumnTitle">取值：</div><table style="width: 542px; height: 105px;">    <tbody>        <tr>            <td nowrap=""><b>auto </b></td>            <td nowrap=""><b>:</b></td>            <td><b>默认值</b>。不影响IME的状态。与不指定<b> ime-mode </b>属性时相同</td>        </tr>        <tr>            <td nowrap=""><b>active </b></td>            <td nowrap=""><b>:</b></td>            <td>指定所有使用IME输入的字符。即激活本地语言输入法。用户仍可以撤销激活IME</td>        </tr>        <tr>            <td nowrap=""><b>inactive </b></td>            <td nowrap=""><b>:</b></td>            <td>指定所有不使用IME输入的字符。即激活非本地语言。用户仍可以撤销激活IME</td>        </tr>        <tr>            <td nowrap=""><b>disabled </b></td>            <td nowrap=""><b>:</b></td>            <td>完全禁用IME。对于有焦点的控件(如输入框)，用户不可以激活IME</td>        </tr>    </tbody></table>]]></description><category>前端</category><comments>http://www.sunthink.org/post/ime-mode.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=25</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=25&amp;key=955179cc</trackback:ping></item><item><title>Dw代码片段功能提高前端开发效率（增加快捷键说明）</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/24.html</link><pubDate>Mon, 19 Oct 2009 14:55:01 +0800</pubDate><guid>http://www.sunthink.org/post/24.html</guid><description><![CDATA[<p>　　<b><font size="3">广告同样精彩：</font></b><br />　　肩膀：疼！<br />　　颈椎：麻！<br />　　两眼：晕！&nbsp;&nbsp;&nbsp;&nbsp; <br />　　远离前端，珍惜生命。&nbsp;&nbsp;&nbsp;&nbsp; <br />　　做前端的同学，除了要处处考虑各种版本浏览器的兼容性这个脑力劳动之外，最大的体力劳动就是，在代码视图重复的输入代码了。&nbsp;&nbsp;&nbsp; <br />　　由于有死机造成代码丢失的阴影，我现在习惯性狂按ctrl+s，估计这样长期下去除了椎间盘突出，这两个键也突出了。其实仔细看看我们反复输入的也就是那些常用的标签：<br />　　<b><font size="3">Dw的代码片段功能</font></b> <br />　　有同学问过能不能定义下，不用每次都反复输入，虽然各种ide都有代码提示和完整功能，但是每次都输入也确实烦人，其实人家dw就有类似的功能：&ldquo;代码片段&rdquo;。窗口菜单-代码片段或者按快捷键shift+f9调出代码片段面版。你会发现里面已经有一些代码片段，我先删了它，省的碍眼。<br />　　然后点击面板底部的 新建代码片段 功能，以建立a标签为例输入代码，如图：<br />　　　　　　<br />　　<img onload="ResizeImage(this,600)" src="http://www.sunthink.org/upload/200910191500437821.gif" alt="" title=""/><br />　　　　　　<br />　　你也可以现在代码区输入，然后选中这段代码，再点击那个新建代码片段按钮，它会自动根据你选择的建立片段。<br />　　　　　　<br />　　<img onload="ResizeImage(this,600)" src="http://www.sunthink.org/upload/200910191501311118.gif" alt="" title=""/><br />　　　　　　<br />　　<b><font size="3">使用&ldquo;代码片段&rdquo;快速输入</font></b><br />　　在你需要插入a标签的地方，双击你的代码片段上定义的名字，就自动插入到你的代码区了。<br />　　你也可以先选中链接文字然后点击a代码片段，就能自动包裹你的链接文字。很简单吧？<br />　　<b><font size="3">给&ldquo;代码片段&rdquo;定义快捷键</font></b> <br />　　是不是如果这些代码片段能像按ctrl+b就能在代码区产生这种就更好了，原以为DW没有这个功能。蓝色两位同学只点了迷津。DW是可以给代码片段定义快捷键的：<br />　　自定义代码面板上，在你想要定义快捷键的代码片段名称上点击<b>右键</b>-选择<b>编辑快捷键</b>：<br />　　　　　　<br />　　<img onload="ResizeImage(this,600)" src="http://www.sunthink.org/upload/key1.gif" alt="" title=""/><br />　　　　　　<br />　　在弹出的&ldquo;快捷键&rdquo;面板上点击你要设置的代码片段名称，再将光标定位到&ldquo;按键：文本框，然后再键盘上按下你想要设置的快捷键，例如ctrl+alt+d：<br />　　　　　　<br />　　<img onload="ResizeImage(this,600)" src="http://www.sunthink.org/upload/key2.gif" alt="" title=""/><br />　　　　　　<br />　　定义好之后你就可以像ctrl+b一样使用你定义的快捷键了。<br />　　你可以根据你的代码习惯定义其他常用片段，当然这个功能同样适用css。赶紧试试吧！</p>]]></description><category>兵器谱</category><comments>http://www.sunthink.org/post/24.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=24</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=24&amp;key=b9b236fa</trackback:ping></item><item><title>不常用却很有用的标签</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/biaoqian.html</link><pubDate>Fri, 11 Sep 2009 14:53:11 +0800</pubDate><guid>http://www.sunthink.org/post/biaoqian.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;Xhtml有很多不常用却很有用的标签。有的能事半功倍，有的能改进语义，有的则能提高易用性，<br/>我总结了一些，总结的原则是有用而且能用，就是大多数浏览器得支持，否则就不算“上上签”了。只能望“签”兴叹又有什么用呢？<br/><font size="4"><b>&lt;base&gt;标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;作用：<base>标签为页面中所有链接指定默认链接地址或链接目标。有时候我们需要让首页的链接全部在新窗口中打开，我们一般会这样写<a href="#" target="_blank">链接</a>，而使用这个标签就能一下搞定了！<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>属性：</b><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Href:链接地址<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target:目标，他的值可以是_blank,_parent,_self,_top,可以在除Strict模式下使用，这个用法我最先是在163.com上发现的。<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法：</b><br/>[CODE=html]<head><!—写在head标签之间--><br/><base href="http://www.qq.com/" /> <!—将默认链接定义为http://www.qq.com/--><br/><base target="_blank" /> <!—将默认链接目标定义为新窗口中打开--><br/></head>[/CODE]<br/><font size="4"><b>&lt;caption&gt;标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>作用：</b>caption标签用来定义表格的标题，给表格定义一个标题，来说明这个表格是干什么的，岂不是很有“语义”，caption应该写在table之后，默认的样式是居中显示在表格的顶部。你可以通过css来改变它的样式。<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法：</b><br/>[CODE=html]<table width="200" border="1" ><caption> <!--caption应该写在table之后--><br/>其实我是caption<br/></caption><br/><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr></table>[/CODE]<br/><font size="4"><b>&lt;thead&gt;标签、&lt;tbody&gt;标签、&lt;tfoot&gt;标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;作用：thead、tfoot 以及 tbody标签跟他们的名字那样，分别是表格的头部（很多人只是用th）、主题、和底部，他们能让表格更加语义化的同时，也能让我们更加方便的控制表格的表现。国外还有人用很变态地方法用这三个表其做出标题能跟随表格，或者tbody固定高度，多出的行数出现滚动条。有兴趣的可以搜素下或者是这做一下。<br/>注意：<font color="Red">如果您使用 thead、tfoot 以及 tbody 元素，您就必须使用全部的元素。它们的出现次序是：thead、tfoot、tbody，这样浏览器就可以在收到所有数据前呈现页脚了。</font><br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法：</b><br/>[CODE=html]<table border="1"><thead><tr><th>科目</th><th>分数</th></tr></thead><tfoot><br/><tr><td>总分</td><td>159</td></tr></tfoot><br/><br/><tbody><tr><td>语文</td><td>99</td></tr><tr><td>数学</td><td>60</td></tr></tbody></table>[/CODE]<br/><font size="4"><b>&lt;fieldset&gt;标签和&lt;legend&gt;标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>作用：</b>&lt;fieldset&gt;元素用来分类表单中的元素，而&lt;legend&gt;则能给这个组定义一个标题。你一定见过类似下面domo的布局吧！他们也可以通过css定义样式。<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法:</b><br/>[CODE=html]<form><fieldset><br/><legend>基本信息</legend><br/>姓名: <input type="text" /><br/>性别: <input type="text" /><br/></fieldset><br/></form>[/CODE]<br/><font size="4"><b>&lt;sub&gt; 标签和&lt;sup&gt; 标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;作用：&lt;sub&gt; 标签和&lt;sub&gt; 标签分别是上标和下标，虽然他们在各个浏览器的表现不一样，你<br/>同样可以使用css定义他们的样式。<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法：</b><br/>[CODE=html]2<sup>我是上标</sup><br/>2<sub>我是下标</sub>[/CODE]<br/><font size="4"><b>&lt;label&gt;标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>作用：</b>label 标签的使用可以扩大表单的点击区域来改进表单的易用性。看看下面的用法：点击文字的时候相当于点击了单选控件，这样用户体验是不是会更好一些？<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法：</b><br/>[CODE=html]<form><label for="nan">先生</label><br/><input type="radio" name="sex" id="nan" /><br/><br /><br/><label for="nv">女士</label><br/><input type="radio" name="sex" id="nv" /><br/></form>[/CODE]<br/><font size="4"><b>&lt;optgroup&gt; 标签</b></font><br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>作用：</b><option> 标签可以给select中的option进行分组，这在下拉项目很多的时候很有用，配合label标签给每组命名。你也可以像淘宝那样给每组用css定义不同的颜色。<br/>&nbsp;&nbsp;&nbsp;&nbsp;<b>用法：</b><br/>[CODE=html]<select><optgroup label="自驾游"> <!--配合label标签给每组命名--><br/><option>省内</option><option>省外</option></optgroup><br/><optgroup label="旅行社"><br/><option>省内</option><option>省外</option><option>国外</option></optgroup><br/></select>[/CODE]<br/>&nbsp;&nbsp;&nbsp;&nbsp;你如果对更多的xhtml标签感兴趣，可以考虑看一看《HTML和XHTML权威指南》这本书，你也能在网上找到电子版的。我看过英文影印版的，虽然是英文但也不是太难看懂。<br/>&nbsp;&nbsp;&nbsp;&nbsp;你要是知道其他很有用的标签告诉我们吧！<br/>&nbsp;&nbsp;&nbsp;&nbsp;附：<a href="http://www.sunthink.org/down/book/OReilly.HTML.and.XHTML.The.Definitive.Guide.6th.Edition.Oct.2006.chm" target="_blank">《HTML和XHTML权威指南》第六版下载</a><br/>]]></description><category>前端</category><comments>http://www.sunthink.org/post/biaoqian.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=23</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=23&amp;key=f719db82</trackback:ping></item><item><title>带着相机步行去上班</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/21.html</link><pubDate>Sat, 05 Sep 2009 18:09:38 +0800</pubDate><guid>http://www.sunthink.org/post/21.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;从<b>花园路国基路</b>到<b>经八路任寨北街</b>的百度地图 <br/><img onload="ResizeImage(this,600)" src="http://www.sunthink.org/upload/map.jpg" alt="" title=""/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;说是6.9公里，我大概走了2个多小时。一边走一边拍照，由于拍的急头白脸的，所以照片拍的很差劲。（技术本来就很菜）<br/>&nbsp;&nbsp;&nbsp;&nbsp;感兴趣的去相册看看 <a target="_blank" href="http://www.sunthink.org/plugin/windsphoto/">http://www.sunthink.org/plugin/windsphoto/</a>]]></description><category>三思集</category><comments>http://www.sunthink.org/post/21.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=21</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=21&amp;key=8f5c14fe</trackback:ping></item><item><title>土豆“豆丸”有点好玩</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/20.html</link><pubDate>Tue, 01 Sep 2009 23:17:25 +0800</pubDate><guid>http://www.sunthink.org/post/20.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;传说中的土豆的新产品-“豆丸”9月1日上线了。并且已经加在了土豆的导航上了。为什么叫做“豆丸”？希望大家都来玩？呵呵。大家觉得这个名字怎么样？我取个名叫做：“换豆”。别笑！要不你给取个。呵呵！	 <br/><div style="margin:10px 0 10px 0;text-align:center;"><img onload="ResizeImage(this,600)" src="http://www.sunthink.org/upload/200909012324156656.jpg" alt="" title=""/></div>&nbsp;&nbsp;&nbsp;&nbsp;其实这个产品非常简单，分为三部分：左侧是“土豆们正在挖”，就是即时显示大家在“挖”的一些视频；中间部分是播放器，这一部分我觉得最好玩的就是那个按钮“换”，他们设计的本意也是模仿电视的换台。右侧则是播放中的相关视频当然你还可以用那个“搜索到豆丸”搜索你想看的，而两边出现的视频都可以通过点击放到中间的队列中。<br/>&nbsp;&nbsp;&nbsp;&nbsp;“豆丸”好玩的地方也就是那个“换”了。不过感觉那个按钮在视觉上似乎低调了些。而且全屏之后就没那个功能了。据说土豆也在为这个申请专利了。（不过好像国外早就有过类似有趣功能的网站了。）<br/>&nbsp;&nbsp;&nbsp;&nbsp;虽然说“豆丸”有点好玩，但也只是有点好玩。视频站总要依赖带宽，网速慢的话那个“换”的效果似乎就不是很好了。不过还是感谢土豆的新产品，新体验。<br/>&nbsp;&nbsp;&nbsp;&nbsp;我瞎说了这么多你自己去看看吧！访问地址是：<a href="http://douwan.tudou.com/" target="_blank">http://douwan.tudou.com/</a><br/>]]></description><category>互联网</category><comments>http://www.sunthink.org/post/20.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=20</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=20&amp;key=539b6abb</trackback:ping></item><item><title>彻底弄清楚haslayout概念[转]</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/haslayout.html</link><pubDate>Wed, 19 Aug 2009 10:07:16 +0800</pubDate><guid>http://www.sunthink.org/post/haslayout.html</guid><description><![CDATA[要想更好的理解 css， 尤其是 IE 下对 css 的渲染，haslayout 是一个非常有必要彻底弄清除的概念。大多IE下的显示错误，就是源于 haslayout。<br/><br/><b><font size="4">什么是 haslayout ？</font></b><br/>haslayout 是Windows Internet Explorer渲染引擎的一个内部组成部分。在Internet Explorer中，一个元素要么自己对自身的内容进行计算大小和组织，要么依赖于父元素来计算尺寸和组织内容。为了调节这两个不同的概念，渲染引擎采用 了 hasLayout 的属性，属性值可以为true或false。当一个元素的 hasLayout 属性值为true时，我们说这个元素有一个布局（layout）<br/><br/>当一个元素有一个布局时，它负责对自己和可能的子孙元素进行尺寸计算和定位。简单来说，这意味着这个元素需要花更多的代价来维护自身和里面的内容， 而不是依赖于祖先元素来完成这些工作。因此，一些元素默认会有一个布局。当我们说一个元素“拥有layout”或“得到layout”，或者说一个元素 “has layout” 的时候，我们的意思是指它的微软专有属性 hasLayout 被设为了 true 。一个“layout元素”可以是一个默认就拥有 layout 的元素或者是一个通过设置某些 CSS 属性得到 layout 的元素。如果某个HTML元素拥有 haslayout 属性，那么这个元素的 haslayout 的值一定只有 true，haslayout 为只读属性 一旦被触发，就不可逆转。通过 IE Developer Toolbar 可以查看 IE 下 HTML 元素是否拥有haslayout，在 IE Developer Toolbar 下，拥有 haslayout 的元素，通常显示为“haslayout = -1”。<br/><br/>负责组织自身内容的元素将默认有一个布局，主要包括以下元素（不完全列表）：<br/><br/>* body and html<br/>* table, tr, th, td<br/>* img<br/>* hr<br/>* input, button, file, select, textarea, fieldset<br/>* marquee<br/>* frameset, frame, iframe<br/>* objects, applets, embed<br/><br/>对于并非所有的元素都默认有布局，微软给出的主要原因是“性能和简洁”。如果所有的元素都默认有布局，会对性能和内存使用上产生有害的影响。<br/><br/><b><font size="4">如何激发 haslayout？</font></b><br/>大部分的 IE 显示错误，都可以通过激发元素的 haslayout 属性来修正。可以通过设置 css 尺寸属性(width/height)等来激发元素的 haslayout，使其“拥有布局”。如下所示，通过设置以下 css 属性即可。<br/><br/>* display: inline-block<br/>* height: (任何值除了auto)<br/>* float: (left 或 right)<br/>* position: absolute<br/>* width: (任何值除了auto)<br/>* writing-mode: tb-rl<br/>* zoom: (除 normal 外任意值)<br/><br/>Internet Explorer 7 还有一些额外的属性(不完全列表):<br/><br/>* min-height: (任意值)<br/>* max-height: (除 none 外任意值)<br/>* min-width: (任意值)<br/>* max-width: (除 none 外任意值)<br/>* overflow: (除 visible 外任意值)<br/>* overflow-x: (除 visible 外任意值)<br/>* overflow-y: (除 visible 外任意值)<br/>* position: fixed<br/><br/>其中 overflow-x 和 overflow-y 是 css3 盒模型中的属性，目前还未被浏览器广泛支持。<br/><br/>对于内联元素(默认即为内联的元素，如 span，或 display:inline; 的元素)，<br/><br/>width 和 height 只在 IE5.x 下和 IE6 或更新版本的 quirks 模式下触发 hasLayout 。而对于 IE6，如果浏览器运行于标准兼容模式下，内联元素会忽略 width 或 height 属性，所以设置 width 或 height 不能在此种情况下令该元素具有 layout。 <br/>zoom 总是可以触发 hasLayout，但是在 IE5.0 中不支持。 <br/>具有“layout” 的元素如果同时 display: inline ，那么它的行为就和标准中所说的 inline-block 很类似了：在段落中和普通文字一样在水平方向和连续排列，受 vertical-align 影响，并且大小可以根据内容自适应调整。这也可以解释为什么单单在 IE/Win 中内联元素可以包含块级元素而少出问题，因为在别的浏览器中 display: inline 就是内联，不像 IE/Win 一旦内联元素拥有 layout 还会变成 inline-block。<br/><br/><b><font size="4">haslayout 问题的调试与解决</font></b><br/>当网页在 IE 中有异常表现时，可以尝试激发 haslayout 来看看是不是问题所在。常用的方法是给某元素 css 设定 zoom:1 。使用 zoom:1 是因为大多数情况下，它能在不影响现有环境的条件下激发元素的 haslayout。而一旦问题消失，那基本上就可以判断是 haslayout 的原因。然后就可以通过设定相应的 css 属性来对这个问题进行修正了。建议首先要考虑的是设定元素的 width/height 属性，其次再考虑其他属性。<br/><br/>对 IE6 及更早版本来说，常用的方法被称为霍莉破解(Holly hack)，即设定这个元素的高度为 1% (height:1%;)。需要注意的是，当这个元素的 overflow 属性被设置为 visible 时，这个方法就失效了。或者使用 IE 的条件注释。<br/><br/>对 IE7 来说，最好的方法时设置元素的最小高度为 0 (min-height:0;)。<br/><br/>haslayout 问题引起的常见 bug<br/>IE6 及更低版本的双空白边浮动 bug<br/>bug 修复: display:inline;<br/><br/>IE5-6/win 的 3 像素偏移 bug<br/>bug 修复: _height:1%;<br/><br/>E6 的躲躲猫(peek-a-boo) bug<br/>bug 修复: _height:1%;<br/><br/>原文地址：http://www.iwanna.cn/archives/2009/08/18/2165/<br/>]]></description><category>前端</category><comments>http://www.sunthink.org/post/haslayout.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=19</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=19&amp;key=8b83be41</trackback:ping></item><item><title>HTML4默认样式</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/17.html</link><pubDate>Mon, 17 Aug 2009 14:26:24 +0800</pubDate><guid>http://www.sunthink.org/post/17.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;这是w3c组织给出html4的样式建议，可惜浏览器们都加上自己的私有属性，让标准成了浮云。不过对于我们仍然是很有参考意义的。<br/>Appendix D. Default style sheet for HTML 4<br/>This appendix is informative, not normative.<br/><br/>This style sheet describes the typical formatting of all HTML 4 ([HTML4]) elements based on extensive research into current UA practice. Developers are encouraged to use it as a default style sheet in their implementations. <br/><br/>The full presentation of some HTML elements cannot be expressed in CSS 2.1, including replaced elements ("img", "object"), scripting elements ("script", "applet"), form control elements, and frame elements. <br/><br/>For other elements, the legacy presentation can be described in CSS but the solution removes the element. For example, the FONT element can be replaced by attaching CSS declarations to other elements (e.g., DIV). Likewise, legacy presentation of presentational attributes (e.g., the "border" attribute on TABLE) can be described in CSS, but the markup in the source document must be changed. <br/><br/>[CODE=css]html, address,<br/>blockquote,<br/>body, dd, div,<br/>dl, dt, fieldset, form,<br/>frame, frameset,<br/>h1, h2, h3, h4,<br/>h5, h6, noframes,<br/>ol, p, ul, center,<br/>dir, hr, menu, pre   { display: block }<br/>li              { display: list-item }<br/>head            { display: none }<br/>table           { display: table }<br/>tr              { display: table-row }<br/>thead           { display: table-header-group }<br/>tbody           { display: table-row-group }<br/>tfoot           { display: table-footer-group }<br/>col             { display: table-column }<br/>colgroup        { display: table-column-group }<br/>td, th          { display: table-cell }<br/>caption         { display: table-caption }<br/>th              { font-weight: bolder; text-align: center }<br/>caption         { text-align: center }<br/>body            { margin: 8px }<br/>h1              { font-size: 2em; margin: .67em 0 }<br/>h2              { font-size: 1.5em; margin: .75em 0 }<br/>h3              { font-size: 1.17em; margin: .83em 0 }<br/>h4, p,<br/>blockquote, ul,<br/>fieldset, form,<br/>ol, dl, dir,<br/>menu            { margin: 1.12em 0 }<br/>h5              { font-size: .83em; margin: 1.5em 0 }<br/>h6              { font-size: .75em; margin: 1.67em 0 }<br/>h1, h2, h3, h4,<br/>h5, h6, b,<br/>strong          { font-weight: bolder }<br/>blockquote      { margin-left: 40px; margin-right: 40px }<br/>i, cite, em,<br/>var, address    { font-style: italic }<br/>pre, tt, code,<br/>kbd, samp       { font-family: monospace }<br/>pre             { white-space: pre }<br/>button, textarea,<br/>input, select   { display: inline-block }<br/>big             { font-size: 1.17em }<br/>small, sub, sup { font-size: .83em }<br/>sub             { vertical-align: sub }<br/>sup             { vertical-align: super }<br/>table           { border-spacing: 2px; }<br/>thead, tbody,<br/>tfoot           { vertical-align: middle }<br/>td, th, tr      { vertical-align: inherit }<br/>s, strike, del  { text-decoration: line-through }<br/>hr              { border: 1px inset }<br/>ol, ul, dir,<br/>menu, dd        { margin-left: 40px }<br/>ol              { list-style-type: decimal }<br/>ol ul, ul ol,<br/>ul ul, ol ol    { margin-top: 0; margin-bottom: 0 }<br/>u, ins          { text-decoration: underline }<br/>br:before       { content: "\A"; white-space: pre-line }<br/>center          { text-align: center }<br/>:link, :visited { text-decoration: underline }<br/>:focus          { outline: thin dotted invert }<br/><br/>/* Begin bidirectionality settings (do not change) */<br/>BDO[DIR="ltr"]  { direction: ltr; unicode-bidi: bidi-override }<br/>BDO[DIR="rtl"]  { direction: rtl; unicode-bidi: bidi-override }<br/><br/>*[DIR="ltr"]    { direction: ltr; unicode-bidi: embed }<br/>*[DIR="rtl"]    { direction: rtl; unicode-bidi: embed }<br/><br/>@media print {<br/>  h1            { page-break-before: always }<br/>  h1, h2, h3,<br/>  h4, h5, h6    { page-break-after: avoid }<br/>  ul, ol, dl    { page-break-before: avoid }<br/>}[/CODE]<br/><br/><a href="http://www.w3.org/TR/CSS21/sample.html" target="_blank">Appendix D. Default style sheet for HTML 4</a><br/>]]></description><category>前端</category><comments>http://www.sunthink.org/post/17.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=17</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=17&amp;key=6a055a3d</trackback:ping></item><item><title>ie6的默认样式</title><author>345411190@qq.com (admin)</author><link>http://www.sunthink.org/post/16.html</link><pubDate>Mon, 17 Aug 2009 14:20:50 +0800</pubDate><guid>http://www.sunthink.org/post/16.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;这其实不是ie官方的文档，好像是别人经过实践搞出来的ie6的默认样式，这个对我们驯服ie6很有参考价值。你会从根本理解ie出现的那些bug的原因。不过可惜ie不像firefox哪样通过在地址栏输入命令来直接查看firefox的默认样式。<br/>[CODE=css]=======================================<br/>INTERNET EXPLORER 6 DEFAULT STYLE SHEET<br/>=======================================<br/><br/>****** HYPOTHETICAL *******************<br/><br/>This is a work in progress.<br/>Values are purely indicative.<br/>For any suggestion or addenda,<br/>please<br/>contact me.<br/><br/>[Back to CSS Test]<br/><br/>================================<br/><br/><br/>/* Standard HTML elements <br/>============================ <br/><br/>Compare with the default style sheet<br/>for HTML 4 (local copy).<br/>These values may be affected by the<br/>hasLayout property.<br/>We will not take in account  <br/>the frame and frameset elements.<br/>The table elements are not reviewed, due to<br/>the lack of support for the corresponding<br/>'display' values. */<br/>The uncertain values are marked with '<' and '>'.<br/><br/><br/>/* Block-level elements */<br/><br/>html, body,<br/>div, p,<br/>blockquote,<br/>ul, ol, dl,<br/>dt, dd, address,<br/>form, fieldset,<br/>frame, frameset,<br/>h1, h2, h3, h4,<br/>h5, h6, hr, pre {display: block;}<br/><br/>head {display: none;}<br/><br/>html {margin: 0;}<br/><br/>body {margin: 8px;}<br/><br/>div {margin: 0;}<br/><br/>p {margin: 1em 0;}<br/><br/>blockquote {margin: 1em 40px;}<br/><br/>ul {margin: 1em 0 1em 40px; list-style-type: disc;}<br/><br/>li {display: list-item;}<br/><br/>ol {margin: 1em 0 1em 40px; list-style-type: decimal;}<br/><br/>ul ul {margin: 0 0 0 40px; list-style-type: circle;}<br/><br/>ul ul ul {margin: 0 0 0 40px; list-style-type: square;}<br/><br/>dl {margin: 1em 0;}<br/>dd {margin-left: 40px;}<br/><br/>address {margin: 1em 0; font-style: italic;}<br/><br/>form, fieldset {margin: 0;}<br/><br/>fieldset {border: 1px inset <sistem color>;}<br/><br/>h1, h2, h3, h4, h5, h6 {font-weight: bold;}<br/><br/>/* the following  font size and vertical values are purely indicative,<br/>since they depend on the font size/family set on the<br/>BODY element */<br/><br/>h1 {font-size: 2em; margin: .6em 0;}<br/>h2 {font-size: 1.5em; margin: .8em 0;}<br/>h3 {font-size: 1.1em; margin: 1em 0; }<br/>h4 {font-size: 1em; margin: 1.3em 0;}<br/>h5 {font-size: 0.8em; margin: 1.6em 0;}<br/>h6 {font-size: 0.6em; margin: 2.3em 0;}<br/><br/>hr {border: 2px outset <sistem color>;}<br/><br/>pre {margin: 1em 0; font-family: monospace; white-space: pre;}<br/><br/><br/><br/><br/>/* Inline elements */<br/><br/>a, i, cite, em, var, acronym,<br/>tt, code, kdb, samp, del, ins,<br/>u, dfn, sub, sup, big, small {display: inline; }<br/><br/>a:link {color: blue; text-decoration: underline; }<br/>a:visited {color: purple; text-decoration: underline;}<br/><br/>i, cite, em, var {font-style: italic;}<br/><br/>tt, code, kbd, samp {font-family: monospace;}<br/><br/>del {text-decoration: line-through;}<br/>u, ins {text-decoration: underline;}<br/><br/>sub {<br/>vertical-align: sub; <br/>font-size: smaller; <br/>line-height: <value>;<br/>} /* greater than 'normal' */<br/><br/>sup {<br/>vertical-align: super; <br/>font-size: smaller; <br/>line-height: <value>;<br/>} /* less than 'normal' */<br/><br/>big {font-size: larger;}<br/><br/>small {font-size: smaller;}<br/><br/>/* Replaced elements */<br/><br/>/* We will take in account only INPUT and TEXTAREA */<br/><br/>input, textarea {display: inline-block;}[/CODE]<br/><br/><a href="http://gabrieleromanato.altervista.org/css-test/internet-explorer-6-default-style-sheet/index.html" target="_blank">IE6默认样式表(INTERNET EXPLORER 6 DEFAULT STYLE SHEET)</a>]]></description><category>前端</category><comments>http://www.sunthink.org/post/16.html#comment</comments><wfw:comment>http://www.sunthink.org/</wfw:comment><wfw:commentRss>http://www.sunthink.org/feed.asp?cmt=16</wfw:commentRss><trackback:ping>http://www.sunthink.org/cmd.asp?act=tb&amp;id=16&amp;key=e553ace2</trackback:ping></item></channel></rss>

