<?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>大宇空间 &#187; WEB技术</title>
	<atom:link href="http://www.dayu.name/p/category/web/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dayu.name</link>
	<description>人生是一场旅行，我们才刚刚上路</description>
	<lastBuildDate>Sat, 31 Dec 2011 15:38:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>火狐3下的上传图片预览（仅限火狐和图片文件）</title>
		<link>http://www.dayu.name/p/626.html</link>
		<comments>http://www.dayu.name/p/626.html#comments</comments>
		<pubDate>Wed, 17 Nov 2010 03:05:54 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://www.dayu.name/?p=626</guid>
		<description><![CDATA[IE下可以直接用JS获取上传控件的value值，在FF3下不行。但还是可以在FF3通过js的nsIDOMFile对象来解决该问题； 下面是用nsIDOMFile实现的图片文件预览，作为日后参考。 &#60;script&#62; /* 火狐3下的上传图片预览（仅限火狐和图片文件） */ function $(v) { &#160; &#160; return document.getElementById(v); } &#160; function func() { &#160; &#160; var file_path = $(&#34;file&#34;); &#160; &#160; alert('dataurl: ' + file_path.files.item(0).getAsDataURL()); &#160; &#160; $(&#34;div&#34;).innerHTML = &#34;&#60;img&#160;src='&#34; + file_path.files.item(0).getAsDataURL() + &#34;'/&#62;&#34;; } &#60;/script&#62; &#60;form&#160;method=&#34;post&#34; action=&#34;?act=upload&#34; id=&#34;form&#34; enctype=&#34;multipart/form-data&#34;&#62; &#160; &#160; &#60;input&#160;type=&#34;file&#34; id=&#34;file&#34; onchange=&#34;func();&#34;/&#62;&#60;input type=&#34;submit&#34; value=&#34;上传&#34;/&#62; &#160; &#160; &#60;div&#160;id=&#34;div&#34;&#62;&#60;/div&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>IE下可以直接用JS获取上传控件的value值，在FF3下不行。但还是可以在FF3通过js的nsIDOMFile对象来解决该问题；</p>
<p>下面是用nsIDOMFile实现的图片文件预览，作为日后参考。<span id="more-626"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">/* 火狐3下的上传图片预览（仅限火狐和图片文件） */</span></li>
<li><span style="color: Gray;">function $(v) {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; return document.getElementById(v);</span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">function func() {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; var file_path = $(&quot;file&quot;);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; alert('dataurl: ' + file_path.files.item(0).getAsDataURL());</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; $(&quot;div&quot;).innerHTML = &quot;</span><span style="color: Olive;">&lt;</span><span style="color: Green;">img</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">src</span><span style="color: Gray;">='</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;"> + file_path.files.item(0).getAsDataURL() + </span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">'</span><span style="color: Olive;">/&gt;</span><span style="color: Gray;">&quot;;</span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">form</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">method</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">post</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">action</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">?act=upload</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">form</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">enctype</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">multipart/form-data</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">input</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">file</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">file</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">onchange</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">func();</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">/&gt;&lt;</span><span style="color: Green;">input</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">submit</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">value</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">上传</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">div</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">form</span><span style="color: Olive;">&gt;</span></li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/626.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让Ubuntu的mySQL默认编码为utf8</title>
		<link>http://www.dayu.name/p/585.html</link>
		<comments>http://www.dayu.name/p/585.html#comments</comments>
		<pubDate>Fri, 03 Sep 2010 07:48:43 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[Linux-CentOS-Ubuntu]]></category>
		<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://www.dayu.name/?p=585</guid>
		<description><![CDATA[为了省去在每次建立数据库和数据表的过程中手动设置编码的繁琐，需要将mySQL服务器的默认编码设置为utf8，修改方法如下： 在[mysql]的下面加上 default-character-set=utf8 在[client]的下面加上 default-character-set=utf8 在[mysqld]下面加上 default-character-set=utf8 init_connect='SET NAMES utf8']]></description>
			<content:encoded><![CDATA[<p>为了省去在每次建立数据库和数据表的过程中手动设置编码的繁琐，需要将mySQL服务器的默认编码设置为utf8，修改方法如下：<span id="more-585"></span><br />
在[mysql]的下面加上</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">default-character-set=utf8</li></ol></div>
<p>在[client]的下面加上</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">default-character-set=utf8</li></ol></div>
<p>在[mysqld]下面加上</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">default-character-set=utf8</li>
<li>init_connect='SET NAMES utf8'</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/585.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>隐藏PHP程序头部发出的X-Powered-By的PHP版本信息</title>
		<link>http://www.dayu.name/p/583.html</link>
		<comments>http://www.dayu.name/p/583.html#comments</comments>
		<pubDate>Wed, 01 Sep 2010 08:20:18 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://www.dayu.name/?p=583</guid>
		<description><![CDATA[尽管这不算是什么安全性的问题，不过这表明服务器正在运行PHP并且包含了当前的版本信息。 所以，从隐蔽服务器信息的角度考虑可以在php.ini文件中设置： expose_php = Off 这样就避免了输出类似 X-Powered-By: PHP/5.2.4 这样的信息]]></description>
			<content:encoded><![CDATA[<p>尽管这不算是什么安全性的问题，不过这表明服务器正在运行PHP并且包含了当前的版本信息。<br />
所以，从隐蔽服务器信息的角度考虑可以在php.ini文件中设置：</p>
<p>expose_php = Off</p>
<p>这样就避免了输出类似</p>
<p>X-Powered-By: PHP/5.2.4</p>
<p>这样的信息</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/583.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>参考书目</title>
		<link>http://www.dayu.name/p/501.html</link>
		<comments>http://www.dayu.name/p/501.html#comments</comments>
		<pubDate>Sat, 06 Mar 2010 03:51:14 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=501</guid>
		<description><![CDATA[HTML和CSS参考书： 精通CSS与HTML设计模式 Javascript参考书 深入浅出JavaScript PHP和Mysq参考书： PHP与MySQL程序设计(第3版) php和mysql web开发(原书第4版) PHP+MySQL八大动态Web应用实战]]></description>
			<content:encoded><![CDATA[<p><strong>HTML和CSS参考书：</strong><br />
<a href="http://www.amazon.cn/mn/detailApp/ref=sr_1_12?_encoding=UTF8&#038;s=books&#038;qid=1267847263&#038;asin=B001ECQHOG&#038;sr=8-12">精通CSS与HTML设计模式</a></p>
<p><strong>Javascript参考书</strong><br />
<a href="http://www.amazon.cn/mn/detailApp/ref=sr_1_4?_encoding=UTF8&#038;s=books&#038;qid=1267847330&#038;asin=B0015KTC6M&#038;sr=1-4">深入浅出JavaScript</a></p>
<p><strong>PHP和Mysq参考书：</strong><br />
<a href="http://www.amazon.cn/gp/product/B002BNKWKC/ref=ox_ya_oh_product">PHP与MySQL程序设计(第3版)</a></p>
<p><a href="http://www.amazon.cn/gp/product/B001TDLD80/ref=ox_ya_oh_product">php和mysql web开发(原书第4版)</a></p>
<p><a href="http://www.amazon.cn/gp/product/B001CF210E/ref=ox_ya_oh_product">PHP+MySQL八大动态Web应用实战</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/501.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>免费的企业邮箱</title>
		<link>http://www.dayu.name/p/491.html</link>
		<comments>http://www.dayu.name/p/491.html#comments</comments>
		<pubDate>Mon, 15 Feb 2010 14:44:14 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=491</guid>
		<description><![CDATA[最早用的是Google的APP，但其不支持我们的CN域名。 后来找到腾讯也提供了免费的企业邮箱服务。 初次使用，不知效果如何。日后总结，此处留贴标记一下。]]></description>
			<content:encoded><![CDATA[<p>最早用的是Google的APP，但其不支持我们的CN域名。<br />
后来找到腾讯也提供了免费的企业邮箱服务。<br />
<a href="http://domain.mail.qq.com"><img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/domainmail/logo_domainmail_mgr.gif" alt="" /></a><br />
初次使用，不知效果如何。日后总结，此处留贴标记一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/491.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决DIV被FLASH动画遮挡</title>
		<link>http://www.dayu.name/p/438.html</link>
		<comments>http://www.dayu.name/p/438.html#comments</comments>
		<pubDate>Sun, 20 Dec 2009 14:16:22 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=438</guid>
		<description><![CDATA[若DIV在页面上的位置被embed的FLASH元素遮挡了，用z-index解决无效。 可以在embed中加入wmode=&#8221;transparent&#8221; （设置flash为透明）属性即可。但会让FLASH里的AS语法失效（网上资料说的， 我未测试），但大部分都是引入的第三方视频网站动画，不影响用。正常后的效果如图：]]></description>
			<content:encoded><![CDATA[<p>若DIV在页面上的位置被embed的FLASH元素遮挡了，用z-index解决无效。<br />
可以在embed中加入wmode=&#8221;transparent&#8221; （设置flash为透明）属性即可。但会让FLASH里的AS语法失效（网上资料说的， 我未测试），但大部分都是引入的第三方视频网站动画，不影响用。正常后的效果如图：<a href="http://dayu.name/wp-content/uploads/2009/12/111.jpg" rel="lightbox[438]"><img src="http://dayu.name/wp-content/uploads/2009/12/111-300x246.jpg" alt="解决DIV被FLASH遮挡" title="解决DIV被FLASH遮挡" width="300" height="246" class="aligncenter size-medium wp-image-439" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/438.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用CSS实现的绝对定位</title>
		<link>http://www.dayu.name/p/426.html</link>
		<comments>http://www.dayu.name/p/426.html#comments</comments>
		<pubDate>Sun, 20 Dec 2009 07:58:38 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=426</guid>
		<description><![CDATA[&#60;html&#62; &#60;title&#62;用CSS实现的绝对定位&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; *{ margin:0; padding:0;} html{_overflow:hidden;} body{_height:100%; _overflow-y:auto;} #box{ width:100px; height:100px; background-color:#999999; position:fixed; _position:absolute; top:100px; left:100px; } &#60;/style&#62; &#160; &#160; &#60;body&#62; &#60; ?php for($i=0;$i&#38;lt;100;$i++) { echo &#34;&#60;p&#62;内容\n&#34;; } ?&#62; &#60;div id=&#34;box&#34;&#62;&#60;/div&#62; &#60;/body&#62; &#60;/html&#62;]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;html&gt;</li>
<li>&lt;title&gt;用CSS实现的绝对定位&lt;/title&gt;</li>
<li>&lt;style type=&quot;text/css&quot;&gt;</li>
<li>*{ margin:0; padding:0;}</li>
<li>html{_overflow:hidden;}</li>
<li>body{_height:100%; _overflow-y:auto;}</li>
<li>#box{</li>
<li>	width:100px;</li>
<li>	height:100px;</li>
<li>	background-color:#999999;</li>
<li>	position:fixed;</li>
<li>	_position:absolute;</li>
<li>	top:100px;</li>
<li>	left:100px;</li>
<li>}</li>
<li>&lt;/style&gt;</li>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li>&lt;body&gt;</li>
<li>&lt; ?php</li>
<li>for($i=0;$i&amp;lt;100;$i++) {</li>
<li>	echo &quot;&lt;p&gt;内容\n&quot;;</li>
<li>}</li>
<li>?&gt;</li>
<li>&lt;div id=&quot;box&quot;&gt;&lt;/div&gt;</li>
<li>&lt;/body&gt;</li>
<li>&lt;/html&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/426.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决：chm手册文档有的时候打不开</title>
		<link>http://www.dayu.name/p/416.html</link>
		<comments>http://www.dayu.name/p/416.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 15:18:50 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=416</guid>
		<description><![CDATA[在运行窗口中输入： regsvr32 C:\WINDOWS\system32\hhctrl.ocx 搞定！有的还是不行-_-]]></description>
			<content:encoded><![CDATA[<p>在运行窗口中输入：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">regsvr32 C:\WINDOWS\system32\hhctrl.ocx</li></ol></div>
<p><del datetime="2009-12-20T07:45:00+00:00">搞定！</del>有的还是不行-_-</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/416.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIV的vertical-align垂直居中对齐方法</title>
		<link>http://www.dayu.name/p/407.html</link>
		<comments>http://www.dayu.name/p/407.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 03:04:55 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=407</guid>
		<description><![CDATA[CSS中的确是有vertical-align属性，但是它只对(X)HTML元素中拥有valign特性的元素才生效，例如表格元素中的td、th、caption等，而像div、span这样的元素是没有valign特性的，因此使用vertical-align对它们不起作用。 一、单行垂直居中（兼容IE和FF） 如果一个容器中只有一行文字，对它实现居中相对比较简单，我们只需要设置它的实际高度height和所在行的高度line-height相等即可。如： &#60;style&#62; div { &#160; &#160; height:55px; &#160; &#160; line-height:55px; &#160; &#160; overflow:hidden; &#160; &#160; background-color:red; } &#60;/style&#62; &#60;div&#62; 单行文字的垂直居中 &#60;/div&#62; 后面使用overflow:hidden的设置是为了防止内容超出容器或者产生自动换行，这样就达不到垂直居中效果了。 二、多行未知高度文字的垂直居中（兼容IE和FF） 这是一种“看起来”的垂直居中方式 &#60;style&#62; div { &#160; &#160; padding:25px 0px; &#160; &#160; background-color:red; } &#60;/style&#62; &#60;div&#62; 单行文字的垂直居中 &#60;/div&#62; 三、多行高度自适应文字的垂直居中（兼容IE和FF） &#60;style&#62; div { &#160; &#160; height:55px; &#160; &#160; background-color:red; } .middle{ &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>CSS中的确是有vertical-align属性，但是它只对(X)HTML元素中拥有valign特性的元素才生效，例如表格元素中的td、th、caption等，而像div、span这样的元素是没有valign特性的，因此使用vertical-align对它们不起作用。</p>
<p><strong>一、单行垂直居中（兼容IE和FF）</strong><br />
如果一个容器中只有一行文字，对它实现居中相对比较简单，我们只需要设置它的实际高度height和所在行的高度line-height相等即可。如：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">div {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; height:55px;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; line-height:55px;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; overflow:hidden;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; background-color:red;</span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">单行文字的垂直居中</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p>后面使用overflow:hidden的设置是为了防止内容超出容器或者产生自动换行，这样就达不到垂直居中效果了。</p>
<p><strong>二、多行未知高度文字的垂直居中（兼容IE和FF）</strong><br />
这是一种<em>“看起来”</em>的垂直居中方式</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">div { </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; padding:25px 0px;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; background-color:red;</span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">单行文字的垂直居中</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p><strong>三、多行高度自适应文字的垂直居中（兼容IE和FF）</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">div {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; height:55px;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; background-color:red;</span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Gray;">.middle{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; display:inline-block;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; height:55px;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; width:0px;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; vertical-align:middle;</span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">span</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">middle</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">span</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">单行文字的垂直居中</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/407.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google电子邮件快讯使用介绍</title>
		<link>http://www.dayu.name/p/400.html</link>
		<comments>http://www.dayu.name/p/400.html#comments</comments>
		<pubDate>Mon, 17 Aug 2009 08:00:20 +0000</pubDate>
		<dc:creator>大宇</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://dayu.name/?p=400</guid>
		<description><![CDATA[下面以关键词“高考”为例介绍，为大家介绍Google搜索引擎电子邮件快讯使用的方法： 前提是首先注册一个Google的账号（还没有？你Out啦LoL） 1.打开Google资讯页面 http://news.google.cn/ 2.输入搜索关键词“高考” 3.浏览器自动返回搜索“高考”关键词返回的结果页面 4.在搜索结果列表页面的最下方，会有一块如下的区域 选择其中的为“高考”创建电子邮件快讯 5.选择相应配置即可生成相关关键词的邮件快讯提醒。]]></description>
			<content:encoded><![CDATA[<p>下面以关键词“高考”为例介绍，为大家介绍Google搜索引擎电子邮件快讯使用的方法：</p>
<p>前提是首先注册一个Google的账号（还没有？你Out啦LoL）</p>
<p>1.打开Google资讯页面 http://news.google.cn/<br />
2.输入搜索关键词“高考”<br />
3.浏览器自动返回搜索“高考”关键词返回的结果页面<br />
4.在搜索结果列表页面的最下方，会有一块如下的区域<br />
<a href="http://www.flickr.com/photos/yobbozhu/3828804483/" title="Flickr 上 大宇 的 snapper1250493284396"><img src="http://farm3.static.flickr.com/2475/3828804483_98bc6c2b19.jpg" width="500" height="162" alt="snapper1250493284396" /></a><br />
选择其中的<strong>为“高考”创建电子邮件快讯</strong><br />
5.选择相应配置即可生成相关关键词的邮件快讯提醒。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dayu.name/p/400.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

