<?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>搜聚-SeoRss.cn</title>
	<atom:link href="http://www.seorss.cn/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seorss.cn</link>
	<description>面向互联网前端开发、搜索引擎优化内容聚合</description>
	<lastBuildDate>Thu, 02 Jul 2009 07:45:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何将样式表加入到网页中</title>
		<link>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/how-to-style-sheet-to-your-page/</link>
		<comments>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/how-to-style-sheet-to-your-page/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 07:41:11 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[XHTML/CSS 基础]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css基础]]></category>
		<category><![CDATA[样式表]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=248</guid>
		<description><![CDATA[可以用以下三种方式将样式表加入到网页中，链入外部样式表文件、定义内部样式块对象、内联定义。最接近目标的样式定义优先权越高。高优先权样式将继承低优先权样式的未重叠定义，但覆盖重叠的定义。]]></description>
			<content:encoded><![CDATA[<p>你可以用以下三种方式将样式表加入到网页中。最接近目标的样式定义优先权越高，高优先权样式将继承低优先权样式的未重叠定义但覆盖重叠的定义。</p>
<p>1)链入外部样式表文件<br />
你可以先建立外部样式表文件（.css），然后使用HTML的link对象。示例如下：<br />
&lt;head&gt;<br />
&lt;title&gt;title of article&lt;/title&gt;<br />
&lt;link rel=stylesheet href=&#8221;http://www.dhtmlet.com/rainer.css&#8221; type=&#8221;text/css&#8221;&gt;<br />
&lt;/head&gt;<span id="more-248"></span><br />
2)定义内部样式块对象<br />
你可以在你的HTML文档的&lt;HTML&gt;和&lt;BODY&gt;标记之间插入一个&lt;STYLE&gt;&#8230;&lt;/STYLE&gt;块对象。 定义方式请参阅样式表语法。示例如下：<br />
&lt;html&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;!&#8211;<br />
body {font: 10pt &#8220;Arial&#8221;}<br />
h1 {font: 15pt/17pt &#8220;Arial&#8221;; font-weight: bold; color: maroon}<br />
h2 {font: 13pt/15pt &#8220;Arial&#8221;; font-weight: bold; color: blue}<br />
p {font: 10pt/12pt &#8220;Arial&#8221;; color: black}<br />
&#8211;&gt;<br />
&lt;/style&gt;<br />
&lt;body&gt;<br />
请注意，这里将style对象的type属性设置为&#8221;text/css&#8221;，是允许不支持这类型的浏览器忽略样式表单。</p>
<p>3)内联定义<br />
内联定义即是在对象的标记内使用对象的style属性定义适用其的样式表属性。示例如下：<br />
&lt;p style=&#8221;margin-left: 0.5in; margin-right:0.5in&#8221;&gt;这一行被增加了左右的外补丁&lt;p&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/how-to-style-sheet-to-your-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>从SEO视角对网站进行诊断分析</title>
		<link>http://www.seorss.cn/index.php/search-engine-optimization-related/basic-seo/website-seo-analysis/</link>
		<comments>http://www.seorss.cn/index.php/search-engine-optimization-related/basic-seo/website-seo-analysis/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 05:02:46 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[SEO 基础]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SEO视角]]></category>
		<category><![CDATA[网站分析]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=246</guid>
		<description><![CDATA[在做SEO之前，一般都要对关键字进行分析诊断，本文概括了从SEO视角对网站进行诊断的步骤。]]></description>
			<content:encoded><![CDATA[<p><strong>SEO分析竞争对手网站的步骤</strong><br />
1. 这些网站规模有多大，网站本身有多少页?<br />
2. 收录了多少页?<br />
3. 这些网站的栏目设置?<br />
4. 内容是原创为主，还是采集的?<br />
5. 网站PR值?<br />
6. 域名注册时间?<br />
7. 网页关键词密度?<span id="more-246"></span><br />
<strong>SEO分析</strong><br />
8. 关键词出现的位置?<br />
9. 有没有一定的规律可以学习?<br />
10. 在雅虎查一下这些网站的外部链接有多少?<br />
11. 外部链接来自于什么地方，质量如何?<br />
12. 是大量的友情链接，垃圾链接?还是来自新闻门户?<br />
13. 网站是否放了竟价广告<br />
14. 网站的营销策略</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/search-engine-optimization-related/basic-seo/website-seo-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对网页图片进行SEO的16个方法</title>
		<link>http://www.seorss.cn/index.php/search-engine-optimization-related/advanced-seo/16-seo-image/</link>
		<comments>http://www.seorss.cn/index.php/search-engine-optimization-related/advanced-seo/16-seo-image/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 04:52:10 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[SEO 进阶]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[seo image]]></category>
		<category><![CDATA[SEO技巧]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=243</guid>
		<description><![CDATA[图片的SEO是网站搜索引擎优化中的最重要的部分之一。对网站的图片进行搜索引擎优化/SEO不仅会给网站带来更多额外的流量，还能带给访问者更好的用户体验。本文中总结了在图片优化中需要注意的16个技巧。 ]]></description>
			<content:encoded><![CDATA[<p>图片的SEO是网站搜索引擎优化中的最重要的部分之一。对网站的图片进行搜索引擎优化/SEO不仅会给网站带来更多额外的流量，还能带给访问者更好的用户体验。本文中总结了在图片优化中需要注意的16个技巧。 </p>
<p>1. 在图片的alt标签(替换文字)中加入关键字，这是图片SEO中的最重要的一点。</p>
<p>2. 标准的图片嵌入代码应当包含的5个关键性标签：src、width、height、alt和title。替换文字(alt )是为了给那些不能看到你文档中图像的浏览者提供文字说明。title是对图片的说明和额外补充，如果需要在鼠标经过图片时出现文字提示应该用属性 title。一般alt标签最为关键。<span id="more-243"></span></p>
<p>3. 给你的图片取个描述性的、包含你的目标关键字的文件名。如果你有一张图片是关于可爱的鹦鹉的，那么就应当使用像parrot.jpg这样具有描述性质的文件名，而不是使用 t123.jpg这类只是代号的名字，当然也可以让图片的文件名与ALT标签里面的内容相同或者一致。不要随随便便用这样的名字pic1234.jpg，而应该用描述更清楚的名字cute-parrot.jpg。</p>
<p>4. 图片和所在网页内容必须相关：浏览图片不是访问者访问网页的第一件事情，但是会让访问者在页面停留的时间更久一些。(根据眼睛追踪的研究结果，浏览网页时文字优先于图片，但看印刷文章时，人们会先看图片。虽然人们在看网页时会先看页面上的文字，但是图片会让他们停留的时间更久并对页面有更深刻的印象)</p>
<p>5. 在图片周围添加相关信息。如果你用Google搜索图片，会不难发现，在每张图片下会有一段描述性文字，其中关键字用粗体显示。Google图片搜索通过分析页面上图片附近的文字、图片标题以及许多其它元素来确定图片的内容。所以在图片周围添加包含关键字的描述信息将可以优化网站图片在搜索引擎中的排名。</p>
<p>6. 指向图片的链接要包含关键字。使用超链接打开图片，那么超链接的名字应当包含图片的关键字，比如你要链接一张可爱的鹦鹉的图片，就不宜使用“点击获得完整尺寸”等链接文字，而应当试着使用诸如“可爱的鹦鹉”之类的命名形式。</p>
<p>7. 使用Tag为图片打上标签。在使用像flickr之类的图片存储服务时，最好为图片加上tag。</p>
<p>8. 确保图片可以被搜索引擎抓取。设置网站的robots.txt文件保证图片文件可以被搜索蜘蛛抓取。记住不要使用java链接图片文件。如果你那样做的话，搜索引擎是无法检索到你的图片文档的。</p>
<p>9. 没有必要优化你网站上的所有的图片。比如模板中使用的图片、导航中的图片还有背景图片等等，我们不用为这些图片添加ALT标签，我们可以把这些图片放在一个单独的文件夹里。并通过设置robots.txt文件来阻止蜘蛛抓取这些图片。</p>
<p>你可以设置所有的蜘蛛都被阻止抓取这些图片：</p>
<p>　　User-agent: *</p>
<p>　　Disallow: /Images</p>
<p>　　也可以只阻止Google图片搜索蜘蛛抓取：</p>
<p>　　User-agent: Googlebot-Image</p>
<p>　　Disallow: /Images</p>
<p>10. 避免有重复的图片。举个例子，你的网站上的一张图片有三种形式存在：较小尺寸的图片，中等尺寸的图片，较大尺寸的图片。那么，不要让这三张图片都被索引到。处理这种情况的最好的方式是用robots.txt文件告诉蜘蛛不要抓取你不想被索引的图片版本。</p>
<p>11. 每个网页的图片数量尽量要少。</p>
<p>12. 注意图片的尺寸以适应搜索引擎，比如你链接的是一张壁纸，那么壁纸的大小就应当符合规范。 因为Google、百度等图片搜索都提供根据图片尺寸来搜索。</p>
<p>13. 经常更新图片。如果你的图片很长时间没有变化(图片尺寸、图片文件大小、图片位置和图片名称等没有发生变化)，其排名可能被降低，因为搜索引擎会怀疑图片内容是过时的。</p>
<p>14. 使用Google网站管理员增强型图片搜索功能。启用增强型图片搜索功能，Google 将使用 Google Image Labeler 等工具将你网站所包含的图片与标签相关联，以优化这些图片的索引并提高搜索质量。</p>
<p>15. 图片被盗用是一个很难避免的问题。我们可以在每张图片上加上一些文字，比如&#8221;photo by www.paidai.com&#8221; ，&#8221;image by www.paidai.com&#8221;等等。虽然并不能完全杜绝盗用，但至少别人要想使用你的图片就得花时间来重新编辑它。</p>
<p>16. 检查被搜索引擎图片搜索索引的图片收录情况。为了检查对网站图片的优化方法是否成功，需要监测搜索引擎对网站图片的收录率。方法是在http://images.google.cn/搜索栏中输入(将www.paidai.com替换成你需要查询的域名)。其他搜索引擎也有这样的功能。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/search-engine-optimization-related/advanced-seo/16-seo-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>提升设计品质的8个布局方案</title>
		<link>http://www.seorss.cn/index.php/front-end-related/application-analysis/8-layout-solutions-to-improve-your-designs/</link>
		<comments>http://www.seorss.cn/index.php/front-end-related/application-analysis/8-layout-solutions-to-improve-your-designs/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 03:22:42 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[应用分析]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[布局]]></category>
		<category><![CDATA[栅格化]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=211</guid>
		<description><![CDATA[网页设计中，内容组织恐怕是最至关重要、最影响设计品质的方面了。如何将信息组织到好的布局中，是一个网站的基础，并且应该在考虑外观之前就决定好。没有好的布局，网页信息流就不能正确传递，所有东西都不能建立起合理的联系。]]></description>
			<content:encoded><![CDATA[<p>网页设计中，内容组织恐怕是最至关重要、最影响设计品质的方面了。如何将信息组织到好的布局中，是一个网站的基础，并且应该在考虑外观之前就决定好。没有好的布局，网页信息流就不能正确传递，所有东西都不能建立起合理的联系。</p>
<p>在这篇文章中，我们将讨论八个布局解决方案/技巧，这些方案和技巧将有助于你创建整洁有序的内容布局。这八个技巧包括滑门(sliders)、标签式、渐进布局(progressive layouts)、结构网格、模态窗口(modal window)、翻转元素、手风琴效果(accordions)以及超大下拉菜单(mega drop-down-menus)。<span id="more-211"></span></p>
<p><strong>1. 滑动样式与传送带(Sliders and Carousels)</strong></p>
<p>滑门(Sliders)，也可称为传送带(carousels)，是一种有序的、交互性强、十分平滑地展示内容的方式。滑门样式是一个非常流行的技巧，大家都觉得它很好用，能让你在固定的区块内填充上大量内容。没有滑门的帮助，这些内容可能就要分开放到页面中的各个地方。而大多数时候，你在使用页面空间时总是捉襟见肘。或者，有些内容是你希望“用户要求”后才出现。这有助于让用户一次只关注一个内容区块，也符合他们自己的便利需求。</p>
<p><strong>滑门样式的实例</strong></p>
<p><strong>导航区提供缩略图与图标</strong></p>
<p>运用滑门和幻灯样式时，最好在导航区提供图标或缩略图，以便使导航更加简单直观。缩略图和图标给用户指出明路，向他们解释当前所在位置，以及有哪些浏览选项可供选择（比如说幻灯片的导航可以是水平的，也可以是垂直的）。另外，还能方便他们快速选择特定滑门页。</p>
<p><a href="http://www.panic.com/coda/" target="_blank">Coda</a>网站的滑门顶部设计了标签卡，他们使用的是“滑动门+标签卡”的混合样式。这个主意绝顶聪明，因为通过看缩略图，用户就能快速得知特定滑门页的内容。而且，这些图标也提供了强大的、令人印象深刻的、干净整洁的视觉支持。除了图标和标签你也可以在标题前加上小图片，或者只用数字也行。</p>
<div id="attachment_212" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-212" title="coda" src="http://www.seorss.cn/wp-content/uploads/2009/06/coda.jpg" alt="coda导航区截图" width="450" height="350" /><p class="wp-caption-text">coda导航区截图</p></div>
<p><strong> 用于展示产品的滑门样式</strong></p>
<p>与上面的例子对应，滑门不仅能用于大容量信息的组织，也能为用户浏览大量产品条目提供方便。 <a href="http://www.sourcebits.com/nerve/" target="_blank">SourceBits </a>(见下图)使用了多层滑门（一个水平的，一个垂直的），用唱片封面作为导航条目。</p>
<p>水平滑门两端都有大的圆形箭头图标，实时反映左右导航的可用性。滑动的时候有平滑的动画，用起来非常舒服。同时，你也能看到，各个元素间距都精心设计过，这有助于内容组织，也提升了可用性。鼠标滑过时，每个条目还有漂亮的聚光灯效果。</p>
<div id="attachment_213" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-213" title="nerve2" src="http://www.seorss.cn/wp-content/uploads/2009/06/nerve2.jpg" alt="sourcebits导航区截图" width="500" height="294" /><p class="wp-caption-text">sourcebits导航区截图</p></div>
<p><strong>垂直滑动的内容以及超大的水平“点击条”</strong></p>
<p>接下来看看 <a href="http://www.quicksnapper.com/" target="_blank">QuickSnapper</a> 的滑门。这是一个完美融入页面整体布局的十分好用的垂直滑门。滑门内容中有大量截屏图，内容被有序地组织起来。这个滑门最赞的地方就是上下方的按钮导航。按钮宽及整个滑门，大的按钮让“推拉”滑门更加容易。</p>
<p>还有，这些按钮的:active和:focus效果也很漂亮。</p>
<div id="attachment_214" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-214" title="quicksnapper" src="http://www.seorss.cn/wp-content/uploads/2009/06/quicksnapper.jpg" alt="QuickSnapper导航区截图" width="500" height="380" /><p class="wp-caption-text">QuickSnapper导航区截图</p></div>
<p><strong>滑门脚本</strong></p>
<p><strong>你可以参考下面的脚本、技巧和教程制作你自己的滑门：</strong><br />
<a href="http://http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-jquery/" target="_blank">Slick Accessible Slideshow using jQuery</a><br />
<a href="http://www.ndoherty.com/demos/coda-slider/1.1.1/" target="_blank">Coda-Slider 1.1.1</a><br />
<a href="http://www.flowplayer.org/tools/scrollable.html" target="_blank">jquery.scrollable 1.0.2</a><br />
<a href="http://plugins.jquery.com/project/agile-carousel" target="_blank">Create an Amazon Books Widget with jQuery and XML</a><br />
<a href="http://plugins.jquery.com/project/agile-carousel" target="_blank">Agile Carousel</a><br />
<a href="http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider" target="_blank">Easy Image or Content Slider</a><br />
<a href="http://jqueryfordesigners.com/slider-gallery/" target="_blank">Slider Gallery</a><br />
<a href="http://jqueryfordesigners.com/coda-slider-effect/" target="_blank">Coda Slider Effect</a><br />
<a href="http://zendold.lojcomm.com.br/icarousel/" target="_blank">iCarousel</a><br />
<strong>2.标签卡导航元素</strong></p>
<p>本质上标签卡导航和滑门效果是差不多的技巧。它们都能帮你把一大片内容放到一小块区域里。标签卡导航很常见，但也有很多不常见的运用方式。我们这里关注的是在一个页面内部的标签卡，而不是用于在不同页面之间跳转的标签样式主导航。标签卡很明显地将内容划分到不同区块，最终又把他们融合到占地面积很小的一个区块中。</p>
<p><strong>标签卡的样式范例</strong></p>
<p><strong>出众的背景，大的可点击区域，明显的分割</strong></p>
<p>第一个例子来自 <a href="http://www.apple.com/macpro/performance.html" target="_blank">Mac Pro</a>网站的“Performance”部分，其标签元素的组织非常值得学习。这些标签卡上的文字都十分易读，可点击区域很大，各标签视觉上的区分也很明显，这正是大部分用户期待的样式啊。你也应该能注意到，当前标签卡上还有着十分微妙的渐变背景，与主内容区块很好地融合在了一起。未激活的标签背景则略暗，主内容区块在其上有微弱的投影，这种做法加强了深度感和立体效果。十分简单而有效的技巧。</p>
<div id="attachment_216" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-216" title="macpro" src="http://www.seorss.cn/wp-content/uploads/2009/06/macpro.jpg" alt="macpro导航区截图" width="450" height="350" /><p class="wp-caption-text">macpro导航区截图</p></div>
<p><strong>按钮区分的简洁标签卡</strong></p>
<p>以下是另一个利用标签卡紧凑地展示信息的实例。根据 <a href="http://www.atebits.com/tweetie-iphone/" target="_blank">Atebits</a>的布局结构，介绍性内容的空间被挤压，不太适合做成多区块样式。所以他们介绍内容的三大部分被组织到了标签中，保持了布局的整洁有序。再一次地，当前标签卡的背景与主内容区融合，不活动标签卡则是较暗的灰色背景。你同样也会发现标签卡之间有着漂亮的分割线，使得每个标签卡看起来都像是独立的按钮。</p>
<div id="attachment_217" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-217" title="atebits" src="http://www.seorss.cn/wp-content/uploads/2009/06/tweetie.jpg" alt="atebits导航区截图" width="450" height="350" /><p class="wp-caption-text">atebits导航区截图</p></div>
<p><strong>为整个标签集提供清晰的分割线</strong></p>
<p><a href="http://www.bohemiancoding.com/fontcase/index.html" target="_blank">Fontcase</a> 的标签卡设计也很精妙，很有现代感。尽管在未激活标签之间没有分割线，当前标签却有明显的边线。你也能注意到，在整个标签集的上方和下方各有一条边线。标签卡使用了图标与留白来突出文字，提高了易用性。</p>
<div id="attachment_218" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-218" title="fontcase" src="http://www.seorss.cn/wp-content/uploads/2009/06/fontcase.jpg" alt="fontcase导航区截图" width="450" height="350" /><p class="wp-caption-text">fontcase导航区截图</p></div>
<p><strong>标签卡效果脚本</strong><br />
<a href="http://nettuts.com/html-css-techniques/how-to-create-a-slick-tabbed-content-area/" target="_blank">Create a Slick Tabbed Content Area using CSS &amp; jQuery</a><br />
<a href="http://www.barelyfitz.com/projects/tabber/" target="_blank">JavaScript tabifier</a><br />
<a href="http://www.kminek.pl/lab/yetii/" target="_blank">Yetii -  A JavaScript Tab Interface</a><br />
<a href="http://www.crackajax.net/tabs.php" target="_blank">Tabbed Page Interface</a><br />
<a href="http://blog.cutterscrossing.com/index.cfm/2007/6/15/Updated-JQuery-Nested-Tab-Set-with-Demo" target="_blank">Updated JQuery Nested Tab Set</a><br />
<a href="http://wiki.github.com/madrobby/scriptaculous/tabs" target="_blank">Scriptaculous Tabs</a><br />
<a href="http://www.nyokiglitter.com/tutorials/tabs.html" target="_blank">Accordian Tabs</a></p>
<p><strong>3. 模态窗口</strong></p>
<p>模态窗口（Modal windows），或者称为浮窗，一般用于在空间紧张的页面中展示额外信息。在模态窗口中，你可以放置放大版的图像、额外内容、警告/提示信息、视频等等。用模态窗口展示信息时，记得要同时明确地提示用户如何关闭它。</p>
<p>同时，用于打开模态窗口的链接、缩略图、图标或者其他图形元素，一定要保证与模态窗口要展示的内容有足够的关联。相似的图标、摘要、图形元素都能帮助用户建立原始链接与打开的窗口的联系。</p>
<p><strong>模态窗口的例子</strong></p>
<p><strong>运用到登录和注册流程中的浮窗</strong></p>
<p>模态窗口最典型的运用就是登录／注册窗口了（与诸如图像、音频、视频、Flash等“传统”媒体文件相比）。登录和注册表单不是用户每次浏览页面都要用到的必要部分，所占页面空间理所应当被节约下来。而使用浮窗，则又为用户省去了重开一个页面的时间，毕竟这只是一个很简单的非常用动作。他们能在网站的任何页面中登录/注册，而不用中断现有流程——只要网站的设计者能提供基于Ajax的“静悄悄的” 登录/注册。</p>
<p><a href="http://listen.grooveshark.com/" target="_blank">Grooveshark </a>整个站点的每一个页面中，这个漂亮的登录窗口都触手可及。注意，点击登录（ Login&gt; ）按钮后并不会载入一个新页面，而是直接把注册表单替换成了登陆表单（使用了手风琴效果）。非常方便，非常友好的用户界面。</p>
<div id="attachment_219" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-219" title="grooveshark" src="http://www.seorss.cn/wp-content/uploads/2009/06/grooveshark.jpg" alt="grooveshark注册区截图" width="450" height="350" /><p class="wp-caption-text">grooveshark注册区截图</p></div>
<p><strong>消隐页面/使用投影</strong></p>
<p>如果要使用模态窗口，让窗口下面的页面淡出焦点十分重要。你可以用半透明背景覆盖或者为窗口添加投影，或者两者结合。这么做有两个作用：一是能让用户将注意力集中到浮窗上，然后暂时忽视掉背后的页面。另外，也能增加窗口和页面之间的深度感和区分度，让人在视觉上觉得这窗口确实是漂浮着的。注意看下面的例子(<a href="http://www.kissmetrics.com/" target="_blank">KissMetrics</a>)，半透明的黑色背景让页面消隐，有助于登录浮窗暂时成为视觉重点。另外，取消和关闭窗口的按钮也设计得很好，够明显，够漂亮。</p>
<div id="attachment_220" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-220" title="kissmetrics" src="http://www.seorss.cn/wp-content/uploads/2009/06/kissmetrics.jpg" alt="kissmetrics登录区截图" width="500" height="325" /><p class="wp-caption-text">kissmetrics登录区截图</p></div>
<p><a href="http://www.realmacsoftware.com/rapidweaver/themes/index.php" target="_blank">RealMacSoftware </a>的浮窗只做了投影，而没有让整个页面消隐。只要深度感和区分度做得足够，这样也很有效。</p>
<div id="attachment_221" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-221" title="rapidweaver" src="http://www.seorss.cn/wp-content/uploads/2009/06/rapidweaver.jpg" alt="realmacsoftware区域截图" width="450" height="350" /><p class="wp-caption-text">realmacsoftware区域截图</p></div>
<p><strong>模态窗口的脚本</strong><br />
<a href="http://fancy.klade.lv/home" target="_blank">Fancy Lightbox</a><br />
<a href="http://www.lokeshdhakar.com/projects/lightbox2/" target="_blank">Lightbx 2</a><br />
<a href="http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm" target="_blank">Facebook Image/Content Viewer</a><br />
<a href="http://woork.blogspot.com/2008/01/lightbox-using-mootools-and-pathfusion.html" target="_blank">Woork Mootools Lightbox</a><br />
<a href="http://nyromodal.nyrodev.com/" target="_blank">nyroModal JQuery Plugin</a><br />
<a href="http://nyromodal.nyrodev.com/" target="_blank">JQuery Alert Dialog</a><br />
<a href="http://stickmanlabs.com/lightwindow/" target="_blank">LightWindow</a><br />
<a href="http://prototype-window.xilinus.com/" target="_blank">ThickBox 3.1</a></p>
<p><strong>4. 翻转元素 Rollover Elements</strong></p>
<p>翻转元素目前被越来越多地运用于商业网站、作品集站点和产品展示页。翻转元素的核心概念就是当用户鼠标移到某个按钮或网页元素上时，处于另一个布局区域的元素就自动显示出来。请看下面的例子深入了解我说的“翻转元素”究竟是什么。</p>
<p><strong>翻转实例</strong></p>
<p><strong>标签卡翻转</strong></p>
<p>下图是 <a href="http://www.getmiro.com/" target="_blank">Miro主页</a> 的截屏，他们设计了一个十分精妙的巨大翻转元素。这 本质上和滑门类似 —— 只不过内容切换时不需要点击罢了。</p>
<div id="attachment_222" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-222" title="miro" src="http://www.seorss.cn/wp-content/uploads/2009/06/miro.jpg" alt="miro导航区截图" width="450" height="350" /><p class="wp-caption-text">miro导航区截图</p></div>
<p><strong>小地方的微妙翻转</strong></p>
<p><a href="http://www.taoeffect.com/espionage/" target="_blank">TaoEffect </a>向我们完美展示了如何通过设计精巧漂亮的翻转元素来添加清爽整洁的额外信息（这种效果最早是应用于前文提到过的Coda网站，但我们选择了TaoEffect作为这一节的实例）。信息的展示十分友好，您只需要把鼠标移到按钮上即可。</p>
<p>访问网站你会发现，翻转时有非常轻柔的动画，垂直跳动 + 淡入淡出。你应该也能注意到它的背景是半透明的，跳出来的卡片边缘还有高光和投影，与背景很好的区分开来。</p>
<div id="attachment_223" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-223" title="espionage" src="http://www.seorss.cn/wp-content/uploads/2009/06/espionage.jpg" alt="taoeffect导航区截图" width="450" height="350" /><p class="wp-caption-text">taoeffect导航区截图</p></div>
<p><strong>内容地图上的翻转元素</strong></p>
<p><a href="http://onehub.com/features/user-home" target="_blank">OneHub</a> 则利用翻转元素实现了另一种效果。这个页面有点像地图，在不同区域做出了标注。鼠标移到标注上时，会显示该标注的额外信息。这种方法用在需要分区域详细解释的产品介绍页上将有特效。</p>
<div id="attachment_224" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-224" title="onehub" src="http://www.seorss.cn/wp-content/uploads/2009/06/onehub.jpg" alt="onehub导航区截图" width="500" height="325" /><p class="wp-caption-text">onehub导航区截图</p></div>
<p><strong>与幻灯切换结合的翻转元素</strong></p>
<p>另一个蛮有趣的设计来自 <a href="http://squaredeye.com/" target="_blank">SquaredEye</a> —— 他们在导航按钮上用翻转元素来展示下一页内容的预览图。</p>
<div id="attachment_225" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-225" title="squaredeye" src="http://www.seorss.cn/wp-content/uploads/2009/06/sq.jpg" alt="squaredeye导航区截图" width="500" height="325" /><p class="wp-caption-text">squaredeye导航区截图</p></div>
<p><strong>小提示/翻转元素的脚本</strong><br />
<a href="http://www.nickstakenburg.com/projects/prototip2/" target="_blank">Prototip 2</a><br />
<a href="http://jqueryfordesigners.com/coda-popup-bubbles/" target="_blank">Coda Popup Bubbles</a><br />
<a href="http://net.tutsplus.com/tutorials/javascript-ajax/build-a-better-tooltip-with-jquery-awesomeness/" target="_blank">Build a Better Tooltip with jQuery Awesomeness</a><br />
<a href="http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/" target="_blank">jQuery plugin: Tooltip</a><br />
<a href="http://net.tutsplus.com/tutorials/javascript-ajax/create-a-simple-powerful-product-highlighter-with-mootools/" target="_blank">Create a Simple, Powerful Product Highlighter with MooTools</a><br />
<a href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery" target="_blank">Easiest Tooltip and Image Preview Using jQuery</a></p>
<p><strong>5. 渐进布局Progressive Layouts</strong></p>
<p>“渐进布局”的意思是站点内容按照一定的顺序一块一块地显示给用户。这种组织内容的做法比较反常，但也能在很多网站上看到。渐进布局能帮助用户更容易地深入一长串信息。</p>
<p><strong>渐进布局的实例</strong></p>
<p><strong>整个站点都由渐进布局构成</strong></p>
<p><a href="http://www.sursly.com/#tyler" target="_blank">Sursly.com</a>的整个作品集站点都基于渐进布局。您应该能注意到，页面右上角有一个“GO”按钮，每一页面都是从上一页面中的GO按钮链接过来的。这种页面之间的渐进系统代替了传统的导航和菜单。当然，这样做也有一个很明显的缺点：导航的交互性下降了，用户只能按照网站建设者想要的顺序获取内容。</p>
<p>尽管单个页面布局能被存为书签（使用# 锚记），但对于随机访问者来说，则无法通过一个明晰的导航对站点内容建立起直接的整体感知。而且，这种布局一般只有一个“航向”，从易用性的角度上来说，所谓“导航”的概念在这里几乎不能适用。</p>
<div id="attachment_226" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-226" title="tyler" src="http://www.seorss.cn/wp-content/uploads/2009/06/tyler.jpg" alt="sursly导航区截图" width="450" height="350" /><p class="wp-caption-text">sursly导航区截图</p></div>
<p><strong>垂直方向的渐进布局</strong></p>
<p><a href="http://www.dannyblackman.com/" target="_blank">Danny Blackman</a> 的作品集也是仅通过一张渐进式布局页面来实现的。各块元素相互独立，在一张页面上垂直展示。相邻元素之间有滚动按钮，每个元素都有返回顶部的按钮。菜单或所谓导航还是没有被使用。</p>
<div id="attachment_227" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-227" title="dannyblackman" src="http://www.seorss.cn/wp-content/uploads/2009/06/dannyblackman.jpg" alt="dannyblackman导航区截图" width="450" height="350" /><p class="wp-caption-text">dannyblackman导航区截图</p></div>
<p><strong>ScrollTo 脚本</strong><br />
<a href="http://plugins.jquery.com/project/ScrollTo" target="_blank">ScrollTo</a> &#8211; 使用这个jQuery插件，就能轻松建立渐进式布局。</p>
<p><strong>6. 网格</strong></p>
<p>讨论布局的文章是不可能避开网格不谈的。网格通常被认为是任何平衡、有序、简练的网页布局的基础。很多设计师都认为网格是处理信息容量很大的页面时的必备武器。有时候单独使用网格就能很好的展示信息，甚至不需要其他技巧。好的网格能够将一个页面中的全部内容都整合进流动布局里，而内容的可读性，或者如果用户想快速浏览，都不会受到影响。</p>
<p>下面的网站使用了严格的网格布局。整个站点只有一张页面，需要融入大量信息。不过，全部信息被整合进这整洁的两栏布局网格中。整个布局严谨、强健、稳固，留白恰到好处。浏览或仔细研读内容都非常方便。</p>
<div id="attachment_228" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-228" title="neutron" src="http://www.seorss.cn/wp-content/uploads/2009/06/neutron.jpg" alt="neutron截图" width="500" height="325" /><p class="wp-caption-text">neutron截图</p></div>
<p><strong>使用不同背景区分网格区域</strong></p>
<p>使用网格一般是因为你需要在一个很紧凑的区域内放置大量内容。你想要创建整洁有序的网站布局，但是又不能随意添加很多留白来区分区块。如此的话，你就需要使用不同背景来区分网格区域。没了网格间的大量留白，只要网格内还有少量的内边距，也可以看起来很不错。<a href="http://valleycreek.org/" target="_blank">Valleycreek.org </a>就用了这种战术，尽管已经有一条细线来分割网格区域，背景色的差异还是被用到，以提供更明显的区分。</p>
<div id="attachment_229" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-229" title="valleycreek" src="http://www.seorss.cn/wp-content/uploads/2009/06/valleycreek.jpg" alt="valleycreek截图" width="450" height="350" /><p class="wp-caption-text">valleycreek截图</p></div>
<p><strong>网格生成器、模版和更多工具</strong></p>
<p><a href="http://www.gridsystemgenerator.com/" target="_blank">Grid System Generator</a><br />
<a href="http://spry-soft.com/grids/" target="_blank">Variable Grid Systems Generator</a><br />
<a href="http://960.gs/" target="_blank">960 Grid System</a><br />
<a href="http://grid.mindplay.dk/" target="_blank">Grid Designer</a><br />
<a href="http://www.29digital.net/grid/" target="_blank">Grid Calculator</a><br />
<a href="http://www.smashingmagazine.com/2009/01/27/css-typographic-tools-and-techniques/" target="_blank">50 Useful Design Tools For Beautiful Web Typography </a>(including grid-resources)</p>
<p><strong>7. 手风琴效果（折叠菜单）</strong></p>
<p>折叠菜单和滑动门以及标签卡涉及同一个概念：把大量信息压缩到一小块区域里。“手风琴效果”指的是一些被水平或垂直组织的区块，通过点击，一个内容区块滑向另一个区块，并将其内部内容展示出来，和手风琴的推拉过程有点相似。</p>
<p><strong>手风琴效果的实例</strong></p>
<p><strong>功能性和大点击区域</strong></p>
<p><a href="http://www.alexcohaniuc.com/" target="_blank">Alex Cohaniuc</a>的手风琴菜单设计的很好。把作品项目藏到手风琴里是的做法其实挺有道理的，因为这能把每个项目的不必要信息隐藏起来，等访客有需要的时候再显示。说这项设计好是因为：一，每块画布的标题都很大，很好点击；二，每块标签卡都使用了一个小箭头来反映开合状态；三，鼠标滑过时，当前标签卡有将它区分出来的不同背景色。</p>
<div id="attachment_230" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-230" title="pf" src="http://www.seorss.cn/wp-content/uploads/2009/06/pf.jpg" alt="alexcohaniuc截图" width="500" height="375" /><p class="wp-caption-text">alexcohaniuc截图</p></div>
<p><strong>水平内容滚动</strong></p>
<p><a href="http://www.jasonreedwebdesign.com/" target="_blank">Jason Reed</a>使用手风琴将整个站点糅合进一张页面里。他没有赋予手风琴以特别不一般的视觉特征，而是让它融入了页面之中。另外，这是一个水平方向推拉的手风琴（尽管标签卡是垂直方向的）。请注意看他的标签卡，每个标签卡之间的距离很大，这些标签卡，或者说标题，并不像上一个例子有那么明显的区分，设计师利用了留白来将它们各自独立。鼠标移上去的时候，这些十分易读的标签就会变成橙色，让用户能够非常明确地了解到自己将要点击的标签后面都有什么。</p>
<div id="attachment_231" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-231" title="jasonreed" src="http://www.seorss.cn/wp-content/uploads/2009/06/jasonreed.jpg" alt="jasonreed截图" width="450" height="350" /><p class="wp-caption-text">jasonreed截图</p></div>
<p><strong>包含图像和信息的手风琴</strong></p>
<p><a href="http://www.mariusroosendaal.com/" target="_blank">Marius Roosendaal</a>使用另一个非常漂亮的手风琴来“储藏”他的作品图像。与上面两个例子一样，每一个内容区块都是一个项目的展示。不过，此例的手风琴里的每个图像还附加有一些文字介绍。你能注意到一个小按钮被用来显示/隐藏介绍。他同时也提供到更详细介绍或者更大预览图的链接。在一个小小的手风琴里当然不能塞进特别特别多的信息，所以如果可以的话，还是尽量给每个项目都加上到详细内容的链接吧。</p>
<div id="attachment_232" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-232" title="marius" src="http://www.seorss.cn/wp-content/uploads/2009/06/marius.jpg" alt="marius截图" width="450" height="350" /><p class="wp-caption-text">marius截图</p></div>
<p><strong>手风琴脚本</strong><br />
<a href="http://nettuts.com/javascript-ajax/create-a-simple-intelligent-accordion-effect-using-prototype-and-scriptaculous/" target="_blank">Create a Simple, Intelligent Accordion Effect Using Prototype and Scriptaculous</a><br />
<a href="http://jqueryfordesigners.com/slide-out-and-drawer-effect/" target="_blank">Apple.com Downoads Page Slide out and drawer effect</a><br />
<a href="http://docs.jquery.com/UI/Accordion" target="_blank">UI/API/1.7.1/Accordion jQuery Plugin</a><br />
<a href="http://jquery.bassistance.de/accordion/demo/" target="_blank">jQuery UI Accordion</a><br />
<a href="http://www.i-marco.nl/weblog/jquery-accordion-menu/" target="_blank">Simple JQuery Accordion menu</a><br />
<a href="http://www.i-marco.nl/weblog/jquery-accordion-menu/" target="_blank">jQuery Accordion Madness</a><br />
<a href="http://designreviver.com/tutorials/jquery-examples-horizontal-accordion/" target="_blank">jQuery Examples &#8211; Horizontal Accordion</a></p>
<p><strong> 8. 超大下拉菜单</strong></p>
<p>导航不一定非得是几个简单的超链接组合。最近，导航设计有一个流行趋势：不仅仅提供“航向”选择，也提供网站内各“终点站”位置以及“终点站”之间的从属关系。所谓“超大”下拉菜单常见于电子常务网站，用于展示他们庞杂的商品分类。这种样式正成为设计趋势，因为它能通过普通的翻转就提供大量分类信息，而不需要用户额外的点击。</p>
<p><strong>超大下拉菜单的实例</strong></p>
<p>超大下拉菜单的一个经典例子是 <a href="http://guides.rubyonrails.org/contribute.html" target="_blank">Ruby On Rails Guide 的Guide Index</a>。这个菜单提供了一个组织良好、样式精美的二级导航。注意，与一般的做法不同，激活二级菜单需要用户点击，Guide Index右边有“切换” 图标，并且有着与将要弹出的二级菜单相融合的背景色。弹出的二级菜单也有细微的投影。</p>
<div id="attachment_233" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-233" title="ror" src="http://www.seorss.cn/wp-content/uploads/2009/06/ror.gif" alt="rubyonrails截图" width="500" height="325" /><p class="wp-caption-text">rubyonrails截图</p></div>
<div class="mceTemp"><strong>带更多信息的多级菜单</strong></div>
<div class="mceTemp"><strong></strong> </div>
<div class="mceTemp"><a href="http://www.porsche.com/usa/" target="_blank">Porsche</a>对于上面说到的技巧来说，简直是一个完美的例子。Porsche的主页提供一个多级菜单，让用户不用一次点击就能快速了解他们生产的所有汽车。第三级菜单中，所选汽车的信息被直接提供：包括图片、许多链接、以及其他关于本车的快读信息。当然，这个更大的区块就是一个巨大的可点击区域。所有细节和特别介绍都直接链到相应页面。要了解究竟是怎么回事，就点击下面的图片自己去看看吧！</div>
<div id="attachment_234" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-234" title="911" src="http://www.seorss.cn/wp-content/uploads/2009/06/911.gif" alt="porsche截图" width="500" height="375" /><p class="wp-caption-text">porsche截图</p></div>
<div class="mceTemp"><strong>在下拉列表里显示搜索结果</strong></div>
<div class="mceTemp">最近还比较流行的一个技巧和上面谈到的有点类似：在下拉列表里显示搜索结果。 <a href="http://kb.mediatemple.net/" target="_blank">Media Temple Knowledge Base</a> 就使用了这一技巧。他们没有使用一个新页面来显示用户的搜索结果，搜索结果在一个下拉列表里随着你的输入而实时变化。不过，请注意，完整搜索结果页的链接仍然存在，您若要在自己的设计中使用这种设计，还请不要忘记这一点。</div>
<div id="attachment_235" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-235" title="mediatemple" src="http://www.seorss.cn/wp-content/uploads/2009/06/mediatemple.jpg" alt="mediatemple截图" width="450" height="350" /><p class="wp-caption-text">mediatemple截图</p></div>
<div class="mceTemp"><strong>在下拉区块中显示额外信息</strong></div>
<div class="mceTemp"><strong></strong> </div>
<div class="mceTemp"><a href="http://www.gateway.com/" target="_blank">Gateway.com</a>继续登场。你能看到他们在顶部菜单中使用了超大的下拉区块来展示产品。下拉区块中的产品排列组织得非常好，图片提供了强健的视觉支持。这个菜单还提供了诸如价格和屏幕尺寸等额外信息，让顾客能够在查看具体页面之前就有所选择。因为很多人都很关心产品价格——至少对于很多有购买需求的人来说。</div>
<p><strong>菜单脚本</strong><br />
<a href="http://www.clarklab.net/blog/posts/animated-drop-down-menu-with-jquery/" target="_blank">Animated Drop Down Menu with jQuery</a><br />
<a href="http://users.tpg.com.au/j_birch/plugins/superfish/#examples" target="_blank">Superfish v1.4.8 &#8211; JQuery Drop Down Menu</a><br />
<a href="http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/" target="_blank">Make a Mega Drop-Down Menu with jQuery</a><br />
<a href="http://buildinternet.com/2009/01/how-to-make-a-smooth-animated-menu-with-jquery/" target="_blank">How to Make a Smooth Animated Menu with jQuery</a><br />
<a href="http://css-tricks.com/designing-the-digg-header-how-to-download/" target="_blank">Designing the Digg Header: How To &amp; Download</a><br />
<a href="http://www.kriesi.at/archives/create-a-multilevel-dropdown-menu-with-css-and-improve-it-via-jquery" target="_blank">Create a multilevel Dropdown menu with CSS and improve it via jQuery</a></p>
<div class="mceTemp">译文原文来自笨活儿，转载请保留本链接：<a href="http://blog.benhuoer.com/posts/8-layout-solutions-to-improve-your-designs.html" target="_blank">提升设计品质的8个布局方案</a>。</div>
<div class="mceTemp">英文原文：<a href="http://www.smashingmagazine.com/2009/05/19/8-layout-solutions-to-improve-your-designs/" target="_blank">8 Layout Solutions To Improve Your Designs </a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/front-end-related/application-analysis/8-layout-solutions-to-improve-your-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO的关键：中文分词</title>
		<link>http://www.seorss.cn/index.php/search-engine-optimization-related/advanced-seo/seo-chinases-participle/</link>
		<comments>http://www.seorss.cn/index.php/search-engine-optimization-related/advanced-seo/seo-chinases-participle/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 17:05:21 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[SEO 进阶]]></category>
		<category><![CDATA[seo建议]]></category>
		<category><![CDATA[SEO技巧]]></category>
		<category><![CDATA[seo概念]]></category>
		<category><![CDATA[分词]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=206</guid>
		<description><![CDATA[在搜索引擎技术中，中文分词对于影响搜索引擎结果排序有着至关重要的作用。我们在实际的搜索引擎优化中，为了避免很多主关键词的大量竞争，也会使用到中文分词技术来做SEO优化。 ]]></description>
			<content:encoded><![CDATA[<p>在搜索引擎技术中，中文分词对于影响搜索引擎结果排序有着至关重要的作用。我们在实际的搜索引擎优化中，为了避免很多主关键词的大量竞争，也会使用到中文分词技术来做SEO优化。</p>
<p>举个简单的例子，假如我们需要优化一个内容是“轴承”的网页，那么想要这个关键词在搜索引擎中排名更好，那就是很难的一件事了。因为“轴承”这个关键词热度太高，所以想要通过SEO手段去将其优化到搜索结果的首页是一件非常难的事。在这个时候我们经常会使用长尾关键词去优化这样的高热度关键词，也就是说，我们经常会优化一些例如“北京轴承销售商”、“北京进口轴承”等这样的关键词。而想要把这样的关键词做到搜索结果的前列，对于中文分词技术的把握和对于关键词的布局，有很大的重要性。</p>
<p>中国的文字博大精深，不同的标点符号，不同的断句就代表着不同的意思。所以，曾经有一位Google的科学家说：“如果可以做好中文搜索引擎，那么我们就不怕任何语种的搜索引擎研究了”<span id="more-206"></span></p>
<p>那么中文分词在搜索引擎优化中到底具有怎样的意义呢？分词对SEO的影响是多方面的，最重要的就是对长尾流量的影响。例如说我们常常见到很多很想做的长尾关键词，例如广州进口轴承销售，上海进口轴承销售等等，但我们通过前文对于SEO的了解可以知道，一个页面做关键词不要超过三个，因为超过三个就会分散了每个关键词的权重，反而一个都做不好。但如果我们想超过三个又不影响呢？那么我们这时候就需要利用中文分词来对关键词进行组合了，例如：进口轴承销售-上海-广州。这样分出来的结果可能没有广州进口轴承销售或上海进口轴承销售的关键词来的直接，但用这样分词的办法却使到很多词都获得不错的效果。多个词排名在搜索引擎结果页的首位，总是要比一个关键词排名在第一位的覆盖面要广。久而久之，因为广州+进口轴承销售、上海+进口轴承销售这些页面让搜索引擎知道你的页面和“进口轴承销售”这个关键词相关度很高，因此进口轴承销售这个主关键词的排名也会相对提高。</p>
<p>当然，我们上面举得例子是还没有完全对于关键词进行完全的拆分。下面我们就对中文分词做一个粗略的讨论。</p>
<p>最早的中文分词办法是由北京航天航空大学的梁南元教授提出的，一种基于“查字典”的分词办法。例如这个句子：“著名导演张艺谋说国庆节晚上将安排十万人到天安门联欢。”</p>
<p>用 “查字典” 的分词方法，我们要做的就是把整个句子读一遍，然后把字典里有的词都单独标示出来，当遇到复合词的时候（例如北京大学），就找到最长的词匹配。遇到不认识的字符串就分割成单个文字。根据这样的办法，我们以上的文字可以切分为：</p>
<p>“著名 | 导演 | 张艺谋 | 说 | 国庆节 | 晚上 | 将 | 安排 | 十万人 | 到 | 天安门 | 联欢”</p>
<p>这样的分词办法虽然说可以应付很多的句子，但是由于细分的太多，在真正搜索引擎使用的过程中，到底哪一个词才是重点就无法表述，从而搜索引擎搜索出的结果也不能达到最大的相关度。于是在80年代，哈尔滨工业大学计算机博士生导师王晓龙博士提出了“最少词数”的分词理论，即为，一句话应该是分词最少的字符串，这样会更多的让搜索引擎更明白这句话到底是什么意思。但是这样的办法虽然更好，新的问题却也显现了出来。例如，我们在做“二义性”关键词组的时候，就不能说最长的分割就是最好的结果。举个例子，“吉利大学城书店”这个关键词正确的分词应该是“吉利 | 大学城 | 书店”而不是词典中的“吉利大学 | 城 | 书店 ”。</p>
<p><strong>目前，主流的分词办法有两种，一种是基于统计模型的文字处理，另外一种是基于字符串匹配的逆向最大匹配法。 </strong></p>
<p>基于统计模型的文字处理</p>
<p>从形式上看，词是稳定的字的组合，因此在上下文中，相邻的字同时出现的次数越多，就越有可能构成一个词。因此字与字相邻共现的频率或概率能够较好的反映成词的可信度。可以对语料中相邻共现的各个字的组合的频度进行统计，计算它们的互现信息。定义两个字的互现信息，计算两个汉字X、Y的相邻共现概率。互现信息体现了汉字之间结合关系的紧密程度。当紧密程度高于某一个阈值时，便可认为此字组可能构成了一个词。这种方法只需对语料中的字组频度进行统计，不需要切分词典，因而又叫做无词典分词法或统计取词方法。但这种方法也有一定的局限性，会经常抽出一些共现频度高、但并不是词的常用字组，例如“这一”、“之一 ”、“有的”、“我的”、“许多的”等，并且对常用词的识别精度差，时空开销大。实际应用的统计分词系统都要使用一部基本的分词词典（常用词词典）进行串匹配分词，同时使用统计方法识别一些新的词，即将串频统计和串匹配结合起来，既发挥匹配分词切分速度快、效率高的特点，又利用了无词典分词结合上下文识别生词、自动消除歧义的优点。</p>
<p>基于统计模型的文字处理，因为技术性比较高，而且只是使用在搜索引擎分词算法的过程中，如果学会，对于SEO的帮助会更大。这里更多的说一下基于字符串匹配的逆向最大匹配法。</p>
<p>SEO中使用最多的分词办法就是基于字符串匹配的逆向最大匹配法。我们以一个简单的例子来说明。</p>
<p>“瑞星一直以质量和服务开拓安全市场”。</p>
<p>如果这个句子我们以“查字典”的办法正向切分的话，就会切分成下面的句子。</p>
<p>“瑞星\一直以\质量和服\务开拓\安全市场”</p>
<p>我们可以看到，正向切分出现了一个重大的错误“和服”，而“和服”这个关键词是日本的传统服饰，和这句话的意思根本没有任何关系，如果真的这样去分词的话，那么在真正搜索引擎索引的过程中，我们搜索“和服”也会出现这样的错误结果。</p>
<p>因此我们开始做逆向最大匹配法。从这句话的后面往前读（从右向左）</p>
<p>“瑞星\一直以\质量和\服务开拓\安全市场”。</p>
<p>这个分词办法才是正确的。</p>
<p>在搜索引擎运行的机制中，有很多种中文分词的办法，例如文章中提到的正向最大匹配分词、逆向最大分析、基于统计的分词等。但是在实际的搜索引擎运行过程中，分词的办法却没有这么简单了。因为搜索引擎不仅仅要去考虑到分词结果的正确性，还需要考虑到对于分不出来的词的处理。</p>
<p>首先我们来讨论分词结果的准确度，一般来说，搜索引擎是使用多种分词的方式构成一个混合分词方式来进行分词的，因为这样可以让词汇最大化的、更准确的分开。混合分词的原理是：先使用专业词典进行分词，之后再使用普通词库进行一次分词。以一个简单的例子来说明这个问题。</p>
<p>例如我们现在有这样一句话“电子邮件营销”如果我们的词库中有“电子邮件”这个关键词，那么就可能会被分成是“电子邮件/营销”，如果没有这个词的话，那么就有可能被分为：“电子邮件\营销”这样我们就出现了一个问题，假如我们单纯的使用第一种分词方式和词库，那么我们如果单纯搜索“邮件”“营销”这样的关键词时，就找不到“电子邮件营销”这样的结果，同理，单纯的使用第二个词库，也找不到“电子邮件”这个词。</p>
<p>因此在这里我们就需要使用混合分词的办法了，我们拥有之上两个词库和两种以上的分词方法。同样的例子，如果我们加以综合，分词的结果就变成了下面的形式。</p>
<p>电子邮件营销=&gt;电子邮件邮件营销=&gt;电子邮件\营销</p>
<p>这样的分词方法，就可以帮助我们更多的获得准确的搜索结果</p>
<p>那么对于分不出来的词，搜索引擎又是如何操作的呢？</p>
<p>网络文化发展速度快的标志不仅仅是我们日益提高的硬件和网速，更多的是表现在新生词汇的诞生。那么新词刚刚出来的时候，搜索引擎并不知道怎么切分时，该怎么办呢？</p>
<p>例如前一段时间把百度百科推到风口浪尖的新词汇“草泥马”，这个新词的出现一定是百度所始料不及的，那么如果出现了下面的这样一句话，百度又是如何去分词的呢？</p>
<p>“草泥马是一种食草动物”</p>
<p>一般来说，搜索引擎遇到这样的关键词时，会采取一元分词+二元分词+混合分词+不分词的方式来解决这样的问题。如果是一元分词，那么这句话分出来的结果应该是：“草泥\马是\一种食草\动物”或者“草\泥马\是一种\食草动物”或者“草\泥马\是一种\食草\动物”</p>
<p>但是显然，这样的结果如果我们单纯搜索“草泥马”这个关键词时，是不会准确的被认为是相关内容的。因此，继续使用二元分词的办法“草泥泥马\是一种 食草\动物”。有了这个分词方式以后，我们原来句子出现在索引结果中的概率就变大，但是这个依然不是最好的，于是搜索引擎还有第三种方式——干脆不分，以保持新词的完整性。</p>
<p>在经过了这一系列的分词程序后，实际分词的结果是如同下面这样的。</p>
<p>草泥泥马\草泥马是\一种食草\食草\动物食草动物</p>
<p>OK ，我们现在已经知道了中文分词的一些办法，那么以上的两种分词办法对于我们的SEO有什么好处呢？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/search-engine-optimization-related/advanced-seo/seo-chinases-participle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex与服务器端数据交互(创建,读取,修改,删除)</title>
		<link>http://www.seorss.cn/index.php/flex/advanced-flex/flex-g-r-e-d/</link>
		<comments>http://www.seorss.cn/index.php/flex/advanced-flex/flex-g-r-e-d/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 00:44:02 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[Flex 进阶]]></category>
		<category><![CDATA[flex修改]]></category>
		<category><![CDATA[flex创建]]></category>
		<category><![CDATA[flex删除]]></category>
		<category><![CDATA[flex读取]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=202</guid>
		<description><![CDATA[Create, read, update and delete are the four basic functions of persistent storage. Flex applications can communicate with server-side scripts for data functionality. ]]></description>
			<content:encoded><![CDATA[<p>CRUD &#8211; Dynamic<br />
Create, read, update and delete (CRUD) are the four basic functions of persistent storage.<br />
Flex applications can communicate with server-side scripts for data functionality.<br />
Any server-side technology can be used as long as the result format is known.<br />
Returned XML data can easily be handled using E4X. <span id="more-202"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;">curd.mxml
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application xmlns<span style="color: #000000; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;http://www.adobe.com/2006/mxml&quot;</span>
 layout=<span style="color: #990000;">&quot;absolute&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
 <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>
   include <span style="color: #990000;">&quot;employees.as&quot;</span>;
  <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
 <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
 <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>HTTPService
        id=<span style="color: #990000;">&quot;employeesService&quot;</span>
        <span style="color: #004993;">url</span>=<span style="color: #990000;">&quot;http://www.flexmonkeys.com/F3GSE/PartIII/CRUD/employees.php&quot;</span>
        resultFormat=<span style="color: #990000;">&quot;e4x&quot;</span>
        useProxy=<span style="color: #990000;">&quot;false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span>
&nbsp;
 <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>ViewStack id=<span style="color: #990000;">&quot;viewstack1&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100%&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;100%&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Canvas label=<span style="color: #990000;">&quot;Form View&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100%&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;100%&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Form horizontalCenter=<span style="color: #990000;">&quot;0&quot;</span> verticalCenter=<span style="color: #990000;">&quot;0&quot;</span>
    <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;#FFFFFF&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem label=<span style="color: #990000;">&quot;Query Employees &quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Button label=<span style="color: #990000;">&quot;Submit&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;fill()&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem<span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Form<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Canvas<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Panel label=<span style="color: #990000;">&quot;DataGrid View&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100%&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;100%&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>DataGrid <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100%&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;100%&quot;</span> dataProvider=<span style="color: #990000;">&quot;{listData}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>columns<span style="color: #000000; font-weight: bold;">&gt;</span>
                     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>DataGridColumn dataField=<span style="color: #990000;">&quot;firstName&quot;</span> headerText=<span style="color: #990000;">&quot;First Name&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
                 <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>DataGridColumn dataField=<span style="color: #990000;">&quot;lastName&quot;</span> headerText=<span style="color: #990000;">&quot;Last Name&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
                 <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>DataGridColumn dataField=<span style="color: #990000;">&quot;officePhone&quot;</span> headerText=<span style="color: #990000;">&quot;Phone&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>columns<span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>DataGrid<span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Form <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;#FFFFFF&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem label=<span style="color: #990000;">&quot;Add New Employee&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Button label=<span style="color: #990000;">&quot;Add...&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;{viewstack1.selectedIndex = 2}&quot;</span>
      <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem<span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Form<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Panel<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Canvas label=<span style="color: #990000;">&quot;Add New Employee View&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100%&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;100%&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Form horizontalCenter=<span style="color: #990000;">&quot;0&quot;</span> verticalCenter=<span style="color: #990000;">&quot;0&quot;</span>
     <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;#FFFFFF&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem label=<span style="color: #990000;">&quot;First Name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>TextInput id=<span style="color: #990000;">&quot;inputFirst&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem label=<span style="color: #990000;">&quot;Last  Name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>TextInput id=<span style="color: #990000;">&quot;inputLast&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem label=<span style="color: #990000;">&quot;Phone&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>TextInput id=<span style="color: #990000;">&quot;inputPhone&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem label=<span style="color: #990000;">&quot;Add Employee &quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Button label=<span style="color: #990000;">&quot;Add&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;insertEmployee()&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>FormItem<span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Form<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Canvas<span style="color: #000000; font-weight: bold;">&gt;</span>
 <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>ViewStack<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
employees.<span style="color: #0033ff; font-weight: bold;">as</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">import</span> mx.rpc.events.ResultEvent;
<span style="color: #0033ff; font-weight: bold;">import</span> mx.collections.XMLListCollection;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> params<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Object</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#91;</span>Bindable<span style="color: #000000;">&#93;</span>
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> listData<span style="color: #000000; font-weight: bold;">:</span>XMLListCollection;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> resultHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>ResultEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
 <span style="color: #6699cc; font-weight: bold;">var</span> result<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">XML</span> = <span style="color: #004993;">XML</span><span style="color: #000000;">&#40;</span>event.result<span style="color: #000000;">&#41;</span>;
         <span style="color: #6699cc; font-weight: bold;">var</span> xmlList<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span> = result.<span style="color: #004993;">data</span>.<span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
 listData = <span style="color: #0033ff; font-weight: bold;">new</span> XMLListCollection<span style="color: #000000;">&#40;</span>xmlList<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> insertItemHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>ResultEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
 fill<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> fill<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
 employeesService.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span>ResultEvent.RESULT,insertItemHandler<span style="color: #000000;">&#41;</span>;
 employeesService.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>ResultEvent.RESULT,resultHandler<span style="color: #000000;">&#41;</span>;
 employeesService.<span style="color: #004993;">method</span> = <span style="color: #990000;">&quot;GET&quot;</span>;
 params<span style="color: #000000;">&#91;</span><span style="color: #990000;">'method'</span><span style="color: #000000;">&#93;</span> = <span style="color: #990000;">&quot;FindAllEmployees&quot;</span>;
 employeesService.<span style="color: #004993;">cancel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
 employeesService.<span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span>params<span style="color: #000000;">&#41;</span>;
 viewstack1.selectedIndex=<span style="color: #000000; font-weight:bold;">1</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> insertEmployee<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
 employeesService.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span>ResultEvent.RESULT,resultHandler<span style="color: #000000;">&#41;</span>;
 employeesService.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>ResultEvent.RESULT,insertItemHandler<span style="color: #000000;">&#41;</span>;
 employeesService.<span style="color: #004993;">method</span> = <span style="color: #990000;">&quot;POST&quot;</span>;
    params = <span style="color: #000000;">&#123;</span><span style="color: #990000;">&quot;method&quot;</span><span style="color: #000000; font-weight: bold;">:</span> <span style="color: #990000;">&quot;InsertEmployee&quot;</span>, <span style="color: #990000;">&quot;id&quot;</span><span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">NaN</span>, <span style="color: #990000;">&quot;firstName&quot;</span><span style="color: #000000; font-weight: bold;">:</span> inputFirst.<span style="color: #004993;">text</span>,
        <span style="color: #990000;">&quot;lastName&quot;</span><span style="color: #000000; font-weight: bold;">:</span> inputLast.<span style="color: #004993;">text</span>, <span style="color: #990000;">&quot;officePhone&quot;</span><span style="color: #000000; font-weight: bold;">:</span> inputPhone.<span style="color: #004993;">text</span><span style="color: #000000;">&#125;</span>;
 employeesService.<span style="color: #004993;">cancel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
 employeesService.<span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span>params<span style="color: #000000;">&#41;</span>;
 clearInputFields<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> clearInputFields<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
    inputFirst.<span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;&quot;</span>;
    inputLast.<span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;&quot;</span>;
    inputPhone.<span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;&quot;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/flex/advanced-flex/flex-g-r-e-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex读取外部xml文件</title>
		<link>http://www.seorss.cn/index.php/flex/advanced-flex/flex-read-xml/</link>
		<comments>http://www.seorss.cn/index.php/flex/advanced-flex/flex-read-xml/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 00:37:30 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[Flex 进阶]]></category>
		<category><![CDATA[flex与xml]]></category>
		<category><![CDATA[flex读取]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=198</guid>
		<description><![CDATA[flex读取外部xml文件]]></description>
			<content:encoded><![CDATA[<p>在flex应用中，最多的就是如何读取外部xml，下面是一个简单的例子。<span id="more-198"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application xmlns<span style="color: #000000; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #990000;">&quot;absolute&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Model id=<span style="color: #990000;">&quot;statesModel&quot;</span> <span style="color: #004993;">source</span>=<span style="color: #990000;">&quot;states.xml&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000;">&#91;</span>Bindable<span style="color: #000000;">&#93;</span>
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> selectedItem<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span>;
<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>HBox <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;100%&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>List id=<span style="color: #990000;">&quot;source&quot;</span>
<span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;250&quot;</span>
dataProvider=<span style="color: #990000;">&quot;{statesModel.states.state}&quot;</span>
<span style="color: #004993;">change</span>=<span style="color: #990000;">&quot;this.selectedItem=List(event.target).selectedItem&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>VBox <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;200&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Label <span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;{selectedItem.label}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Label <span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;{selectedItem.data}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>VBox<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>HBox<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
states.xml <span style="color: #000000;">&#40;</span>和mxml文件在同一目录下<span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>states<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;Alabama&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;AL&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;Alaska&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;AK&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;Arizona&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;AZ&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;Arkansas&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;AR&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;California&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;CA&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;Colorado&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;CO&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>state label=<span style="color: #990000;">&quot;Connecticut&quot;</span> <span style="color: #004993;">data</span>=<span style="color: #990000;">&quot;CT&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>states<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>List id=<span style="color: #990000;">&quot;source&quot;</span>  <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;250&quot;</span>  dataProvider=<span style="color: #990000;">&quot;{statesModel.states.state}&quot;</span>  
<span style="color: #004993;">change</span>=<span style="color: #990000;">&quot;this.selectedItem=List(event.target).selectedItem&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></pre></td></tr></table></div>

<p><strong>dataProvider=&#8221;{statesModel.states.state}&#8221; 改成 statesModel.state  你的Model 就是根节点states </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/flex/advanced-flex/flex-read-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex修改Tooltip和Errortip的字体属性</title>
		<link>http://www.seorss.cn/index.php/flex/advanced-flex/flex-tooltip-errortip-font-size/</link>
		<comments>http://www.seorss.cn/index.php/flex/advanced-flex/flex-tooltip-errortip-font-size/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 00:31:14 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[Flex 进阶]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[flex属性]]></category>
		<category><![CDATA[flex样式]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=196</guid>
		<description><![CDATA[最近有个问题困扰了我好久，就是在 flex 里面的好多控件有 tooltip 属性，如果将该属性的文字翻译成中文后会很难看，默认的字体很小，而且还是粗体，导致翻译后的汉字根本就看不清楚。还有就是使用 Validate 验证表单的时候，提示的信息字体也和这个效果一样难看。下面介绍一下解决方法]]></description>
			<content:encoded><![CDATA[<p>最近有个问题困扰了我好久，就是在 flex 里面的好多控件有 tooltip 属性，如果将该属性的文字翻译成中文后会很难看，默认的字体很小，而且还是粗体，导致翻译后的汉字根本就看不清楚。还有就是使用 Validate 验证表单的时候，提示的信息字体也和这个效果一样难看。下面介绍一下解决方法：</p>
<p>通过修改style.css文件，添加</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">ToolTip<span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">12</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ErrorTip<span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">12</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>然后在将&lt;mx:Style source=&#8221;style.css&#8221;/&gt;添加到到 application 页面下即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/flex/advanced-flex/flex-tooltip-errortip-font-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIV+CSS常见错误汇总</title>
		<link>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/div-css-wrong/</link>
		<comments>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/div-css-wrong/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 18:17:34 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[XHTML/CSS 基础]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css语法]]></category>
		<category><![CDATA[css错误]]></category>
		<category><![CDATA[div]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=194</guid>
		<description><![CDATA[CSS＋DIV是网站标准（或称“WEB标准”）中常用的术语之一，通常为了说明与HTML网页设计语言中的表格（table）定位方式的区别，因为XHTML网站设计标准中，不再使用表格定位技术，而是采用css+div的方式实现各种定位。应用DIV+CSS编码时很容易犯一些错误。]]></description>
			<content:encoded><![CDATA[<p>CSS＋DIV是网站标准（或称“WEB标准”）中常用的术语之一，通常为了说明与HTML网页设计语言中的表格（table）定位方式的区别，因为XHTML网站设计标准中，不再使用表格定位技术，而是采用css+div的方式实现各种定位。应用DIV+CSS编码时很容易犯一些错误。本文列举了一些常见的错误：<br />
1. 检查HTML元素是否有拼写错误、是否忘记结束标记</p>
<p>即使是老手也经常会弄错div的嵌套关系。可以用dreamweaver的验证功能检查一下有无错误。<span id="more-194"></span></p>
<p>2. 检查CSS是否正确</p>
<p>检查一下有无拼写错误、是否忘记结尾的 } 等。可以利用CleanCSS来检查 CSS的拼写错误。CleanCSS本是为CSS减肥的工具，但也能检查出拼写错误。</p>
<p>3. 确定错误发生的位置</p>
<p>如果错误影响了整体布局，则可以逐个删除div块，直到删除某个div块后显示恢复正常，即可确定错误发生的位置。</p>
<p>4. 利用border属性确定出错元素的布局特性</p>
<p>使用float属性布局一不小心就会出错。这时为元素添加border属性确定元素边界，错误原因即水落石出。</p>
<p>5. float元素的父元素不能指定clear属性</p>
<p>MacIE下如果对float的元素的父元素使用clear属性，周围的float元素布局就会混乱。这是MacIE的着名的bug，倘若不知道就会走弯路。</p>
<p>6. float元素务必指定width属性</p>
<p>很多浏览器在显示未指定width的float元素时会有bug。所以不管float元素的内容如何，一定要为其指定width属性。</p>
<p>另外指定元素时尽量使用em而不是px做单位。</p>
<p>7. float元素不能指定margin和padding等属性</p>
<p>IE在显示指定了margin和padding的float元素时有bug。因此不要对float元素指定margin和padding属性(可以在float元素内部嵌套一个div来设置margin和padding)。也可以使用hack方法为IE指定特别的值。</p>
<p>8. float元素的宽度之和要小于100%</p>
<p>如果float元素的宽度之和正好是100%，某些古老的浏览器将不能正常显示。因此请保证宽度之和小于99%。</p>
<p>9. 是否重设了默认的样式?</p>
<p>某些属性如margin、padding等，不同浏览器会有不同的解释。因此最好在开发前首先将全体的margin、padding设置为0、列表样式设置为none等。</p>
<p>10. 是否忘记了写DTD?<br />
如果无论怎样调整不同浏览器显示结果还是不一样，那么可以检查一下页面开头是不是忘了写下面这行DTD：<br />
〈!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>&#8220;〉</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/div-css-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网页开头部分的声明DOCTYPE</title>
		<link>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/what-is-doctype/</link>
		<comments>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/what-is-doctype/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 18:07:17 +0000</pubDate>
		<dc:creator>风尚达人</dc:creator>
				<category><![CDATA[XHTML/CSS 基础]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[声明]]></category>

		<guid isPermaLink="false">http://www.seorss.cn/?p=188</guid>
		<description><![CDATA[网页开头部分的声明DOCTYPE的相关解释]]></description>
			<content:encoded><![CDATA[<p>网页开头部分的声明 我们可能很少关注，下面我就结合网上的资料，把自己的理解写下来，不对的地方，还请多多指正。<br />
有的网站源代码开头部分是</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;<br />
&lt;html xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&#8220;&gt;<span id="more-188"></span></p>
<p>有的网站源代码开头部分是</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;<br />
&lt;html xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&#8221; lang=&#8221;UTF-8&#8243;&gt;</p>
<p>两个网页源代码的开头部分基本一样前者比后者的HTML XHTML网页编码这个页面多了一句 lang=&#8221;UTF-8&#8243;</p>
<p>1、什么是DOCTYPE</p>
<p>DOCTYPE是document type(文档类型)的简写，用来说明你用的XHTML或者HTML是什么版本。<br />
html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;<br />
表示那网页是服从W3C//标准.语言是EN , 格式是DTD XHTML ,Xhtml版本是1.0</p>
<p>2、什么是DTD</p>
<p><a href="http://www.seorss.cn/index.php/front-end-related/front-end-technology/what-is-dtd/" target="_blank">DTD</a>　文档类型定义(Document Type Definition)<br />
里面包含了文档的规则，浏览器就根据你定义的DTD来解释你页面的标识，并展现出来。</p>
<p>(1)过渡型（Transitional ）<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;<br />
(2)严格型（Strict ）<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&#8220;&gt;<br />
(3)框架型（Frameset ）<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Frameset//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</a>&#8220;&gt;</p>
<p>3、什么是xmlns<br />
&#8220;xmlns&#8221;是XHTML namespace的缩写，叫做&#8221;名字空间&#8221;声明<br />
因为xml允许自己定义自己的标识，你定义的标识和其他人定义的标识有可能相同，但表示不同的意义。当文件交换或者共享的时候就容易产生错误。为了避免这种错误发生，XML采用名字空间声明，允许你通过一个网址来识别你的标识。</p>
<p>4、xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&#8221; 后面的网址可不可以换成别的呢？<br />
XHTML是HTML向XML过渡的标识语言，它需要符合XML文档规则，因此也需要定义名字空间。又因为XHTML1.0不能自定义标识，所以它的名字空间都相同，就是<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a></p>
<p>5、html lang 属性<br />
此属性常用于html标签中，代表整个文档(文件)使用了某种语言,也可以使用在某个XHTML标签中.<br />
&lt;html xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&#8221; xml:lang=&#8221;zh-CN&#8221;&gt;<br />
zh-CN 表示XHTML文档使用中文 en表示 XHTML文档使用英文<br />
xml:lang属性可以使搜索引擎了解你的页面使用了何种语言,搜索引擎可以按语言把页面归类,或者启动某些自动翻译系统.xml:lang属性也可以使排版工具了解你的页面使用了何种语言,这样相应的排版工具就可以切换标点符号,转换格式等操作.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seorss.cn/index.php/xhtml-css/basic-xhtmlcss/what-is-doctype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

