<?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>知易行难,知行合一 (Walk the Talk) &#187; html</title>
	<atom:link href="http://blog.alwayst.info/tag/html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.alwayst.info</link>
	<description>Blocked in China since Jan 6, 2011</description>
	<lastBuildDate>Mon, 12 Dec 2011 07:07:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>（译文）How HTML5 Will Change the Way You Use the Web</title>
		<link>http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web</link>
		<comments>http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web#comments</comments>
		<pubDate>Wed, 09 Dec 2009 07:45:53 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[study_note]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[lifehacker]]></category>
		<category><![CDATA[翻译]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=919</guid>
		<description><![CDATA[来源：Lifehacker 原文链接：点击这里 Firefox和Safari对它部分支持，Google的Wave和Chrome项目则对它完全支持，大部分web开发者对它的名字所蕴含的意义都满怀欣喜。它就是HTML5，如果你对它不是非常了解，那么好，让我们来解释一下。 图片取自 Bruce Lawson&#8217;s fantastic HTML5 presentation. 什么是HTML5？是那些神奇的链接标签吗？ HTML5是一种规范，规定了web的核心语言——HTML如何被组织和利用起来以实现诸多功能，如传输文字，图片，多媒体，web应用程序，搜索表单以及一些其他你在浏览器里所见的元素。可以说它基本上是一组核心标准，只有web开发人员才有必要真正对它有所了解。也可以说它是一个重大的改进版本，规定了web中的元素如何被扭到一起。并不是每个站点都会用到它，但那些用到的网站会更好地被现代的桌面及手机浏览器所接受（现代的意思也就是说，不包括Internet Explorer）。 HTML5里有些什么是可以令我值得期待的？ HTML5的那些重大变动早已经被做成了很多头条新闻，感谢Google, Apple, Mozilla和其他一些浏览器开发商选择这些新元素并将它们付诸实际。下面是一张简短的列表： 离线存储：有点“超级cookie”的味道，但是可以提供更大的空间以同时存放一次性数据和长期保存的应用程序数据库，比如email。其实，想一下Google Gear就可以了，和它很相像，只不过你无需安装插件就可以享受到便利了。 涂鸦板：站点可以在页面上标示一片区域，通过程序代码和用户交互，在这个区域里可以直接画上各种图片，图表，图案，游戏元素以及一些你能想到的东西而不需要Flash或是其他插件的帮助。 原生的视频流支持：这个功能尚处于开发阶段，其旨在统一纷繁复杂的视频格式，不过像YouTube和Pandora这样的站点总有一天会完全弃用Flash，直接将视频展现给你，另外回放和其他一些功能也一个不会缺。 地理标示：这就和它的字面意思一样，但不会再局限于单个服务商提供的API或者浏览器工具。HTML5会确定你所在的区域然后根据这个进行个性化，比如你的搜索结果，标记你的twitter更新，等等。能感知地理位置的设备可是件了不得的大事。 智能化表单：搜索框，文本输入和其他需要你输入的区域会得到更好的控制，比如聚焦，数据检验，和其他页面元素交互，发送emai，等等。听起来好像没那么牛逼，但是它意味着作为一个用户输入起来可以稍微省心一点，这总是一件好事。 Web应用程序集成：这里不谈数以万记的细节内容，公平的说HTML5在努力使得各种现代web元素（wiki，拖曳工具，讨论板，实时聊天，搜索框等等）从容地在任何站点构建起来，在浏览器里相互协同工作。 哪里能让我看到HTML5的实际应用？ 问得好！ 就在本页中，通过也许在不久的将来就变得可有可无的Flash，你可以观看这些视频阐述:（本博主注：Youtube视频，请自行翻墙观看。） Google I/O 2009 Keynote, pt. 1 Firefox 3.5 Treats Videos Like Web Pages: 如果你用的是最新版的Firefox, Safari, Chrome,Opera，或者那些经常更新的浏览器（包括Internet Explorer），那就试试下面这些链接吧。 HTML5 演示: 大量HTML5的功能展示，由Remy Sharp精心编辑。 欢迎来到Safari: 完全用HTML5和CSS 3写成. HTML5下的YouTube: 完全不需要Flash (目前为止，仅支持Chrome和Safari)。 涂鸦板和音频 一个简洁的交互式网站，用来显示正在使用#HTML的tweets，还包括了一些音频流和可交互的一些数据。 [...]]]></description>
			<content:encoded><![CDATA[<p>来源：Lifehacker</p>
<p>原文链接：点击<a onclick="javascript:pageTracker._trackPageview('/outbound/article/lifehacker.com');" href="http://lifehacker.com/5416100/" target="_blank">这里</a></p>
<hr /><img src="http://cache.gawker.com/assets/images/17/2009/12/500x_html5_evolution.jpg" alt="" width="600" /></p>
<p>Firefox和Safari对它部分支持，Google的Wave和Chrome项目则对它完全支持，大部分web开发者对它的名字所蕴含的意义都满怀欣喜。它就是HTML5，如果你对它不是非常了解，那么好，让我们来解释一下。</p>
<p><em>图片取自 <a href="http://www.slideshare.net/carsonified/the-future-of-html-5-by-bruce-lawson">Bruce Lawson&#8217;s fantastic HTML5 presentation</a>.</em></p>
<h3 style="font-size: 120%; margin-top: 20px;">什么是HTML5？是那些神奇的链接标签吗？</h3>
<p><a href="http://dev.w3.org/html5/spec/Overview.html">HTML5</a>是一种规范，规定了web的核心语言——HTML如何被组织和利用起来以实现诸多功能，如传输文字，图片，多媒体，web应用程序，搜索表单以及一些其他你在浏览器里所见的元素。可以说它基本上是一组核心标准，只有web开发人员才有必要真正对它有所了解。也可以说它是一个重大的改进版本，规定了web中的元素如何被扭到一起。并不是每个站点都会用到它，但那些用到的网站会更好地被现代的桌面及手机浏览器所接受（现代的意思也就是说，不包括Internet Explorer）。</p>
<h3 style="font-size: 120%; margin-top: 20px;">HTML5里有些什么是可以令我值得期待的？</h3>
<p><img src="http://cache.gawker.com/assets/images/lifehacker/2009/12/new_html5_tags.jpg" alt="" width="340" /></p>
<p>HTML5的那些重大变动早已经被做成了很多头条新闻，感谢Google, Apple, Mozilla和其他一些浏览器开发商选择这些新元素并将它们付诸实际。下面是一张简短的列表：</p>
<ul>
<li><strong>离线存储：</strong>有点“超级cookie”的味道，但是可以提供更大的空间以同时存放一次性数据和长期保存的应用程序数据库，比如email。其实，想一下Google Gear就可以了，和它很相像，只不过你无需安装插件就可以享受到便利了。</li>
<li><strong>涂鸦板：</strong>站点可以在页面上标示一片区域，通过程序代码和用户交互，在这个区域里可以直接画上各种图片，图表，图案，游戏元素以及一些你能想到的东西而不需要Flash或是其他插件的帮助。</li>
<li><strong>原生的视频流支持：</strong>这个功能尚处于开发阶段，其旨在统一纷繁复杂的视频格式，不过像YouTube和Pandora这样的站点总有一天会完全弃用Flash，直接将视频展现给你，另外回放和其他一些功能也一个不会缺。</li>
<li><strong>地理标示：</strong>这就和它的字面意思一样，但不会再局限于单个服务商提供的API或者浏览器工具。HTML5会确定你所在的区域然后根据这个进行个性化，比如你的搜索结果，标记你的twitter更新，等等。能感知地理位置的设备<a href="http://lifehacker.com/395171/how-your-location+aware-iphone-will-change-your-life" target="_blank">可是件了不得的大事</a>。</li>
<li><strong>智能化表单：</strong>搜索框，文本输入和其他需要你输入的区域会得到更好的控制，比如聚焦，数据检验，和其他页面元素交互，发送emai，等等。听起来好像没那么牛逼，但是它意味着作为一个用户输入起来可以稍微省心一点，这总是一件好事。</li>
<li><strong>Web应用程序集成：</strong>这里不谈数以万记的细节内容，公平的说HTML5在努力使得各种现代web元素（wiki，拖曳工具，讨论板，实时聊天，搜索框等等）从容地在任何站点构建起来，在浏览器里相互协同工作。</li>
</ul>
<p><span id="more-919"></span></p>
<h3 style="font-size: 120%; margin-top: 20px;">哪里能让我看到HTML5的实际应用？</h3>
<p>问得好！</p>
<p>就在本页中，通过也许在不久的将来就变得可有可无的Flash，你可以观看这些视频阐述:<span style="color: #ff0000;"><strong>（本博主注：Youtube视频，请自行翻墙观看。）</strong></span></p>
<p><strong><a href="http://www.youtube.com/watch?v=W4FbF8GKChk">Google I/O 2009 Keynote, pt. 1</a></strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="308" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/W4FbF8GKChk&amp;hl=en&amp;fs=1&amp;fmt=22" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="308" src="http://www.youtube.com/v/W4FbF8GKChk&amp;hl=en&amp;fs=1&amp;fmt=22" allowfullscreen="true"></embed></object><img style="display: none;" src="http://cache.gawker.com/assets/images/lifehacker/2009/12/w4fbf8gkchk.jpg" alt="" width="340" /></p>
<p><strong><a href="http://www.youtube.com/watch?v=3tLBLVtIk3A">Firefox 3.5 Treats Videos Like Web Pages</a>:</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="308" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/3tLBLVtIk3A&amp;hl=en&amp;fs=1&amp;fmt=22" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="308" src="http://www.youtube.com/v/3tLBLVtIk3A&amp;hl=en&amp;fs=1&amp;fmt=22" allowfullscreen="true"></embed></object><img style="display: none;" src="http://cache.gawker.com/assets/images/lifehacker/2009/12/3tlblvtik3a.jpg" alt="" width="340" /></p>
<p>如果你用的是最新版的Firefox, Safari, Chrome,Opera，或者那些经常更新的浏览器（包括Internet Explorer），那就试试下面这些链接吧。</p>
<p><strong><a href="http://html5demos.com/">HTML5 演示</a>:</strong> 大量HTML5的功能展示，由Remy Sharp精心编辑。</p>
<p><strong><a href="http://www.apple.com/safari/welcome/">欢迎来到Safari</a>:</strong> 完全用HTML5和CSS 3写成.</p>
<p><strong><a href="http://www.youtube.com/html5">HTML5下的YouTube</a>:</strong> 完全不需要Flash (目前为止，仅支持Chrome和Safari)。</p>
<p><strong><a href="http://9elements.com/io/projects/html5/canvas/">涂鸦板和音频</a></strong></p>
<p><img src="http://cache.gawker.com/assets/images/17/2009/12/500x_canvas_audio.jpg" alt="" width="500" /></p>
<p>一个简洁的交互式网站，用来显示正在使用#HTML的tweets，还包括了一些音频流和可交互的一些数据。</p>
<h3 style="font-size: 120%; margin-top: 20px;">为什么要推行HTML5？Flash和JavaScript不是已经做得很好了吗？</h3>
<p>不要误会了，HTML5对JavaScript和它的同类非常友好——事实上，新的标准里让类似JavaScript的代码更容易指向每个web页面或从每个web页面被移出。对于Flash, Silverlight还有其他浏览器插件，我们只能说它们是一些替补方案，其实HTML5就是尝试要补上这个本该原生支持的功能：在页面上放置和管理交互元素。</p>
<p><img src="http://cache.gawker.com/assets/images/lifehacker/2009/12/flash_install.jpg" alt="" width="340" /></p>
<p>Flash和他的一些同类是内存泄漏和崩溃的罪魁祸首，不仅如此，它们还必须在每个平台上重写不然无法运行。如果你想为尽可能多的人提供一种自适应的应用程序，那么理想的方法是做到<a href="http://www.readwriteweb.com/archives/one_mobile_app_for_multiple_platforms_a_reality.php" target="_blank">一次生成，平台无关</a>。智能手机，台式机，笔记本，Windows，Mac，Linux将web视为通用的应用程序存储端是一种最理想的模式，当越来越多的浏览器和开发者支持HTML5的音频，视频和交互标准，那么这一理想模式将变得不再遥远。</p>
<p>Apple尝试着在他们的首款iPhone发行版中推行这种想法。这个声明一经发布，很多类似的声明也纷纷出现。此后，web应用程序作为一个生产力的重要指标得以迅速扩展壮大，也越来越被人重视，而在当下日趋增加的开发者心里对非开源模式的应用程序市场的狂热也大幅降温。</p>
<p><img src="http://cache.gawker.com/assets/images/lifehacker/2009/12/wave_iphone.jpg" alt="" width="340" /></p>
<p>这并不是说由HTML5驱动的web应用程序会使我们现在所用的iPhone应用程序库，Android市场或者桌面级软件淘汰，毕竟web应用程序缺乏正规的本地存储，硬件接入和离线功能。但是但是chrome就利用到了HTML5的离线存储功能，看看它是如何在<a href="http://lifehacker.com/5408594/first-glimpse-at-google-chrome-os" target="_blank">上网本市场中定位Chrome操作系统</a>：一台性能稳定而运行流畅的第二电脑，你也经常会因为它的网络接入的方便性而使用它，即使频率算不上最高的。</p>
<h3 style="font-size: 120%; margin-top: 20px;">Html5通过什么办法影响到我的web?</h3>
<p>Html5不是软件，也不是硬性的web开发条例。它是一个共同参与，协同编辑的标准，规定形式非常宽泛，可以适应web浏览器开发者中各种不同的开发形式和指导思想。</p>
<p>说得更简单点，它取决于你用什么东西上网浏览以及网页制作者们遵循的标准是什么。</p>
<p><img src="http://cache.gawker.com/assets/images/lifehacker/2009/12/browser_compare.jpg" alt="" width="340" /></p>
<p>Firefox，Safari和Chrome的桌面级应用支持相当一部分HTML5草案规划中提及的形式和特征，比如离线存储，涂鸦板，最有趣的是音频和视频标签，它让站点上的多媒体数据流直接展现在你的浏览器上。Apple  iPhone上的Safari浏览器，Android浏览器和Opera手机浏览器同样支持HTML5的元素。想完整地了解你的浏览器在哪些方面支持HTML5？web技术男们花了好多时间把<a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29" target="_blank">有关的一切都放到了维基表格中</a>。</p>
<p>这些音频和视频标签可能并不像它们的名字那样的具有革新性。HTML5标准制定者——Google的Ian Hickson和Apple的Davd Hyatt——想为视频流定义一种简单，标准的格式，但他们的雇主却更倾向于<a href="http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC">H.264/MPEG-4</a>标准，像Mozilla等开源项目公司对这种专利所造成的束缚更是深恶痛绝，而Opera和其他web公司可不那么喜欢缴纳所谓的许可费。他们转而投入<a href="http://en.wikipedia.org/wiki/Theora">Theora</a>的怀抱，可能另一个名字更为（相对而言）为人熟知，Ogg Theora。就目前而言，HTML5不需要也不建议使用任何容器或解码器，也可以这么说，浏览器之间的差异被隐藏起来了。Ars Technica<a href="http://arstechnica.com/open-source/news/2009/07/decoding-the-html-5-video-codec-debate.ars" target="_blank">对HTML5的视频解码器争论分歧有很好理解</a>。</p>
<h3 style="font-size: 120%; margin-top: 20px;">深入阅读</h3>
<ul>
<li><strong><a href="http://en.wikipedia.org/wiki/HTML5#Differences_from_HTML_4.01.2FXHTML_1.x">HTML5 &#8211; 维基百科</a>:</strong> 我是认真的，要不然你还能从哪里开始呢？</li>
<li><strong><a href="http://dev.w3.org/html5/spec/spec.html">HTML5</a>:</strong> 制定者的草案，关于这一整套该死的标准。</li>
<li><strong><a href="http://diveintohtml5.org/">深入了解HTML5</a>:</strong> 由一个程序员撰写，在他尚未完工的工作中它通过代码向我们细致地阐述了HTML5的不同之处。</li>
<li><strong><a href="http://www.cmswire.com/cms/web-content/html-5-supersedes-web-forms-20-004054.php">HTML5 Supersedes论坛2.0</a>:</strong> 一份很好的阅读材料，关于HTML5在web表单方面的变动（我还没有非常理解，所以没办法向你准确表达）</li>
<li><strong><a href="http://www.slideshare.net/carsonified/the-future-of-html-5-by-bruce-lawson">未来的HTML 5 （作者：Bruce Lawson）</a>:</strong>用有趣，易于理解的图片向我们讲解HTML对web来说究竟意味着什么。</li>
</ul>
<hr />先说说html5，其实我连现在连html是几都搞不清，也玩不来，更不要说什么新功能了，像文中提到的离线存储、视频流、地理标识、涂鸦板之类，如果我会用的话。。。那估计我可以准备跳槽去真真正正地搞技术了。整篇文章读下来，没有弄得很明白，但像视频流这一块确实很令人期待，现在的视频格式真是弄得人眼花缭乱，听到容器、解码器之类的名词更是退避三舍，全部能统一成一个流格式，那是再好不过了。而弃用&lt;font&gt;之类的标签也是明智之举，只是。。只是。。本人的水平要用CSS来控制格式实在还是很不到家，没了&lt;font&gt;就真的要好好通读CSS了。</p>
<p>再说说翻译方面，只翻了一遍，没有进行过返工，感觉不好。但也就放这了，本人就是这个水平。其中有一句感觉特别难把味道翻出来：</p>
<blockquote><p>That pronouncement was, to put it mildly, roundly mocked.</p></blockquote>
<p>这句话意思是说：Apple发表声明说支持这个标准以后，很多公司也趋之若鹜。但其实也没有趋之若鹜那么夸张，只是表达一下跟进的公司之多的意思。主要是to put it mildly这个短语，难以翻译。Google Dictionary给出的解释是：</p>
<blockquote><p>You use <strong>to put it mildly</strong> to indicate that you are describing something in language that is much less strong, direct, or critical than what you really think.</p></blockquote>
<p>大家觉得怎么翻比较好？</p>
<p>最后做点笔记：</p>
<p><strong>nuts and bolts：</strong>the basic practical details of a subject or an activity；<span>基本要素;具体细节</span></p>
<p><strong>brethren：</strong>brother的复数形式，装B词汇，须牢记。</p>
<p><strong>nitty-gritty：</strong><span>If people get down to <strong>the</strong> <strong>nitty-gritty</strong> of a matter, situation, or activity, they discuss the most important, basic parts of it or facts about it.【俚】(问题的)核心;基本的事实;本质</span></p>
<p><strong>as it stands：</strong>as something is now, without changes to it<br />
e.g : The law as it stands is very unclear. As it stands, the Panel&#8217;s decisions can be reviewed by the courts.</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/laughter-with-regard-to-queuing-techniques" title="（译文）关于排队的技巧 2009.10.30">（译文）关于排队的技巧</a>(2)</li>
<li><a href="http://blog.alwayst.info/e4-b8-80-e7-a7-8d-e4-b8-88-e9-87-8f-e6-b3-95" title="一种丈量法 2009.09.9">一种丈量法</a>(3)</li>
<li><a href="http://blog.alwayst.info/repel-flies-with-a-bag-of-water" title="Repel Flies with a Bag of Water 2009.07.26">Repel Flies with a Bag of Water</a>(2)</li>
<li><a href="http://blog.alwayst.info/reading-note-about-family-relationship" title="Reading Note--about Family Relationship 2011.12.11">Reading Note--about Family Relationship</a>(0)</li>
<li><a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu" title="(译文)如何设置Ubuntu的swap区 2010.05.24">(译文)如何设置Ubuntu的swap区</a>(4)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/carnivorous_plants" title="(译文)Carnivorous Plants 2010.05.6">(译文)Carnivorous Plants</a>(0)</li>
<li><a href="http://blog.alwayst.info/a_new_approach_to_china_an_update" title="(译文)A new approach to China: an update 2010.03.23">(译文)A new approach to China: an update</a>(2)</li>
<li><a href="http://blog.alwayst.info/translation_5_buzz_tips" title="(译文)5 Buzz tips 2010.02.19">(译文)5 Buzz tips</a>(1)</li>
<li><a href="http://blog.alwayst.info/stop_google_buzz_leaking_your_privacy" title="Stop Google Buzz Leaking Your Privacy 2010.02.12">Stop Google Buzz Leaking Your Privacy</a>(1)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="" >anonymous</a> : <a class="comment_content" href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web#comment-373" title="View the entire comment by anonymous" >婉转地说，很多公司对此进行了彻底的“模仿”。


哈哈，其实这里的put it mildly，...</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web#comment-369" title="View the entire comment by T" >@anonymous  
是整句翻译哦，词组的意思我也知道。</a></li>
<li><a class="commentor" href="" >anonymous</a> : <a class="comment_content" href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web#comment-367" title="View the entire comment by anonymous" >put it mildly 说得好听点，说得委婉点~~~</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2009. |
<a href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web">Permalink</a> |
<a href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web#comments">3 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/html" rel="tag">html</a>, <a href="http://blog.alwayst.info/tag/html5" rel="tag">html5</a>, <a href="http://blog.alwayst.info/tag/lifehacker" rel="tag">lifehacker</a>, <a href="http://blog.alwayst.info/tag/%e7%bf%bb%e8%af%91" rel="tag">翻译</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HTML中的表格问题</title>
		<link>http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98</link>
		<comments>http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98#comments</comments>
		<pubDate>Mon, 14 Sep 2009 14:35:34 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=625</guid>
		<description><![CDATA[前两天碰到的问题，现在终于知道毛病出在哪里了，确实是自己没把HTML的各个标签吃透。 简单复述一下问题：希望实现一张2行的表格，其中第1行为2列。 错误html如下： &#60;table border=”0″&#62; &#60;tbody&#62; &#60;tr&#62; &#60;td&#62;111111111111111111111&#60;/td&#62; &#60;td&#62;111111111111111111111&#60;/td&#62; &#60;/tr&#62; &#60;tr&#62;222222222222222222222222222&#60;/tr&#62; &#60;tr&#62;333333333333333333333333333&#60;/tr&#62; &#60;/tbody&#62;&#60;/table&#62; 效果如下： 111111111111111111111 111111111111111111111 222222222222222222222222222 333333333333333333333333333 正确的html应该这么写 &#60;table border=”0″&#62; &#60;tbody&#62; &#60;tr&#62; &#60;td&#62;111111111111111111111&#60;/td&#62; &#60;td&#62;111111111111111111111&#60;/td&#62; &#60;/tr&#62; &#60;tr&#62; &#60;td colspan=2&#62;222222222222222222222222222&#60;/td&#62; &#60;/tr&#62; &#60;tr&#62; &#60;td colspan=2&#62;2333333333333333333333333333&#60;/td&#62; &#60;/tr&#62; &#60;/tbody&#62;&#60;/table&#62; 关键在于少了粗体的红字部分代码。每个&#60;tr&#62;标签（表示一行）中必要内嵌&#60;td&#62;标签（表示一列），即使行内只有一列，但光这样是不够的，效果会变成这样： 111111111111111111111 111111111111111111111 222222222222222222222222222 2333333333333333333333333333 也就是说第二、第三行无论多长都会和第一行的第一列等宽。所以这里还需要加上colspan，这个是什么意思的呢？它规定单元格可横跨的列数，colspan=2即意味着单元格可横跨两列，现在全部代码补齐以后，表格就正常了。 111111111111111111111 111111111111111111111 222222222222222222222222222 2333333333333333333333333333 O.K. Well done~ p.s : 更多关于&#60;colspan&#62;的介绍请参见这里，w3school，一个很强大的web技术教程网站。 Related Posts一个解决不了的简单问题(5) How to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.alwayst.info/?p=606" target="_blank">前两天碰到的问题</a>，现在终于知道毛病出在哪里了，确实是自己没把HTML的各个标签吃透。</p>
<p>简单复述一下问题：希望实现一张2行的表格，其中第1行为2列。</p>
<p>错误html如下：</p>
<blockquote><p><code><br />
&lt;table border=”0″&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;111111111111111111111&lt;/td&gt;<br />
&lt;td&gt;111111111111111111111&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;222222222222222222222222222&lt;/tr&gt;<br />
&lt;tr&gt;333333333333333333333333333&lt;/tr&gt;<br />
&lt;/tbody&gt;&lt;/table&gt;<br />
</code></p></blockquote>
<p>效果如下：</p>
<blockquote>
<table border="”0″">
<tbody>
<tr>
<td>111111111111111111111</td>
<td>111111111111111111111</td>
</tr>
<tr>222222222222222222222222222</tr>
<tr>333333333333333333333333333</tr>
</tbody>
</table>
</blockquote>
<hr />
<h2><strong>正确的html应该这么写</strong></h2>
<blockquote><p><code>&lt;table border=”0″&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;111111111111111111111&lt;/td&gt;<br />
&lt;td&gt;111111111111111111111&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
<span style="color: #ff0000;"><strong>&lt;td colspan=2&gt;</strong></span>222222222222222222222222222<span style="color: #ff0000;"><strong>&lt;/td&gt;</strong></span><br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
<span style="color: #ff0000;"><strong>&lt;td colspan=2&gt;</strong></span>2333333333333333333333333333<strong><span style="color: #ff0000;">&lt;/td&gt;</span></strong><br />
&lt;/tr&gt;<br />
&lt;/tbody&gt;&lt;/table&gt;</code></p></blockquote>
<p><strong>关键在于少了粗体的红字部分代码。每个&lt;tr&gt;标签（表示一行）中必要内嵌&lt;td&gt;标签（表示一列），即使行内只有一列</strong>，但光这样是不够的，效果会变成这样：</p>
<blockquote>
<table border="”0″">
<tbody>
<tr>
<td>111111111111111111111</td>
<td>111111111111111111111</td>
</tr>
<tr>
<td>222222222222222222222222222</td>
</tr>
<tr>
<td>2333333333333333333333333333</td>
</tr>
</tbody>
</table>
</blockquote>
<p>也就是说<strong>第二、第三行无论多长都会和第一行的第一列<span style="color: #ff0000;">等宽</span></strong>。所以这里还需要加上colspan，这个是什么意思的呢？<strong>它规定单元格可横跨的列数</strong>，colspan=2即意味着单元格可横跨两列，现在全部代码补齐以后，表格就正常了。</p>
<blockquote>
<table border="”0″">
<tbody>
<tr>
<td>111111111111111111111</td>
<td>111111111111111111111</td>
</tr>
<tr>
<td colspan="2">222222222222222222222222222</td>
</tr>
<tr>
<td colspan="2">2333333333333333333333333333</td>
</tr>
</tbody>
</table>
</blockquote>
<p><span style="color: #ff0000;"><strong>O.K. Well done~</strong></span></p>
<p>p.s : 更多关于&lt;colspan&gt;的介绍请参见<a href="http://www.w3school.com.cn/tags/att_td_colspan.asp" target="_blank">这里</a>，w3school，一个很强大的web技术教程网站。</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98" title="一个解决不了的简单问题 2009.09.12">一个解决不了的简单问题</a>(5)</li>
<li><a href="http://blog.alwayst.info/how-to-change-the-hints-settings-of-pentadactyl" title="How to change the hints settings of Pentadactyl 2011.08.25">How to change the hints settings of Pentadactyl</a>(0)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself" title="Fix the Problem which Ubuntu Cannot Root Itself 2010.10.17">Fix the Problem which Ubuntu Cannot Root Itself</a>(1)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web" title="（译文）How HTML5 Will Change the Way You Use the Web 2009.12.9">（译文）How HTML5 Will Change the Way You Use the Web</a>(3)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="" >langxue</a> : <a class="comment_content" href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98#comment-231" title="View the entire comment by langxue" >tr=table row
td=table date

其实了解了这个缩写就很容明白了。tr是...</a></li>
<li><a class="commentor" href="" >anonymous</a> : <a class="comment_content" href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98#comment-220" title="View the entire comment by anonymous" >今天不更新？~~~</a></li>
<li><a class="commentor" href="" >anonymous</a> : <a class="comment_content" href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98#comment-219" title="View the entire comment by anonymous" >你具有追根刨底， 打破砂锅问到底的精神！
我虽然不懂，但是我觉得，
简单的问题复杂化，吃透弄懂了...</a></li>
<li><a class="commentor" href="" >Yin</a> : <a class="comment_content" href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98#comment-217" title="View the entire comment by Yin" >精神可嘉！</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2009. |
<a href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98">Permalink</a> |
<a href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98#comments">4 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/html" rel="tag">html</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>一个解决不了的简单问题</title>
		<link>http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98</link>
		<comments>http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98#comments</comments>
		<pubDate>Fri, 11 Sep 2009 17:22:36 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=606</guid>
		<description><![CDATA[先看一段非常简单的代码，真的非常简单，懂一点皮毛的html即可 &#60;table border=&#8221;0&#8243;&#62; &#60;tbody&#62; &#60;tr&#62; &#60;td&#62;111111111111111111111&#60;/td&#62; &#60;td&#62;111111111111111111111&#60;/td&#62; &#60;/tr&#62; &#60;tr&#62;222222222222222222222222222&#60;/tr&#62; &#60;tr&#62;333333333333333333333333333&#60;/tr&#62; &#60;/tbody&#62;&#60;/table&#62; 我想实现的是一个三行的表格，其中第一行有两列。 但产生的实际效果如下所示： 111111111111111111111 111111111111111111111 222222222222222222222222222 333333333333333333333333333 看出毛病了吗？ 第二、第三行没有分隔开。 第二、第三行跳到了第一行前面。 我觉得一定是哪里犯低级错误了，可是我还真没找出来。。 所以。。 求解！ Related PostsHTML中的表格问题(4) How to change the hints settings of Pentadactyl(0) Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox(0) Fix the Problem which Ubuntu Cannot Root Itself(1) Some [...]]]></description>
			<content:encoded><![CDATA[<p>先看一段非常简单的代码，真的非常简单，懂一点皮毛的html即可</p>
<blockquote><p><code><br />
</code>&lt;table border=&#8221;0&#8243;&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;111111111111111111111&lt;/td&gt;<br />
&lt;td&gt;111111111111111111111&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;222222222222222222222222222&lt;/tr&gt;<br />
&lt;tr&gt;333333333333333333333333333&lt;/tr&gt;<br />
&lt;/tbody&gt;&lt;/table&gt;</p></blockquote>
<p>我想实现的是<strong>一个三行的表格，其中第一行有两列</strong>。</p>
<p>但产生的实际效果如下所示：</p>
<table border="0">
<tbody>
<tr>
<td>111111111111111111111</td>
<td>111111111111111111111</td>
</tr>
<tr>222222222222222222222222222</tr>
<tr>333333333333333333333333333</tr>
</tbody>
</table>
<p>看出毛病了吗？</p>
<ol>
<li><strong>第二、第三行没有分隔开。</strong></li>
<li><strong>第二、第三行跳到了第一行前面。</strong></li>
</ol>
<p>我觉得一定是哪里犯低级错误了，可是我还真没找出来。。</p>
<p>所以。。</p>
<h1 style="text-align: center;"><span style="color: #ff0000;"><strong>求解</strong>！</span></h1>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98" title="HTML中的表格问题 2009.09.14">HTML中的表格问题</a>(4)</li>
<li><a href="http://blog.alwayst.info/how-to-change-the-hints-settings-of-pentadactyl" title="How to change the hints settings of Pentadactyl 2011.08.25">How to change the hints settings of Pentadactyl</a>(0)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself" title="Fix the Problem which Ubuntu Cannot Root Itself 2010.10.17">Fix the Problem which Ubuntu Cannot Root Itself</a>(1)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/how-html5-will-change-the-way-you-use-the-web" title="（译文）How HTML5 Will Change the Way You Use the Web 2009.12.9">（译文）How HTML5 Will Change the Way You Use the Web</a>(3)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98#comment-216" title="View the entire comment by T" >@蓝冰  
哈，解决了哟，这里</a></li>
<li><a class="commentor" href="" >蓝冰</a> : <a class="comment_content" href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98#comment-212" title="View the entire comment by 蓝冰" >不懂，飘过。</a></li>
<li><a class="commentor" href="http://" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98#comment-202" title="View the entire comment by T" >@冰古  
sigh, 也许是，也许不是，手头暂时没有网页编辑器。有空了随便去试一下。</a></li>
<li><a class="commentor" href="http://bingu.net" >冰古</a> : <a class="comment_content" href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98#comment-200" title="View the entire comment by 冰古" >你把代码放到单独的html上试试。WordPress可能会改变代码的。</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2009. |
<a href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98">Permalink</a> |
<a href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98#comments">5 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/html" rel="tag">html</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

