<?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>Licess&#039;s Blog &#187; Web相关</title>
	<atom:link href="http://blog.licess.org/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.licess.org</link>
	<description>关注VPS Linux Nginx MySQL PHP WEB开发 系统管理 服务器架构 Debian CentOS</description>
	<lastBuildDate>Wed, 11 Jan 2012 11:56:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Discuz6.0编辑器在Chrome下代码模式/所见即所得模式无法切换解决方法</title>
		<link>http://blog.licess.org/discuz6-0-chrome/</link>
		<comments>http://blog.licess.org/discuz6-0-chrome/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 04:58:19 +0000</pubDate>
		<dc:creator>licess</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[切换]]></category>
		<category><![CDATA[编辑器]]></category>
		<category><![CDATA[解决方法]]></category>

		<guid isPermaLink="false">http://blog.licess.org/?p=956</guid>
		<description><![CDATA[1.直接使用Discuz编辑器的所见即所得模式时： Uncaught TypeError: Cannot call method ‘appendChild’ of /include/javascript/editor.js:129 undefined 2.将Discuz编辑器从代码模式切换到所见即所得模式时（无法切换）： Uncaught TypeError: Cannot call method ‘replace’ of /include/javascript/bbcode.js:387 undefined 第一个错误的出现在editor.js文件中的function setEditorStyle()函数中，解决办法是在 var headNode = editdoc.getElementsByTagName("head")[0]; headNode.appendChild(editcss); 中间加入： if(!headNode){headNode = editdoc.getElementsByTagName("body")[0];}//by ZZR 第二个错误实际是出现在bbcode.js文件中的function bbcode2html(str)函数中，原因是Chrome、Firefox中对函数的处理有点不一样，函数的最后一个元素是push。解决办法是在： re = new RegExp(addslashes(smilies[id]['code']), "g"); 的前面加入： if(isNaN(parseInt(id))) continue; //by ZZR 也可以直接下载：http://bbs.vpser.net/include/javascript/editor.js 和 http://bbs.vpser.net/include/javascript/bbcode.js 覆盖对应目录下的文件 转自：http://blog.zxlm.cn/2009/04/%E8%A7%A3%E5%86%B3discuz%E7%BC%96%E8%BE%91%E5%99%A8%E5%9C%A8chromeoperafirefox%E4%B8%8B%E7%9A%84%E4%BD%BF%E7%94%A8%E9%97%AE%E9%A2%98.html 相关文章：Google浏览器Chrome SSH翻墙设置教程高效率编辑器 VIM－操作篇，非常适合 VIM 新手谷歌拼音输入法同步时提示“网络错误”的解决方法thread.error: can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>1.直接使用Discuz编辑器的所见即所得模式时：<br />
Uncaught TypeError: Cannot call method ‘appendChild’ of /include/javascript/editor.js:129 undefined</p>
<p>2.将Discuz编辑器从代码模式切换到所见即所得模式时（无法切换）：<br />
Uncaught TypeError: Cannot call method ‘replace’ of /include/javascript/bbcode.js:387 undefined</p>
<p>第一个错误的出现在editor.js文件中的function setEditorStyle()函数中，解决办法是在<span id="more-956"></span><br />
var headNode = editdoc.getElementsByTagName("head")[0];<br />
headNode.appendChild(editcss);<br />
中间加入：<br />
if(!headNode){headNode = editdoc.getElementsByTagName("body")[0];}//by ZZR</p>
<p>第二个错误实际是出现在bbcode.js文件中的function bbcode2html(str)函数中，原因是Chrome、Firefox中对函数的处理有点不一样，函数的最后一个元素是push。解决办法是在：<br />
re = new RegExp(addslashes(smilies[id]['code']), "g");<br />
的前面加入：<br />
if(isNaN(parseInt(id))) continue; //by ZZR</p>
<p>也可以直接下载：<a href="http://bbs.vpser.net/include/javascript/editor.js">http://bbs.vpser.net/include/javascript/editor.js</a> 和 <a href="http://bbs.vpser.net/include/javascript/bbcode.js">http://bbs.vpser.net/include/javascript/bbcode.js</a> 覆盖对应目录下的文件</p>
<p>转自：<a href="http://blog.zxlm.cn/2009/04/%E8%A7%A3%E5%86%B3discuz%E7%BC%96%E8%BE%91%E5%99%A8%E5%9C%A8chromeoperafirefox%E4%B8%8B%E7%9A%84%E4%BD%BF%E7%94%A8%E9%97%AE%E9%A2%98.html">http://blog.zxlm.cn/2009/04/%E8%A7%A3%E5%86%B3discuz%E7%BC%96%E8%BE%91%E5%99%A8%E5%9C%A8chromeoperafirefox%E4%B8%8B%E7%9A%84%E4%BD%BF%E7%94%A8%E9%97%AE%E9%A2%98.html</a></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/google-chrome-ssh-switchy/" title="Google浏览器Chrome SSH翻墙设置教程">Google浏览器Chrome SSH翻墙设置教程</a></li><li><a href="http://blog.licess.org/vim/" title="高效率编辑器 VIM－操作篇，非常适合 VIM 新手">高效率编辑器 VIM－操作篇，非常适合 VIM 新手</a></li><li><a href="http://blog.licess.org/google-pinyin-network-error/" title="谷歌拼音输入法同步时提示“网络错误”的解决方法">谷歌拼音输入法同步时提示“网络错误”的解决方法</a></li><li><a href="http://blog.licess.org/thread-error-cant-start-new-thread/" title="thread.error: can&#8217;t start new thread 解决方法">thread.error: can&#8217;t start new thread 解决方法</a></li><li><a href="http://blog.licess.org/htaccess_editor/" title=".htaccess Editor:在线的.htaccess文件生成编辑器">.htaccess Editor:在线的.htaccess文件生成编辑器</a></li><li><a href="http://blog.licess.org/dz60rc1%e7%9a%84htaccess%e6%96%87%e4%bb%b6%e4%b8%8b%e8%bd%bd/" title="DZ60RC1的.htaccess文件下载">DZ60RC1的.htaccess文件下载</a></li></ul><hr />
<p><small>© licess for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2010. |
<a href="http://blog.licess.org/discuz6-0-chrome/">Permalink</a> |
<a href="http://blog.licess.org/discuz6-0-chrome/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/discuz6-0-chrome/&title=Discuz6.0编辑器在Chrome下代码模式/所见即所得模式无法切换解决方法">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/chrome/" rel="tag">Chrome</a>, <a href="http://blog.licess.org/tag/discuz/" rel="tag">discuz</a>, <a href="http://blog.licess.org/tag/%e5%88%87%e6%8d%a2/" rel="tag">切换</a>, <a href="http://blog.licess.org/tag/%e7%bc%96%e8%be%91%e5%99%a8/" rel="tag">编辑器</a>, <a href="http://blog.licess.org/tag/%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/" rel="tag">解决方法</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/discuz6-0-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo域名转入name.com</title>
		<link>http://blog.licess.org/yahoo-domain-name/</link>
		<comments>http://blog.licess.org/yahoo-domain-name/#comments</comments>
		<pubDate>Mon, 18 May 2009 08:10:55 +0000</pubDate>
		<dc:creator>licess</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[域名空间]]></category>
		<category><![CDATA[name.com]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[域名转出]]></category>

		<guid isPermaLink="false">http://blog.licess.cn/?p=523</guid>
		<description><![CDATA[两个月前在Yahoo花了1.99$注册了VPSer.Net这个域名(详情请看：http://blog.licess.cn/yahoo-199-domain/ )，现在到两个月的时间了该转出了，要不下年续费30多刀，很心疼的。。。 下面记录一些过程： 1、打开 http://smallbusiness.yahoo.com/ ，点击small Business，登录服务管理，再到域名管理 点击Domain Control Panel 2、获取转移码：如果域名处于锁定状态，将无法获得转移码，所以先解锁。 点击“Edit Domain Locking”，根据提示步骤，点击确认解锁。 再点击“View your authorization code”获取转移码 2、登录 www.name.com点击页面下方的，如果没有name.com的帐号，请注册。 点击“Transfer Domain Names”，到 填写域名，及转移码信息，点击submit，根据提示付款即可。 3、付款完成，查看你注册yahoo邮箱里的邮件，查看一封为：Name.com - Transfer Confirmation (Transfer ID:×××××))的邮件，里面有一个 “To PROCEED with the transfer, please click on the following URL: https://www.name.com/transfers_in/accept.php?key=×××××××××××××××” 点击链接确认即可。 如果不进行确认，5天后name.com会自动取消本次转移操作。 整个域名转移过程需要4、5天的时间。 注意：完成转移后，要到yahoo的控制面板取消掉了这个域名（cancel plan），要不然yahoo以后还会继续自动扣款。 更新：2009年5月25日 今天登陆Name.com查看，已经转移成功，也不发个邮件提醒一下。 相关文章：Name.com 2010年11月域名优惠码Name.com 2010年10月域名优惠码Name.com 2010年6月优惠码name.com 2010年5月优惠码Name.com3月注册.com/.net/.me $8.25/年从Godaddy转移域名到name.com2009年7月 Name.com/Godaddy.com域名注册优惠码Yahoo 1.99$ [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-7.jpg"></a>两个月前在Yahoo花了1.99$注册了<a href="http://www.vpser.net" target="_blank">VPSer.Net</a>这个域名(详情请看：<a href="http://blog.licess.cn/yahoo-199-domain/">http://blog.licess.cn/yahoo-199-domain/</a> )，现在到两个月的时间了该转出了，要不下年续费30多刀，很心疼的。。。</p>
<p>下面记录一些过程：</p>
<p>1、打开 <a href="http://smallbusiness.yahoo.com/">http://smallbusiness.yahoo.com/</a> ，点击<img class="alignnone size-full wp-image-524" title="yahoo-login" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-login.jpg" alt="yahoo-login" width="415" height="38" />small Business，登录服务管理，再到域名管理<img class="alignnone size-full wp-image-525" title="yahoo-cp" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-cp.jpg" alt="yahoo-cp" width="574" height="148" /></p>
<p>点击Domain Control Panel</p>
<p>2、获取转移码：如果域名处于锁定状态，将无法获得转移码，所以先解锁。</p>
<p><img class="alignnone size-medium wp-image-527" title="yahoo-11" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-11-300x239.jpg" alt="yahoo-11" width="300" height="239" /><br />
点击“Edit Domain Locking”，根据提示步骤，点击确认解锁。</p>
<p><img class="alignnone size-medium wp-image-528" title="yahoo-2" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-2-300x123.jpg" alt="yahoo-2" width="300" height="123" /></p>
<p><img class="alignnone size-medium wp-image-529" title="yahoo-3" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-3-300x51.jpg" alt="yahoo-3" width="300" height="51" /></p>
<p>再点击“View your authorization code”获取转移码</p>
<p><img class="alignnone size-medium wp-image-530" title="yahoo-5" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-5-300x44.jpg" alt="yahoo-5" width="300" height="44" /></p>
<p>2、登录 <a href="http://www.name.com">www.name.com</a>点击页面下方的，如果没有name.com的帐号，请注册。</p>
<p><a href="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-6.jpg"><img class="alignnone size-medium wp-image-531" title="yahoo-6" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-6-300x127.jpg" alt="yahoo-6" width="300" height="127" /></a></p>
<p>点击“Transfer Domain Names”，到</p>
<p><a href="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-7.jpg"><img class="alignnone size-medium wp-image-532" title="yahoo-7" src="http://blog.licess.cn/wp-content/uploads/2009/05/yahoo-7-300x109.jpg" alt="yahoo-7" width="300" height="109" /></a>填写域名，及转移码信息，点击submit，根据提示付款即可。</p>
<p>3、付款完成，查看你注册yahoo邮箱里的邮件，查看一封为：Name.com - Transfer Confirmation (Transfer ID:×××××))的邮件，里面有一个</p>
<p>“To PROCEED with the transfer, please click on the following URL:</p>
<p><a href="https://www.name.com/transfers_in/accept.php?key">https://www.name.com/transfers_in/accept.php?key</a>=×××××××××××××××”</p>
<p>点击链接确认即可。</p>
<p>如果不进行确认，5天后name.com会自动取消本次转移操作。<br />
整个域名转移过程需要4、5天的时间。</p>
<p><span style="color: #ff0000;">注意：完成转移后，要到yahoo的控制面板取消掉了这个域名（cancel plan），要不然yahoo以后还会继续自动扣款。</span><br />
更新：2009年5月25日<br />
今天登陆Name.com查看，已经转移成功，也不发个邮件提醒一下。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/name-com-2010-november-coupons/" title="Name.com 2010年11月域名优惠码">Name.com 2010年11月域名优惠码</a></li><li><a href="http://blog.licess.org/name-com-2010-october-coupons/" title="Name.com 2010年10月域名优惠码">Name.com 2010年10月域名优惠码</a></li><li><a href="http://blog.licess.org/name-com-2010-june-sizzling/" title="Name.com 2010年6月优惠码">Name.com 2010年6月优惠码</a></li><li><a href="http://blog.licess.org/name-com-2010-july/" title="name.com 2010年5月优惠码">name.com 2010年5月优惠码</a></li><li><a href="http://blog.licess.org/name-com-2010-march825/" title="Name.com3月注册.com/.net/.me $8.25/年">Name.com3月注册.com/.net/.me $8.25/年</a></li><li><a href="http://blog.licess.org/transfer-domain-name-from-godaddy-to-name-com/" title="从Godaddy转移域名到name.com">从Godaddy转移域名到name.com</a></li><li><a href="http://blog.licess.org/2009-7-name-godaddy-coupon-code/" title="2009年7月 Name.com/Godaddy.com域名注册优惠码">2009年7月 Name.com/Godaddy.com域名注册优惠码</a></li><li><a href="http://blog.licess.org/yahoo-199-domain/" title="Yahoo 1.99$ 超便宜域名2009年3月18日验证有效">Yahoo 1.99$ 超便宜域名2009年3月18日验证有效</a></li></ul><hr />
<p><small>© licess for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2009. |
<a href="http://blog.licess.org/yahoo-domain-name/">Permalink</a> |
<a href="http://blog.licess.org/yahoo-domain-name/#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/yahoo-domain-name/&title=Yahoo域名转入name.com">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/namecom/" rel="tag">name.com</a>, <a href="http://blog.licess.org/tag/yahoo/" rel="tag">yahoo</a>, <a href="http://blog.licess.org/tag/%e5%9f%9f%e5%90%8d%e8%bd%ac%e5%87%ba/" rel="tag">域名转出</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/yahoo-domain-name/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dreamweaver使用正则表达式批量替换网页内容</title>
		<link>http://blog.licess.org/dreamweaver-regular-expression/</link>
		<comments>http://blog.licess.org/dreamweaver-regular-expression/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 08:34:00 +0000</pubDate>
		<dc:creator>licess</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[替换]]></category>
		<category><![CDATA[正则表达式]]></category>

		<guid isPermaLink="false">http://blog.licess.cn/?p=370</guid>
		<description><![CDATA[今天看到播布客上几个视频比较好，于是准备下载~但是太懒，不想一个一个的下，就运用一下Dreamweaver正则表达式替换。 播布客视频的地址有一定的规律，如 http://www.boobooke.com/v/bbk1234  这个是在线观看的地址，下载地址是 http://www.boobooke.com/v/bbk1234.zip 先将网页上的所有视频地址复制到Dreamweaver，再打“开查找替换”功能。 查找：  http://www.boobooke.com/v/bbk(\d)   替换：http://www.boobooke.com/v/bbk$1.zip 这样就完成了替换工作~很简单 附 Dreamweaver替换正则表达式表： 字符 匹配 示例 ^ 输入或行的起始部分。 ^T 匹配“This good earth”中的“T”，但不匹配“Uncle Tom's Cabin”中的“T”。 $ 输入或行的结尾部分。 h$ 匹配“teach”中的“h”，但是不匹配“teacher”中的“h” * 0 个或多个前置字符。 um* 匹配“rum”中的“um”、“yummy”中的“umm”以及“huge”中的“u” + 1 个或多个前置字符。 um+ 匹配“rum”中的“um”和“yummy”中的“umm”，但在“huge”中没有任何匹配项 ? 前置字符最多出现一次（即，指示前置字符是可选的）。 st?on 匹配“Johnson”中的“son”和“Johnston”中的“ston”，但在“Appleton”和“tension”中没有任何匹配项 . 除换行符外的任何单字符。 .an 匹配短语“bran muffins can be tasty”中的“ran”和“can” x&#124;y x 或 y。 FF0000&#124;0000FF 匹配 [...]]]></description>
			<content:encoded><![CDATA[<p>今天看到播布客上几个视频比较好，于是准备下载~但是太懒，不想一个一个的下，就运用一下Dreamweaver正则表达式替换。</p>
<p>播布客视频的地址有一定的规律，如 <a href="http://www.boobooke.com/v/bbk1234">http://www.boobooke.com/v/bbk1234</a>  这个是在线观看的地址，下载地址是 <a href="http://www.boobooke.com/v/bbk1234.zip">http://www.boobooke.com/v/bbk1234.zip</a></p>
<p>先将网页上的所有视频地址复制到Dreamweaver，再打“开查找替换”功能。</p>
<p>查找：  <a href="http://www.boobooke.com/v/bbk(\d">http://www.boobooke.com/v/bbk(\d</a>)   替换：<a href="http://www.boobooke.com/v/bbk$1.zip">http://www.boobooke.com/v/bbk$1.zip</a></p>
<p>这样就完成了替换工作~很简单</p>
<p>附 Dreamweaver替换正则表达式表：</p>
<table border="1" cellspacing="1" cellpadding="4" width="700">
<tbody>
<tr>
<td width="9%" valign="top">字符</td>
<td width="31%" valign="top">匹配</td>
<td width="58%" valign="top">示例</td>
</tr>
<tr>
<td width="9%" valign="top">^</td>
<td width="31%" valign="top">输入或行的起始部分。</td>
<td width="58%" valign="top">^T 匹配“This good earth”中的“T”，但不匹配“Uncle Tom's Cabin”中的“T”。</td>
</tr>
<tr>
<td width="9%" valign="top">$</td>
<td width="31%" valign="top">输入或行的结尾部分。</td>
<td width="58%" valign="top">h$ 匹配“teach”中的“h”，但是不匹配“teacher”中的“h”</td>
</tr>
<tr>
<td width="9%" valign="top">*</td>
<td width="31%" valign="top">0 个或多个前置字符。</td>
<td width="58%" valign="top">um* 匹配“rum”中的“um”、“yummy”中的“umm”以及“huge”中的“u”</td>
</tr>
<tr>
<td width="9%" valign="top">+</td>
<td width="31%" valign="top">1 个或多个前置字符。</td>
<td width="58%" valign="top">um+ 匹配“rum”中的“um”和“yummy”中的“umm”，但在“huge”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">?</td>
<td width="31%" valign="top">前置字符最多出现一次（即，指示前置字符是可选的）。</td>
<td width="58%" valign="top">st?on 匹配“Johnson”中的“son”和“Johnston”中的“ston”，但在“Appleton”和“tension”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">.</td>
<td width="31%" valign="top">除换行符外的任何单字符。</td>
<td width="58%" valign="top">.an 匹配短语“bran muffins can be tasty”中的“ran”和“can”</td>
</tr>
<tr>
<td width="9%" valign="top">x|y</td>
<td width="31%" valign="top">x 或 y。</td>
<td width="58%" valign="top">FF0000|0000FF 匹配 bgcolor=”#FF0000” 中的“FF0000”和 font color=”#0000FF” 中的“0000FF”</td>
</tr>
<tr>
<td width="9%" valign="top">{n}</td>
<td width="31%" valign="top">恰好 n 个前置字符。</td>
<td width="58%" valign="top">o{2} 匹配“loom”中的“oo”和“mooooo”中的前两个“o”，但在“money”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">{n,m}</td>
<td width="31%" valign="top">至少 n 个、至多 m 个前置字符。</td>
<td width="58%" valign="top">F{2,4} 匹配“#FF0000”中的“FF”和“#FFFFFF”中的前四个“F”</td>
</tr>
<tr>
<td width="9%" valign="top">[abc]</td>
<td width="31%" valign="top">用括号括起来的字符中的任何一个字符。用连字符指定某一范围的字符（例如， [a-f] 等效于 [abcdef]）。</td>
<td width="58%" valign="top">[e-g] 匹配“bed”中的“e”、“folly”中的“f”和“guard”中的“g”</td>
</tr>
<tr>
<td width="9%" valign="top">[^abc]</td>
<td width="31%" valign="top">未在括号中括起来的任何字符。用连字符指定某一范围的字符（例如，[^a-f] 等效于[^abcdef]）。</td>
<td width="58%" valign="top">[^aeiou] 最初匹配“orange”中“r”、“book”中的“b”和“eek！”中的“k”</td>
</tr>
<tr>
<td width="9%" valign="top">\b</td>
<td width="31%" valign="top">词边界（例如空格或回车符）。</td>
<td width="58%" valign="top">\bb 匹配“book”中的“b”，但在“goober”和“snob”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">\B</td>
<td width="31%" valign="top">词边界之外的任何内容。</td>
<td width="58%" valign="top">\Bb 匹配“goober”中的“b”，但在“book”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">\d</td>
<td width="31%" valign="top">任何数字字符。等效于 [0-9]。</td>
<td width="58%" valign="top">\d 匹配“C3PO”中的“3”和“apartment 2G”中的“2”</td>
</tr>
<tr>
<td width="9%" valign="top">\D</td>
<td width="31%" valign="top">任何非数字字符。等效于 [^0-9]。</td>
<td width="58%" valign="top">\D 匹配“900S”中的“S”和“Q45”中的“Q”</td>
</tr>
<tr>
<td width="9%" valign="top">\f</td>
<td width="31%" valign="top">换页符。</td>
<td width="58%" valign="top"> </td>
</tr>
<tr>
<td width="9%" valign="top">\n</td>
<td width="31%" valign="top">换行符。</td>
<td width="58%" valign="top"> </td>
</tr>
<tr>
<td width="9%" valign="top">\r</td>
<td width="31%" valign="top">回车符。</td>
<td width="58%" valign="top"> </td>
</tr>
<tr>
<td width="9%" valign="top">\s</td>
<td width="31%" valign="top">任何单个空白字符，包括空格、制表符、换页符或换行符。</td>
<td width="58%" valign="top">\sbook 匹配“blue book”中的“book”，但在“notebook”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">\S</td>
<td width="31%" valign="top">任何单个非空白字符。</td>
<td width="58%" valign="top">\Sbook 匹配“notebook”中的“book”，但在“blue book”中没有任何匹配项</td>
</tr>
<tr>
<td width="9%" valign="top">\t</td>
<td width="31%" valign="top">制表符。</td>
<td width="58%" valign="top"> </td>
</tr>
<tr>
<td width="9%" valign="top">\w</td>
<td width="31%" valign="top">任何字母数字字符，包括下划线。等效于 [A-Za-z0-9_]。</td>
<td width="58%" valign="top">b\w* 匹配“the barking dog”中的“barking”以及“the big black dog”中的“big”和“black”</td>
</tr>
<tr>
<td width="9%" valign="top">\W</td>
<td width="31%" valign="top">任何非字母数字字符。等效于 [^A-Za-z0-9_]。</td>
<td width="58%" valign="top">\W 匹配“Jake&amp;Mattie”中的</td>
</tr>
</tbody>
</table>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/webfedora/" title="Webfedora-基于LAMP的Web仿Fedora系统">Webfedora-基于LAMP的Web仿Fedora系统</a></li><li><a href="http://blog.licess.org/%e8%ae%a9%e4%bd%a0%e7%9a%84%e6%96%b0%e7%bd%91%e7%ab%99ip%e7%8b%82%e6%b6%a8%e7%9a%84%e4%b8%80%e4%b8%aa%e4%bb%a3%e7%a0%81%21/" title="让你的新网站IP狂涨的一个代码!">让你的新网站IP狂涨的一个代码!</a></li><li><a href="http://blog.licess.org/microsoftcom%e8%ae%be%e8%ae%a1%e4%b8%bb%e7%ae%a1%e8%b0%88web%e8%ae%be%e8%ae%a1%e7%bb%8f%e9%aa%8c/" title="Microsoft.com设计主管谈WEB设计经验">Microsoft.com设计主管谈WEB设计经验</a></li></ul><hr />
<p><small>© licess for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2009. |
<a href="http://blog.licess.org/dreamweaver-regular-expression/">Permalink</a> |
<a href="http://blog.licess.org/dreamweaver-regular-expression/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/dreamweaver-regular-expression/&title=Dreamweaver使用正则表达式批量替换网页内容">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/dreamweaver/" rel="tag">Dreamweaver</a>, <a href="http://blog.licess.org/tag/web/" rel="tag">Web相关</a>, <a href="http://blog.licess.org/tag/%e6%9b%bf%e6%8d%a2/" rel="tag">替换</a>, <a href="http://blog.licess.org/tag/%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f/" rel="tag">正则表达式</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/dreamweaver-regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网站运营五字诀：势 时 使 适 实</title>
		<link>http://blog.licess.org/yunying/</link>
		<comments>http://blog.licess.org/yunying/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 22:21:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false">/articles/198</guid>
		<description><![CDATA[时 指是否能按时推进开发和推广计划。计划做好后重要的执行，坚定不移地执行。 势 指是否善于造势。人们往往不是靠自己的大脑分析而是靠自己的眼睛判断。 使 指是否便于用户使用。追求用户使用方便，创造用户完美体验是网站日常管理的重心。 适 指是否有适合的营销模式。营销模式没有最好，只有适合，你的营销模式能充分体现你的网站优势和特色吗?能吻合用户的消费心理和购买行为吗? 实 指是否能给参与各方带来实惠的效益，靠面子不会长久，要靠实实在在的分配和激励政策。 相关文章：让你的新网站IP狂涨的一个代码!网站改版对搜索引擎影响很大 © admin for Licess&#039;s Blog, 2008. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: 网站 美国VPS推荐 &#124; 军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付 QQ：503228080]]></description>
			<content:encoded><![CDATA[<p><span style="background-color: #ffffff"><span style="color: #ff0000"><font size="4"><b>时</b><span style="color: #000000"><font size="2"> 指是否能按时推进开发和推广计划。计划做好后重要的执行，坚定不移地执行。</font></span></font></span></span><br />
<span style="background-color: #ffffff"><span style="color: #ff0000"><font size="4"><b>势</b></font></span></span> 指是否善于造势。人们往往不是靠自己的大脑分析而是靠自己的眼睛判断。</p>
<p><span style="color: #ff0000"><font size="4"><b>使</b></font></span> 指是否便于用户使用。追求用户使用方便，创造用户完美体验是网站日常管理的重心。</p>
<p><b><span style="color: #ff0000"><font size="4">适</font></span></b> 指是否有适合的营销模式。营销模式没有最好，只有适合，你的营销模式能充分体现你的网站优势和特色吗?能吻合用户的消费心理和购买行为吗?</p>
<p><b><span style="color: #ff0000"><font size="4">实</font></span></b> 指是否能给参与各方带来实惠的效益，靠面子不会长久，要靠实实在在的分配和激励政策。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/%e8%ae%a9%e4%bd%a0%e7%9a%84%e6%96%b0%e7%bd%91%e7%ab%99ip%e7%8b%82%e6%b6%a8%e7%9a%84%e4%b8%80%e4%b8%aa%e4%bb%a3%e7%a0%81%21/" title="让你的新网站IP狂涨的一个代码!">让你的新网站IP狂涨的一个代码!</a></li><li><a href="http://blog.licess.org/%e7%bd%91%e7%ab%99%e6%94%b9%e7%89%88%e5%af%b9%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e%e5%bd%b1%e5%93%8d%e5%be%88%e5%a4%a7/" title="网站改版对搜索引擎影响很大">网站改版对搜索引擎影响很大</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/yunying/">Permalink</a> |
<a href="http://blog.licess.org/yunying/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/yunying/&title=网站运营五字诀：势 时 使 适 实">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/%e7%bd%91%e7%ab%99/" rel="tag">网站</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/yunying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Unable to read 1365 bytes 类似错误解决方法</title>
		<link>http://blog.licess.org/unable_to_read/</link>
		<comments>http://blog.licess.org/unable_to_read/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 22:58:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[j_space]]></category>

		<guid isPermaLink="false">/articles/192</guid>
		<description><![CDATA[以前在安装Discuz/supersite时，出现过Fatal error: Unable to read 35202 bytes in /XXXX.php on line X 今天在Linux服务器上安装J_Space 4.2的时候，又出现了这个问题～ 记下来吧，好记性不如Blog，呵呵 看看你上传到服务器上的文件是不是通过二进制传的。 具体的如何使用二进制，各个FTP软件都不一样，我就不说了。 相关文章：J_Space 4.2 人才招聘系统 破解版 免费下载 © admin for Licess&#039;s Blog, 2008. &#124; Permalink &#124; One comment &#124; Add to del.icio.us Post tags: j_space 美国VPS推荐 &#124; 军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付 QQ：503228080]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000">以前在安装Discuz/supersite时，出现过<font color="#ff0000">Fatal error: Unable to read 35202 bytes in <b>/XXXX.php</b> on line X</font></span></p>
<p><span style="color: #000000"><font color="#ff0000">今天在Linux服务器上安装J_Space 4.2的时候，又出现了这个问题～</font></span></p>
<p><span style="color: #000000"><font color="#ff0000">记下来吧，好记性不如Blog，呵呵</font></span></p>
<p><span style="color: #000000">看看你上传到服务器上的文件是不是通过二进制传的。</span></p>
<p><span style="color: #000000">具体的如何使用二进制，各个FTP软件都不一样，我就不说了。</span></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/j_space/" title="J_Space 4.2 人才招聘系统 破解版 免费下载">J_Space 4.2 人才招聘系统 破解版 免费下载</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/unable_to_read/">Permalink</a> |
<a href="http://blog.licess.org/unable_to_read/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/unable_to_read/&title=Fatal error: Unable to read 1365 bytes 类似错误解决方法">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/j_space/" rel="tag">j_space</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/unable_to_read/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>写给刚刚上岗的网站技术人员</title>
		<link>http://blog.licess.org/web-newcomer/</link>
		<comments>http://blog.licess.org/web-newcomer/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 02:55:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[web开发]]></category>
		<category><![CDATA[网站技术]]></category>

		<guid isPermaLink="false">/articles/184</guid>
		<description><![CDATA[工作5年了，网站相关的开发工作也干了4年多。负责带领团队也好几年了。面试和带领刚工作的人也不少了。其中的优秀者不少，但是大多数都存在下面提到的几个认识误区。把这些问题提出来，希望对刚参加工作没有多久的程序员们有所帮助，少走弯路。
&#160;
公司招你进来，其实最重要的就是看到你的工作能力和工作态度是可以接受的。
工作能力指你能满足他们的工作期望，或者在可接受的时间范围内，经过培训后，可以满足这个工作期望。]]></description>
			<content:encoded><![CDATA[<p>&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;以下为引用&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</p>
<p><span style="font-size: small">工作5年了，网站相关的开发工作也干了4年多。负责带领团队也好几年了。面试和带领刚工作的人也不少了。其中的优秀者不少，但是大多数都存在下面提到的几个认识误区。把这些问题提出来，希望对刚参加工作没有多久的程序员们有所帮助，少走弯路。</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small">公司招你进来，其实最重要的就是看到你的工作能力和工作态度是可以接受的。</span></p>
<p><span style="font-size: small">工作能力指你能满足他们的工作期望，或者在可接受的时间范围内，经过培训后，可以满足这个工作期望。</span></p>
<p><span style="font-size: small">工作态度指你能有些做职员的基本素质。</span></p>
<p><span style="font-size: small">这个道理应该所有人都清楚。但是到实际事情时候就经常犯迷糊。下面几点是经常会出问题的地方：</span></p>
<p>&nbsp;</p>
<p style="font-weight: bold"><span style="font-size: small">1、不经测试，Review，就认为自己工作完成了。</span></p>
<p><span style="font-size: small">你的代码或者应用一旦被别人Review ，或者进行试用。这时候你代码的好坏，或者功能是否在各种场景下是否可用，都会影响你这个人在上级及同事眼里的可信任度。</span></p>
<p><span style="font-size: small">代码书写的规范，性能的高质量，各种功能在各个场景都可用，则表示你这个人是完全可信的。下次上级给你分派任务的时候，就可以给你更多的自由度来发挥。长此以往，前途和钱途自然就随手可得。</span></p>
<p><span style="font-size: small">反之，代码不规范，功能好些场景不可用。这只能让上级或同事觉得你不可信任。每次都需要处理你带来的这些问题，说恶心点就是你每次拉完大便都没擦屁股，每次都得你的同事和上级帮你擦屁股。数次都这样后，上级或同事下次跟你沟通的时候就会觉得你这个人不可信任，一件事情必须反复多次强调，总觉得你还会作出问题。你的信用已经非常危险了。</span></p>
<p><span style="font-size: small">你在别人眼里的信用就这样被你慢慢透支了。透支到一定程度，走人吧。整个团队的效率会因为你而变慢（每个人跟你沟通的成本都会影响到他本人的产出），你不走人谁走人。</span></p>
<p>&nbsp;</p>
<p style="font-weight: bold"><span style="font-size: small">2、最短可接受的工作时限</span></p>
<p><span style="font-size: small">你有没有统计过，公司分派给你一个工作时候，上级指定的这项工作计划做多久的预计，跟你自己的预计有多大差异？</span></p>
<p><span style="font-size: small">如果你预计时间大于上级给的工作计划时间，同时上级没有增派人手进行相关工作。除了BT的领导外，那只有一种情况：上级对你的工作态度非常不满，认为你的薪水对应的工作能力不是这么点。</span></p>
<p><span style="font-size: small">对于刚工作的，更多的是你表现出来的工作能力在公司的平均工作能力之下。同时公司觉得你对工作没有表现出足够的热情。 一个能力在平均水平下面，又缺乏工作激情的人，他的前途在那里？？ </span></p>
<p><span style="font-size: small">如果这个人还没有表现出几个月后能达到平均水平之上的希望，为啥会留这样一个人呢？</span></p>
<p>&nbsp;</p>
<p style="font-weight: bold"><span style="font-size: small">3、工作能力不等于技术水平</span></p>
<p><span style="font-size: small">我曾看到过有人抱怨说大公司的员工也不过是这技术水平， 这么简单的技术问题都不会。我自己早期也有这样想法，后来发现是不对的。</span></p>
<p><span style="font-size: small">不论大公司还是小公司，要得是解决问题的工作能力。 我的曾经手下就有好几个技术水平很牛的，但是作出来的应用却一次次返工的。为啥，工作能力这些非技术因素他们做的很不好。</span></p>
<p><span style="font-size: small">工作能力的非技术因素包括的很多： 责任心，表现就是对自己写出来的代码有一定要让人放心的责任； 沟通能力，一个典型的表现就是需求不理解或者需求不明时，及时得跟相关人沟通，而不是自己先按自己想法实现，造成代码写完后再返工的恶果等等。 </span></p>
<p><span style="font-size: small">技术水平低，但是解决问题能力强的，我也碰到过一些人。 工作的能力更重要的是这些非技术的工作能力，而不是技术水平。技术人员很容易技术水平高，但是非技术的工作能力差。 这是很糟糕的。</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="font-weight: bold"><span style="font-size: small">4、发展潜力，学习能力</span></p>
<p><span style="font-size: small">公司使用的技术不可能一直不变，一直不变的公司只能慢慢被市场淘汰。这就要求员工能不断的学习新的知识，并应用到工作中来。</span></p>
<p><span style="font-size: small">要想不会出现几年后，自己发现跳槽找个工作都没人要，赶快学习吧。</span></p>
<p><span style="font-size: small">坚持，是一个人最难做到的。 但是不坚持，那就等着灭亡吧。 <br />
</span></p>
<p>&nbsp;</p>
<p style="font-weight: bold"><span style="font-size: small">5、笨鸟先飞</span></p>
<p><span style="font-size: small">一个人，在公司，如果工作能力在平均线以下， 加班吧， 不要有任何幻想。</span></p>
<p><span style="font-size: small">最可怕的是自己没这个意识， 自认为自己技术水平很牛， 但是解决问题的工作能力却在平均水平线以下， 眼高手低 ， 这样的人， 公司是不能留的。</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="font-weight: bold"><span style="font-size: small">6、承诺到的事情一定要做到，不要找理由</span></p>
<p><span style="font-size: small">一件事情没有被做完，想找理由能找很多的。既然你承诺了某个时间点前完成，就不要再找各种理由推脱。</span></p>
<p><span style="font-size: small">公司同事和上级虽然可能这次接受了你的理由，但是下次呢， 慢慢的就会让你的上级，同事觉得你是一个喜欢推托的人。 感觉你干事是非常不可靠的。不知道那次就会不完成，下次谁敢再找你干事？</span></p>
<p><span style="font-size: small">可能很多人在看到我这篇博客的时候，觉得我写的很刻薄，好像都是从公司的角度欺压技术人员。很没有人情味。</span></p>
<p><span style="font-size: small">只要你不是公司的董事， 你永远是被剥削者，公司的目的就是利润最大化，这是公司存活的根本目的。作为普通的职员，要有所为的白领意识，其实就是被剥削意识。这是个适者生存的生态圈，不适用的人只能被淘汰。</span></p>
<p><span style="font-size: small">实际的公司其实有很多人情味在里面，或者同事和领导有些话不便于说出口。 这也就造成了一些技术人员被开除，还自以为如何如何？ 都是没有这些意识造成的。我写这篇博客就是希望能增加技术人员的这些意识，不要犯了这些问题还自己不知道。</span></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/js_target/" title="链接执行js时注意target必须是_self或者_top">链接执行js时注意target必须是_self或者_top</a></li><li><a href="http://blog.licess.org/web-jiasu3/" title="网页加速系列（三）、 网页加速之网页减肥篇">网页加速系列（三）、 网页加速之网页减肥篇</a></li><li><a href="http://blog.licess.org/web-jiasu2/" title="网页加速系列（二）、 网页加速之网页结构篇">网页加速系列（二）、 网页加速之网页结构篇</a></li><li><a href="http://blog.licess.org/web-jiasu1/" title="网页加速系列（一）、 网页加速之图形处理篇">网页加速系列（一）、 网页加速之图形处理篇</a></li><li><a href="http://blog.licess.org/web_standards/" title="Web标准下的web开发流程思考">Web标准下的web开发流程思考</a></li><li><a href="http://blog.licess.org/morecss/" title="MoreCSS: 用CSS来运行JS">MoreCSS: 用CSS来运行JS</a></li><li><a href="http://blog.licess.org/web-10-question/" title="网站开发和设计者需要注意的10个问题">网站开发和设计者需要注意的10个问题</a></li><li><a href="http://blog.licess.org/web_server/" title="推荐介绍几款小巧的Web Server程序">推荐介绍几款小巧的Web Server程序</a></li><li><a href="http://blog.licess.org/url-guifan/" title="URL网址规范化问题">URL网址规范化问题</a></li><li><a href="http://blog.licess.org/web_no_frame/" title="避免在网站设计中使用框架页">避免在网站设计中使用框架页</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/web-newcomer/">Permalink</a> |
<a href="http://blog.licess.org/web-newcomer/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/web-newcomer/&title=写给刚刚上岗的网站技术人员">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/web%e5%bc%80%e5%8f%91/" rel="tag">web开发</a>, <a href="http://blog.licess.org/tag/%e7%bd%91%e7%ab%99%e6%8a%80%e6%9c%af/" rel="tag">网站技术</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/web-newcomer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>链接执行js时注意target必须是_self或者_top</title>
		<link>http://blog.licess.org/js_target/</link>
		<comments>http://blog.licess.org/js_target/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 18:10:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[web开发]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">/articles/183</guid>
		<description><![CDATA[即： &#60;a href=&#34;javscript:someFun()&#34;&#62;text&#60;/a&#62;
需要特别注意这个A标签的target必须是_self或者_top,否则会新开一个窗口执行js，导致不能执行，解决问题的一个简单办法是在文档结束时执行下面的js函数。]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium">即： &lt;a href=&quot;javscript:someFun()&quot;&gt;text&lt;/a&gt;<br />
需要特别注意这个A标签的target必须是_self或者_top,否则会新开一个窗口执行js，导致不能执行，解决问题的一个简单办法是在文档结束时执行下面的js函数。</span></p>
<p><span style="font-size: medium">&lt;script language=&quot;javascript&quot;&gt;<br />
function setJsLinksTarget()<br />
{<br />
&nbsp;&nbsp;&nbsp; var links = document.links;<br />
&nbsp;&nbsp;&nbsp; for(var i=0;i&lt;links.length;i++){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(links[i].href.toLowerCase().indexOf('javascript:') &gt; -1){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; links[i].target = '_self';<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
}<br />
setJsLinksTarget();<br />
&lt;/script&gt;</span></p>
<p>&nbsp;</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/%e5%b7%a7%e7%94%a8js%e7%a8%8b%e5%ba%8f%2c%e5%88%b6%e4%bd%9c%e6%9c%89%e8%b6%a3%e7%9a%84%e7%bd%91%e7%ab%99%e6%8f%90%e9%86%92/" title="巧用JS程序,制作有趣的网站提醒">巧用JS程序,制作有趣的网站提醒</a></li><li><a href="http://blog.licess.org/web-newcomer/" title="写给刚刚上岗的网站技术人员">写给刚刚上岗的网站技术人员</a></li><li><a href="http://blog.licess.org/web-jiasu3/" title="网页加速系列（三）、 网页加速之网页减肥篇">网页加速系列（三）、 网页加速之网页减肥篇</a></li><li><a href="http://blog.licess.org/web-jiasu2/" title="网页加速系列（二）、 网页加速之网页结构篇">网页加速系列（二）、 网页加速之网页结构篇</a></li><li><a href="http://blog.licess.org/web-jiasu1/" title="网页加速系列（一）、 网页加速之图形处理篇">网页加速系列（一）、 网页加速之图形处理篇</a></li><li><a href="http://blog.licess.org/web_standards/" title="Web标准下的web开发流程思考">Web标准下的web开发流程思考</a></li><li><a href="http://blog.licess.org/morecss/" title="MoreCSS: 用CSS来运行JS">MoreCSS: 用CSS来运行JS</a></li><li><a href="http://blog.licess.org/web-10-question/" title="网站开发和设计者需要注意的10个问题">网站开发和设计者需要注意的10个问题</a></li><li><a href="http://blog.licess.org/web_server/" title="推荐介绍几款小巧的Web Server程序">推荐介绍几款小巧的Web Server程序</a></li><li><a href="http://blog.licess.org/url-guifan/" title="URL网址规范化问题">URL网址规范化问题</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/js_target/">Permalink</a> |
<a href="http://blog.licess.org/js_target/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/js_target/&title=链接执行js时注意target必须是_self或者_top">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/js/" rel="tag">js</a>, <a href="http://blog.licess.org/tag/web%e5%bc%80%e5%8f%91/" rel="tag">web开发</a>, <a href="http://blog.licess.org/tag/%e9%93%be%e6%8e%a5/" rel="tag">链接</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/js_target/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache和PHP网页的编码问题分析</title>
		<link>http://blog.licess.org/charset/</link>
		<comments>http://blog.licess.org/charset/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 20:42:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[PHP技术]]></category>
		<category><![CDATA[编码]]></category>

		<guid isPermaLink="false">/articles/181</guid>
		<description><![CDATA[谈到Apache的编码我们就要涉及到3个东西

http标记语言中的&#60;META http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=xxx&#34;&#62;标签
PHP中的header(&#34;content-type:text/html; charset=xxx&#34;);函数
Apache配置文件httpd.conf中的AddDefaultCharset

一、&#60;META http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=xxx&#34;&#62;标签
按顺序来，先说这个&#60;META&#62;标签，这个标签有很多功能的，具体请点这里。]]></description>
			<content:encoded><![CDATA[<div class="content">
<p><span style="font-size: medium">谈到Apache的编码我们就要涉及到3个东西</p>
<p>http标记语言中的&lt;META http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=xxx&quot;&gt;标签<br />
PHP中的header(&quot;content-type:text/html; charset=xxx&quot;);函数<br />
Apache配置文件httpd.conf中的AddDefaultCharset</span></p>
<p>
<span style="font-size: medium">一、&lt;META http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=xxx&quot;&gt;标签 <br />
按顺序来，先说这个&lt;META&gt;标签，这个标签有很多功能的，具体请点这里。</span></p>
<p><span style="font-size: medium"><br />
我今天想说只是上面提到的那种形式。解释一下&lt;META http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;，意思是对这个网页进行声明，让浏览器对整个页面的内容采用xxx编码，xxx可以为GB2312，GBK，UTF-8（和MySQL不同，MySQL是UTF8）等等。因此，大部分页面可以采用这种方式来告诉浏览器显示这个页面的时候采用什么编码，这样才不会造成编码错误而产生乱码。但是有的时候我们会发现有了这句还是不行，不管xxx是哪一种，浏览器采用的始终都是一种编码，这个情况我后面会谈到。</p>
<p>请注意，&lt;meta&gt;是属于html信息的，仅仅是一个声明，它起作用表明服务器已经把HTML信息传到了浏览器。<br />
</span></p>
<p>
<span style="font-size: medium">二、header(&quot;content-type:text/html; charset=xxx&quot;);<br />
这个函数header()的作用是把括号里面的信息发到http标头。关于此函数具体用法请点击这里。<br />
如果括号里面的内容为文中所说那样，那作用和&lt;META&gt;标签基本相同，大家对照第一个看发现字符都差不多的。但是不同的是如果有这段函数，浏览器就会永远采用你所要求的xxx编码，绝对不会不听话，因此这个函数是很有用的。为什么会这样呢？那就得说说HTTPS标头和HTML信息的差别了：<br />
引用:<br />
https标头是服务器以HTTP协议传送HTML信息到浏览器前所送出的字串。<br />
因为meta标签是属于html信息的，所以header()发送的内容先到达浏览器，通俗点就是header()的优先级高于meta（不知道可不可以这样讲）。加入一个php页面既有header(&quot;content-type:text/html; charset=xxx&quot;)，又有&lt;META http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=xxx&quot;&gt;，浏览器就只认前者http标头而不认meta了。当然这个函数只能在php页面内使用。<br />
同样也留有一个问题，为什么前者就绝对起作用，而后者有时候就不行呢？这就是接下来要谈的Apache的原因了。<br />
</span></p>
<p>
<span style="font-size: medium">三、AddDefaultCharset<br />
Apache根目录的conf文件夹里，有整个Apache的配置文档httpd.conf。具体如何配置apache请点击这里（[url=thread-2674-1-1.html]windows[/url]，[url=thread-1381-1-1.html]linux[/url]）。<br />
用文本编辑器打开httpd.conf，第708行（不同版本可能不同）有AddDefaultCharset xxx，xxx为编码名称。这行代码的意思：设置整个服务器内的网页文件https标头里的字符集为你默认的xxx字符集。有这行，就相当于给每个文件都加了一行header(&quot;content-type:text/html; charset=xxx&quot;)。这下就明白为什么明明meta设置了是utf-8，可浏览器始终采用gb2312的原因。<br />
如果网页里有header(&quot;content-type:text/html; charset=xxx&quot;)，就把默认的字符集改为你设置的字符集，所以这个函数永远有用。如果把AddDefaultCharset xxx前面加个&ldquo;#&rdquo;，注释掉这句，而且页面里不含header(&quot;content-type&hellip;&quot;)，那这个时候就轮到meta标签起作用了。</span></p>
<p>
<span style="font-size: medium">总结：<br />
来个排序</span></p>
<p><span style="font-size: medium">header(&quot;content-type:text/html; charset=xxx&quot;) <br />
AddDefaultCharset xxx<br />
&lt;META http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=xxx&quot;&gt;<br />
如果你是web程序员，给你的每个页面都加个header(&quot;content-type:text/html; charset=xxx&quot;)，保证它在任何服务器都能正确显示，可移植性强。</p>
<p>至于那句AddDefaultCharset xxx，要不要注释就仁者见仁了。反正我是注释掉了，不过我写页子也要写header()，便于放到不同的服务器上能正常显示。</span></p>
</div>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/linux-vps-nginx-php-install-ioncube/" title="Linux VPS Nginx+PHP 安装ionCube">Linux VPS Nginx+PHP 安装ionCube</a></li><li><a href="http://blog.licess.org/lnmp-v0-3/" title="LNMP &#8211; CentOS/RadHat/Debian/Ubuntu下Nginx+PHP+MySQL一键安装包V0.3发布">LNMP &#8211; CentOS/RadHat/Debian/Ubuntu下Nginx+PHP+MySQL一键安装包V0.3发布</a></li><li><a href="http://blog.licess.org/convert-apache-htaccess-to-nginx/" title="自动将Apache Rewrite伪静态规则转换为Nginx Rewrite">自动将Apache Rewrite伪静态规则转换为Nginx Rewrite</a></li><li><a href="http://blog.licess.org/lnmp-debian-ubuntu/" title="LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包">LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包</a></li><li><a href="http://blog.licess.org/lnmp/" title="LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2011年12月14日更新)">LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2011年12月14日更新)</a></li><li><a href="http://blog.licess.org/apache-to-nginx/" title="Apache升级到了Nginx的几个注意点">Apache升级到了Nginx的几个注意点</a></li><li><a href="http://blog.licess.org/linux-nginx-php-mysql-phpmyadmin/" title="Linux下Nginx+PHP+MySQL+phpMyAdmin+eAcelerator自动编译安装软件 预告">Linux下Nginx+PHP+MySQL+phpMyAdmin+eAcelerator自动编译安装软件 预告</a></li><li><a href="http://blog.licess.org/autompn/" title="Linux下Nginx+MySQL+PHP自动安装程序(AutoMPN)">Linux下Nginx+MySQL+PHP自动安装程序(AutoMPN)</a></li><li><a href="http://blog.licess.org/phped_crack/" title="强大的PHP的IDE&#8211;NuSphere PHPEd 5.5 Build 5517 crack(破解版)">强大的PHP的IDE&#8211;NuSphere PHPEd 5.5 Build 5517 crack(破解版)</a></li><li><a href="http://blog.licess.org/crossfire_php/" title="用穿越火线快速入门php面向对象">用穿越火线快速入门php面向对象</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/charset/">Permalink</a> |
<a href="http://blog.licess.org/charset/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/charset/&title=Apache和PHP网页的编码问题分析">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/apache/" rel="tag">apache</a>, <a href="http://blog.licess.org/tag/php%e6%8a%80%e6%9c%af/" rel="tag">PHP技术</a>, <a href="http://blog.licess.org/tag/%e7%bc%96%e7%a0%81/" rel="tag">编码</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/charset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网页加速系列（三）、 网页加速之网页减肥篇</title>
		<link>http://blog.licess.org/web-jiasu3/</link>
		<comments>http://blog.licess.org/web-jiasu3/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 15:41:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[web开发]]></category>
		<category><![CDATA[网页加速]]></category>

		<guid isPermaLink="false">/articles/177</guid>
		<description><![CDATA[为完成页面减肥就要先说说HTML语言了，它是一种解释性的脚本语言，更多请参见（http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml.asp，英文），那怎样可以&#8220;减肥&#8221;呢，因为在HTML语言里本来是不用换行，不用大量的空格的，但各种用编辑器写出来的HTML为了便于作者查看程序所以都用上了很多的空格和和换行，好像FP2000这个软件会产生相当多的空格使你网页的内空变得很大。还有一些可以减去的内容就是人为的了，比如你把多个HTML的属性用到一个对像上，而这些属性里有重复的，也会使你的页面变肥了。而一些可以产生同要效果的不同定义也会产生了大量的无用代码。下面看一下具体的减肥方法：

1、软件压缩法]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium; font-family: 宋体">为完成页面减肥就要先说说HTML语言了，它是一种解释性的脚本语言，更多请参见（</span><a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml.asp"><span style="font-size: medium; color: #4371a6; font-family: 宋体">http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml.asp</span></a><span style="font-size: medium; font-family: 宋体">，英文），那怎样可以&ldquo;减肥&rdquo;呢，因为在HTML语言里本来是不用换行，不用大量的空格的，但各种用编辑器写出来的HTML为了便于作者查看程序所以都用上了很多的空格和和换行，好像FP2000这个软件会产生相当多的空格使你网页的内空变得很大。还有一些可以减去的内容就是人为的了，比如你把多个HTML的属性用到一个对像上，而这些属性里有重复的，也会使你的页面变肥了。而一些可以产生同要效果的不同定义也会产生了大量的无用代码。下面看一下具体的减肥方法：</p>
<p>1、软件压缩法</span></p>
<p><span style="font-size: medium; font-family: 宋体">　　最容易的方法就是软件压缩法，用一些专门对HTML减肥的软件来对HTML页面减肥，这个方法很容易且很有效，但对于比如人为造成的冗余HTML代码就不能减了，只能减掉多余的空格和tab。</p>
<p>2、设计减肥法<br />
　　这个方法也很容易的，在这里只讲一部分，更多的要自己积累，方法就是在设计网页时，特别是用一个软件来设计网页时你要用一种良好的操作习惯和正确的方法使你编写出来的页面量优化。例如当你有文字或图片在表格里时需要居中，那么使用单元格居中就会比使用文字居中产生的代码少；例如页面里所有的文字都是小字的时候用CSS的方法来定义文字会比一部份一部份的去写义文字少产生很多的代码；再例如要<br />
给一个表格里的一行定义相同的色彩，那么使用行定义（TR）就会比使用单元格定义色彩产生的代码少；又例如如果你页面里大多数的链接都是要新开一个窗口，那么你把该页面的默认(base)设为开新窗口，这样又会减少很多的开新窗口的定义。类似的代码也是如此。</p>
<p>3、程序减肥法<br />
　　这就是页面减肥的较高的境界了，大家看能看到，页面里有很多的代码是想同的，这些样同的东西如果可以减下来可<br />
就不得了了，怎样做到呢？用程序了，因为现在的网页都可以使用一种程序语言JAVASCRIPT这种程序是插入HTML里面完成<br />
一些动态的东西，那么我们的减肥就用它了，比如做链接的HTML如下：<br />
&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;HTTP://www.qianxun.com&quot;&gt;千寻&lt;/A&gt;&lt;/TD&gt;<br />
&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;HTTP://HDQS.126.COM&quot;&gt;红豆情思&lt;/A&gt;&lt;/TD&gt;<br />
&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;HTTP://STONETIME.126.COM&quot;&gt;STONE时间&lt;/A&gt;&lt;/TD&gt;<br />
&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;HTTP://XIAOKUEN.ON.NET.CN&quot;&gt;恋爱花园&lt;/A&gt;&lt;/TD&gt;<br />
&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;HTTP://LILICAI.YEAH.NET&quot;&gt;味道&lt;/A&gt;&lt;/TD&gt;<br />
&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;HTTP://BROY.126.COM&quot;&gt;风花&lt;/A&gt;&lt;/TD&gt;<br />
内容不少了，但有不少的东西是一样的，那么我们就用程序来动态的生成这些东西程序如下：<br />
&lt;SCRIPT&gt;<br />
FUNCTION LK(URL,TXT){<br />
DOCUMENT.WRITE(&quot;&lt;TD ALIGN=MIDDLE WIDTH=110&gt;&lt;A HREF=&quot;+URL+&quot;&gt;&quot;+TXT+&quot;&lt;/A&gt;&lt;/TD&gt;&quot;)<br />
}<br />
LK(&quot;RONGWW.YEAH.NET&quot;,&quot;&lt;FONT COLOR=RED&gt;榕儿的家&quot;)<br />
LK(&quot;HDQS.126.COM&quot;,&quot;红豆情思&quot;)<br />
LK(&quot;STONETIME.126.COM&quot;,&quot;STONE时间&quot;)<br />
LK(&quot;XIAOKUEN.ON.NET.CN&quot;,&quot;恋爱花园&quot;)<br />
LK(&quot;LILICAI.YEAH.NET&quot;,&quot;味道&quot;)<br />
LK(&quot;BROY.126.COM&quot;,&quot;风花&quot;)<br />
&lt;/SCRIPT&gt;<br />
这样以来，内容就会减少一些，但如果好像上面的链接有很多很多，这段代码就可以大量的为你减肥了，而且增加了页面的可维护性，这个程序只是一个例子，也许它不合你所需，但这就是我告诉你的方法，你可以自已设计所需的程序，使页面更快更好（比如我的页面上的年月日下拉框就是dw(&quot;&lt;option value=&quot;+i+&quot;&gt;&quot;+i+&quot;&lt;/option&gt;&quot;)，大大减少了页面网络流量）。另一种用程序减肥的方法就是合里的使用.JS程序，.JS的使用不当会使页面速度下降，但如果合理的使用，自己本地的.JS就另有工效了。通过它可以把不同网页里相同的代码用一个.JS文件保存，使<br />
页面的容量减少，同时还便于以后的页面修改。</span></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/web-jiasu2/" title="网页加速系列（二）、 网页加速之网页结构篇">网页加速系列（二）、 网页加速之网页结构篇</a></li><li><a href="http://blog.licess.org/web-jiasu1/" title="网页加速系列（一）、 网页加速之图形处理篇">网页加速系列（一）、 网页加速之图形处理篇</a></li><li><a href="http://blog.licess.org/web-newcomer/" title="写给刚刚上岗的网站技术人员">写给刚刚上岗的网站技术人员</a></li><li><a href="http://blog.licess.org/js_target/" title="链接执行js时注意target必须是_self或者_top">链接执行js时注意target必须是_self或者_top</a></li><li><a href="http://blog.licess.org/web_standards/" title="Web标准下的web开发流程思考">Web标准下的web开发流程思考</a></li><li><a href="http://blog.licess.org/morecss/" title="MoreCSS: 用CSS来运行JS">MoreCSS: 用CSS来运行JS</a></li><li><a href="http://blog.licess.org/web-10-question/" title="网站开发和设计者需要注意的10个问题">网站开发和设计者需要注意的10个问题</a></li><li><a href="http://blog.licess.org/web_server/" title="推荐介绍几款小巧的Web Server程序">推荐介绍几款小巧的Web Server程序</a></li><li><a href="http://blog.licess.org/url-guifan/" title="URL网址规范化问题">URL网址规范化问题</a></li><li><a href="http://blog.licess.org/web_no_frame/" title="避免在网站设计中使用框架页">避免在网站设计中使用框架页</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/web-jiasu3/">Permalink</a> |
<a href="http://blog.licess.org/web-jiasu3/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/web-jiasu3/&title=网页加速系列（三）、 网页加速之网页减肥篇">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/web%e5%bc%80%e5%8f%91/" rel="tag">web开发</a>, <a href="http://blog.licess.org/tag/%e7%bd%91%e9%a1%b5%e5%8a%a0%e9%80%9f/" rel="tag">网页加速</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/web-jiasu3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网页加速系列（二）、 网页加速之网页结构篇</title>
		<link>http://blog.licess.org/web-jiasu2/</link>
		<comments>http://blog.licess.org/web-jiasu2/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 16:23:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web相关]]></category>
		<category><![CDATA[web开发]]></category>
		<category><![CDATA[网页加速]]></category>

		<guid isPermaLink="false">/articles/175</guid>
		<description><![CDATA[（二）、 网页加速之网页结构篇

一个网页的结构的好坏，对网页的加载速度有着很大的影响！

1、关于框架结构

一般情况下，应尽量避免使用框架结构，因为浏览器必须对框架中的每个页面分别进行请求！这必然会增加服务器的负担。另外，现在还有少数用户使用的浏览器并不支持框架结构显示。 当然在一些地方，框架结构还是显得非常方便，比如：聊天室、论坛、社区、软件下载。

2、关于表格]]></description>
			<content:encoded><![CDATA[<p><span class="UNNAMED3"><span style="font-family: 宋体"><strong><span style="font-size: medium">（二）、 网页加速之网页结构篇</p>
<p></span></strong><span style="font-size: medium; font-family: 宋体">一个网页的结构的好坏，对网页的加载速度有着很大的影响！ </p>
<p>1、关于框架结构</p>
<p>一般情况下，应尽量避免使用框架结构，因为浏览器必须对框架中的每个页面分别进行请求！这必然会增加服务器的负担。另外，现在还有少数用户使用的浏览器并不支持框架结构显示。 当然在一些地方，框架结构还是显得非常方便，比如：聊天室、论坛、社区、软件下载。</p>
<p>2、关于表格</p>
<p>表格的应用不仅仅限于，在一些内容列表的时候时候，对于网页的整个布局，表格有着非常重要的作用。为了能使大量的内容在网页上布置的井井有条，一般通过没有边框的来将网页分块，然后将不同的内容放在不同的单元格中。表格的使用是有一些技巧的：首先，尽量避免使用结构复杂的表格，因为结构复杂的表格，有可能使浏览器多次刷新表格。其次，能将一个表格分为两个或两个以上的时候应该分为两个，因为浏览器只有在整个表格的内容全部读入以后再输出显示，如果表格中的内容非常的多，那么在加载过程中，浏览器在表格读入完毕以前将一直显示空白。最后，表格嵌套不要超过3层，层次太多的话在加载表格的时候会使浏览器花大量的时候处理表格结构。</p>
<p>
新浪网的首页页面时候很好的例子，大家可以保存它有编辑软件打开查看其结构。 熟练的使用表格是作出美观的网页所必须的！</span></span></span></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://blog.licess.org/web-jiasu3/" title="网页加速系列（三）、 网页加速之网页减肥篇">网页加速系列（三）、 网页加速之网页减肥篇</a></li><li><a href="http://blog.licess.org/web-jiasu1/" title="网页加速系列（一）、 网页加速之图形处理篇">网页加速系列（一）、 网页加速之图形处理篇</a></li><li><a href="http://blog.licess.org/web-newcomer/" title="写给刚刚上岗的网站技术人员">写给刚刚上岗的网站技术人员</a></li><li><a href="http://blog.licess.org/js_target/" title="链接执行js时注意target必须是_self或者_top">链接执行js时注意target必须是_self或者_top</a></li><li><a href="http://blog.licess.org/web_standards/" title="Web标准下的web开发流程思考">Web标准下的web开发流程思考</a></li><li><a href="http://blog.licess.org/morecss/" title="MoreCSS: 用CSS来运行JS">MoreCSS: 用CSS来运行JS</a></li><li><a href="http://blog.licess.org/web-10-question/" title="网站开发和设计者需要注意的10个问题">网站开发和设计者需要注意的10个问题</a></li><li><a href="http://blog.licess.org/web_server/" title="推荐介绍几款小巧的Web Server程序">推荐介绍几款小巧的Web Server程序</a></li><li><a href="http://blog.licess.org/url-guifan/" title="URL网址规范化问题">URL网址规范化问题</a></li><li><a href="http://blog.licess.org/web_no_frame/" title="避免在网站设计中使用框架页">避免在网站设计中使用框架页</a></li></ul><hr />
<p><small>© admin for <a href="http://blog.licess.org">Licess&#039;s Blog</a>, 2008. |
<a href="http://blog.licess.org/web-jiasu2/">Permalink</a> |
<a href="http://blog.licess.org/web-jiasu2/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.licess.org/web-jiasu2/&title=网页加速系列（二）、 网页加速之网页结构篇">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.licess.org/tag/web%e5%bc%80%e5%8f%91/" rel="tag">web开发</a>, <a href="http://blog.licess.org/tag/%e7%bd%91%e9%a1%b5%e5%8a%a0%e9%80%9f/" rel="tag">网页加速</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.licess.org/web-jiasu2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

