<?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>Bruce</title>
	<atom:link href="http://brucehan.com/feed" rel="self" type="application/rss+xml" />
	<link>http://brucehan.com</link>
	<description>Something of a professional cynic.</description>
	<lastBuildDate>Wed, 10 Mar 2010 02:19:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何阻止地区IP访问网站</title>
		<link>http://brucehan.com/archives/1417</link>
		<comments>http://brucehan.com/archives/1417#comments</comments>
		<pubDate>Wed, 10 Mar 2010 02:15:41 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1417</guid>
		<description><![CDATA[本来呢，一个网站搞起来就是给人看的。但是有时候可能出于某种原因不想让某个地区的人看到，那这个时候我们如何将这些区域屏蔽掉呢？对的，设定.htaccess文件。

.htaccess文件(或者&#8221;分布式配置文件&#8221;）提供了针对目录改变配置的方法， 即，在一个特定的文档目录中放置一个包含一个或多个指令的文件， 以作用于此目录及其所有子目录。作为用户，所能使用的命令受到限制。管理员可以通过Apache的AllowOverride指令来设置。

例如：你将下面的这部分内容保存到.htaccess文件里，上传到空间根目录就可以彻底屏蔽来自中国的IP。至于说你想屏蔽国内具体哪个地区的IP，那建议你在百度里挨个儿查查IP归属地。国域IP屏蔽不知道具体IP可以登陆：这里查阅。

<span class="readmore"><a href="http://brucehan.com/archives/1417" title="如何阻止地区IP访问网站">Read More: 28768 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>本来呢，一个网站搞起来就是给人看的。但是有时候可能出于某种原因不想让某个地区的人看到，那这个时候我们如何将这些区域屏蔽掉呢？对的，设定.htaccess文件。</p>
<p>.<span style="text-decoration: underline;">htaccess文件(或者&#8221;分布式配置文件&#8221;）提供了针对目录改变配置的方法， 即，在一个特定的文档目录中放置一个包含一个或多个指令的文件， 以作用于此目录及其所有子目录。作为用户，所能使用的命令受到限制。管理员可以通过Apache的AllowOverride指令来设置。</span></p>
<p>例如：你将下面的这部分内容保存到.htaccess文件里，上传到空间根目录就可以彻底屏蔽来自中国的IP。至于说你想屏蔽国内具体哪个地区的IP，那建议你在百度里挨个儿查查IP归属地。国域IP屏蔽不知道具体IP可以登陆：<a href="http://www.blockacountry.com/">这里</a>查阅。</p>
<p><a href='http://brucehan.com/archives/1417#SID1417_1_tgl' title='Visit blog to check out this spoiler'>[[Visit blog to check out this spoiler]]</a></p>
<p><span id="more-1417"></span></p>
<p><strong><span style="color: #ff0000;">同时需要注意的是</span></strong>：.htaccess文件应该被用在内容提供者需要针对特定目录改变服务器的配置而又没有root权限的情况下。如果服务器管理员不愿意频繁修改配置，则可以允许用户通过.htaccess文件自己修改配置，尤其是ISP在同一个机器上运行了多个用户站点，而又希望用户可以自己改变配置的情况下。虽然如此，一般都应该尽可能地避免使用.htaccess文件。任何希望放在.htaccess文件中的配置，都可以放在主配置文件的&lt;Directory&gt;段中，而且更高效。</p>
<p>避免使用.htaccess文件有两个主要原因。</p>
<p>首先是性能。如果AllowOverride启用了.htaccess文件，则Apache需要在每个目录中查找.htaccess文件，因此，无论是否真正用到，启用.htaccess都会导致性能的下降。另外，对每一个请求，都需要读取一次.htaccess文件。</p>
<p>还有，Apache必须在所有上级的目录中查找.htaccess文件，以使所有有效的指令都起作用(参见指令的生效)，所以，如果请求/www/htdocs/example中的页面，Apache必须查找以下文件：</p>
<p><strong>/.htaccess</strong></p>
<p>/www/.htaccess</p>
<p>/www/htdocs/.htaccess</p>
<p>/www/htdocs/example/.htaccess</p>
<p>总共要访问4个额外的文件，即使这些文件都不存在。(注意，这可能仅仅由于允许根目录&#8221;/&#8221;使用.htaccess ，虽然这种情况并不多。)</p>
<p>其次是安全。这样会允许用户自己修改服务器的配置，这可能会导致某些意想不到的修改，所以请认真考虑是否应当给予用户这样的特权。但是，如果给予用户较少的特权而不能满足其需要，则会带来额外的技术支持请求，所以，必须明确地告诉用户已经给予他们的权限，说明AllowOverride设置的值，并引导他们参阅相应的说明，以免日后生出许多麻烦。</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5736529044108483";
/* bruce文章下 */
google_ad_slot = "3956797628";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> <h3>Related Posts</h3><ul><li>0</li></ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1417">Permalink</a> |
<a href="http://brucehan.com/archives/1417#comments">No comment</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1417/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>寄生</title>
		<link>http://brucehan.com/archives/1415</link>
		<comments>http://brucehan.com/archives/1415#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:59:11 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1415</guid>
		<description><![CDATA[你说我们不会变，作回朋友，会舒服些。

你说你怕太浓烈，走得越远， 越没感觉。

你说时间会冲淡一切，距离让我们好过些.

<span class="readmore"><a href="http://brucehan.com/archives/1415" title="寄生">Read More: 177 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>你说我们不会变，作回朋友，会舒服些。</p>
<p>你说你怕太浓烈，走得越远， 越没感觉。</p>
<p>你说时间会冲淡一切，距离让我们好过些.</p>
<p>但是你走得越来越远，我却越来越有感觉。 </p>
<p>我寄生在你的世界多一天，就连自己影子都要看不见。</p>
<p>你带走了什么，你看不见。</p>
<p>它却不断侵蚀着我每一天。</p>
<p>我寄生在你的<a href="http://brucehan.com/archives/28"title="回忆多么美！" >回忆</a>多一天，就连自己声音都要听不见。</p>
<p>我哭喊着什么，你听不见。</p>
<p>因为我寄生在回忆里面。</p>
<p>在这回忆里面……   </p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1122" title="失业情歌 2009.12.4">失业情歌</a>(0)</li>
<li><a href="http://brucehan.com/archives/594" title="沉寂多年（Silent All These Years） 2009.07.31">沉寂多年（Silent All These Years）</a>(0)</li>
<li><a href="http://brucehan.com/archives/511" title="夜上海 2009.07.20">夜上海</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1415#comment-1317" title="View the entire comment by Bruce" >@happyet 这歌词……凄凄惨惨戚戚…… <img src='http://brucehan.com/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' /> </a></li>
<li><a class="commentor" href="http://www.happyet.org" >happyet</a> : <a class="comment_content" href="http://brucehan.com/archives/1415#comment-1315" title="View the entire comment by happyet" >难道又是歌词？</a></li>
</ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1415">Permalink</a> |
<a href="http://brucehan.com/archives/1415#comments">2 comments</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1415/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>天晴了</title>
		<link>http://brucehan.com/archives/1411</link>
		<comments>http://brucehan.com/archives/1411#comments</comments>
		<pubDate>Tue, 09 Mar 2010 04:49:11 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1411</guid>
		<description><![CDATA[中午提着外卖一脸迷茫，正准备回去抽根烟。一束阳光啪的打在我身上！

“我练成了？”

难道这是上天给我的什么启示？

<span class="readmore"><a href="http://brucehan.com/archives/1411" title="天晴了">Read More: 69 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>中午提着外卖一脸迷茫，正准备回去抽根<a href="http://brucehan.com/archives/755"title="上厕所的时候不要抽烟" >烟</a>。一束阳光啪的打在我身上！</p>
<p>“我练成了？”</p>
<p>难道这是上天给我的什么启示？</p>
<p>屁啦……</p>
<p>胡思是乱想，赤裸是生活。</p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1408" title="被按 2010.03.4">被按</a>(3)</li>
<li><a href="http://brucehan.com/archives/1406" title="王兄生日 2010.03.2">王兄生日</a>(2)</li>
<li><a href="http://brucehan.com/archives/1403" title="元宵节 2010.03.1">元宵节</a>(2)</li>
<li><a href="http://brucehan.com/archives/1389" title="无聊 2010.02.27">无聊</a>(2)</li>
<li><a href="http://brucehan.com/archives/1368" title="小日子 2010.02.22">小日子</a>(0)</li>
<li><a href="http://brucehan.com/archives/1359" title="用力的做，用力的爱，用力的活 2010.02.19">用力的做，用力的爱，用力的活</a>(0)</li>
<li><a href="http://brucehan.com/archives/1358" title="五味杂陈 2010.02.18">五味杂陈</a>(2)</li>
<li><a href="http://brucehan.com/archives/1353" title="现实的矛盾界限，人心的权宜思量 2010.02.5">现实的矛盾界限，人心的权宜思量</a>(6)</li>
<li><a href="http://brucehan.com/archives/1352" title="再见故人时 2010.02.4">再见故人时</a>(7)</li>
<li><a href="http://brucehan.com/archives/1348" title="回家 2010.02.2">回家</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1411#comment-1316" title="View the entire comment by Bruce" >@happyet  完了完了……你丫爱上我了…… <img src='http://brucehan.com/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' /> </a></li>
<li><a class="commentor" href="http://www.happyet.org" >happyet</a> : <a class="comment_content" href="http://brucehan.com/archives/1411#comment-1314" title="View the entire comment by happyet" >@Bruce  表达后呢？自言自语吧。</a></li>
<li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1411#comment-1307" title="View the entire comment by Bruce" >@happyet  究竟该向谁去表达？ <img src='http://brucehan.com/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' /> </a></li>
<li><a class="commentor" href="http://www.happyet.org" >happyet</a> : <a class="comment_content" href="http://brucehan.com/archives/1411#comment-1300" title="View the entire comment by happyet" >@Bruce  
看把你爽的。。。</a></li>
<li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1411#comment-1299" title="View the entire comment by Bruce" >@happyet  痛并快乐着！ <img src='http://brucehan.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </a></li>
</ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1411">Permalink</a> |
<a href="http://brucehan.com/archives/1411#comments">6 comments</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1411/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>设置浏览器默认语言</title>
		<link>http://brucehan.com/archives/1410</link>
		<comments>http://brucehan.com/archives/1410#comments</comments>
		<pubDate>Mon, 08 Mar 2010 07:53:18 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1410</guid>
		<description><![CDATA[浏览器默认语言的设置关系到有些网站你能否正常打开。浏览器类别有点多，目前主流的就属ＩＥ和火狐了。   firefox:工具-&#62;选项(o)-&#62;内容，在&#34;语言&#34;区点击&#34;选择&#34;按钮，可添加某种语言，然后在&#34;首选语言排列:&#34;中把某种语言移动到第一行。只要不要有中文的就可以啦。

IE:工具-&#62;Internet选项(o)-&#62;常规，点击&#34;语言(L)&#8230;&#34;按钮，可点&#34;添加&#34;按钮添加某种语言，然后在&#34;语言(L):&#34;中把某种语言移动到第一行。把中文的删除了，再添加别的语言，如“英文”

<span class="readmore"><a href="http://brucehan.com/archives/1410" title="设置浏览器默认语言">Read More: 298 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>浏览器默认语言的设置关系到有些网站你能否正常打开。浏览器类别有点多，目前主流的就属ＩＥ和<a href="http://brucehan.com/archives/499"title="Firefox" >火狐</a>了。   <br />firefox:工具-&gt;选项(o)-&gt;内容，在&quot;语言&quot;区点击&quot;选择&quot;按钮，可添加某种语言，然后在&quot;首选语言排列:&quot;中把某种语言移动到第一行。只要不要有中文的就可以啦。</p>
<p>IE:工具-&gt;Internet选项(o)-&gt;常规，点击&quot;语言(L)&#8230;&quot;按钮，可点&quot;添加&quot;按钮添加某种语言，然后在&quot;语言(L):&quot;中把某种语言移动到第一行。把中文的删除了，再添加别的语言，如“英文”</p>
<p> <span id="more-1410"></span>
<p>参考：<a title="http://www.zouqingshui.net/headingto3/explorer-language-setting/" href="http://www.zouqingshui.net/headingto3/explorer-language-setting/">http://www.zouqingshui.net/headingto3/explorer-language-setting/</a></p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1049" title="Zen-cart开荒记录（一帖到底） 2009.11.24">Zen-cart开荒记录（一帖到底）</a>(3)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1410">Permalink</a> |
<a href="http://brucehan.com/archives/1410#comments">No comment</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1410/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>被按</title>
		<link>http://brucehan.com/archives/1408</link>
		<comments>http://brucehan.com/archives/1408#comments</comments>
		<pubDate>Fri, 05 Mar 2010 06:31:09 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1408</guid>
		<description><![CDATA[悲剧男激动无语。

关于ICP备案申请审核通过的通知。

 

<span class="readmore"><a href="http://brucehan.com/archives/1408" title="被按">Read More: 94 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>悲剧男激动无语。</p>
<p>关于<a href="http://brucehan.com/archives/521"title="ICP备案" >ICP</a>备案申请审核通过的通知。</p>
<p> <span id="more-1408"></span>
<p>尊敬的用户[布鲁斯]：您的ICP备案申请已通过审核,备案/许可证编号为: 沪ICP备10017***号 ，审核通过日期：2010-03-05。</p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1411" title="天晴了 2010.03.8">天晴了</a>(6)</li>
<li><a href="http://brucehan.com/archives/1406" title="王兄生日 2010.03.2">王兄生日</a>(2)</li>
<li><a href="http://brucehan.com/archives/1403" title="元宵节 2010.03.1">元宵节</a>(2)</li>
<li><a href="http://brucehan.com/archives/1389" title="无聊 2010.02.27">无聊</a>(2)</li>
<li><a href="http://brucehan.com/archives/1368" title="小日子 2010.02.22">小日子</a>(0)</li>
<li><a href="http://brucehan.com/archives/1359" title="用力的做，用力的爱，用力的活 2010.02.19">用力的做，用力的爱，用力的活</a>(0)</li>
<li><a href="http://brucehan.com/archives/1358" title="五味杂陈 2010.02.18">五味杂陈</a>(2)</li>
<li><a href="http://brucehan.com/archives/1353" title="现实的矛盾界限，人心的权宜思量 2010.02.5">现实的矛盾界限，人心的权宜思量</a>(6)</li>
<li><a href="http://brucehan.com/archives/1352" title="再见故人时 2010.02.4">再见故人时</a>(7)</li>
<li><a href="http://brucehan.com/archives/1348" title="回家 2010.02.2">回家</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1408#comment-1275" title="View the entire comment by Bruce" >@happyet  至于么……典型的嫉妒！ <img src='http://brucehan.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  

@蚊子  ……我身在国外心系祖国...</a></li>
<li><a class="commentor" href="" >蚊子</a> : <a class="comment_content" href="http://brucehan.com/archives/1408#comment-1266" title="View the entire comment by 蚊子" >o(╯□╰)o，你空间哪儿的啊？备案？
不过还是恭喜，总算不是黑户了，(^o^)/~</a></li>
<li><a class="commentor" href="http://www.happyet.org" >happyet</a> : <a class="comment_content" href="http://brucehan.com/archives/1408#comment-1264" title="View the entire comment by happyet" >鄙视。。。</a></li>
</ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1408">Permalink</a> |
<a href="http://brucehan.com/archives/1408#comments">3 comments</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1408/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>王兄生日</title>
		<link>http://brucehan.com/archives/1406</link>
		<comments>http://brucehan.com/archives/1406#comments</comments>
		<pubDate>Tue, 02 Mar 2010 16:41:43 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1406</guid>
		<description><![CDATA[宿管阿姨说：王兄的名字走哪里都占人便宜。我非常同意。没想到王兄轻蔑一笑：老了就吃亏！对此他可谓深思熟虑。姓王名兄。今天晚上王兄过生日，请我吃火锅。寂寞男人对面坐，旁若无人吃火锅。有些日子，你若重视它，它就会回报你。有些形式是可以忽略的，而有些又是必须的。可能若干年后细节渐渐淡去，但只要依稀记得这一年的生日是我陪着他过的。我相信彼此心里都会掠过一丝温暖。

其实很多时候，并不需要你为旁人付出那多坎坷，你只需要静静的存在着、无声的陪伴着。

若被看到，微笑就好。

<span class="readmore"><a href="http://brucehan.com/archives/1406" title="王兄生日">Read More: 451 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>宿管阿姨说：王兄的名字走哪里都占人便宜。我非常同意。没想到王兄轻蔑一笑：老了就吃亏！对此他可谓深思熟虑。姓王名兄。今天晚上王兄过生日，请我吃火锅。寂寞<a href="http://brucehan.com/archives/31"title="跟我学做男人！" >男人</a>对面坐，旁若无人吃火锅。有些日子，你若重视它，它就会回报你。有些形式是可以忽略的，而有些又是必须的。可能若干年后细节渐渐淡去，但只要依稀记得这一年的生日是我陪着他过的。我相信彼此心里都会掠过一丝温暖。</p>
<p>其实很多时候，并不需要你为旁人付出那多坎坷，你只需要静静的存在着、无声的陪伴着。</p>
<p>若被看到，微笑就好。</p>
<p> <span id="more-1406"></span>
<p>我居然开始喜欢开会，虽然我觉得绝大多数的会议纯粹就是扯淡、是浪费时间，但是就像我说的，有些形式看起来可有可无，但缺了它还真的就残缺了。有些东西，现在的我说不清楚。只是一种朴素的觉得。这种动员会议，让我很激动。激动什么？与财富追逐战本身并无半点关系，只是让我意识到我不孤独。哪怕是在干一件时常让我觉得是很荒谬的事，哪怕归属感历来都是严重缺失。但这群人的相聚本身就值得我全力以赴一次了。</p>
<p>就像面子不是别人给的，是自己挣得。生活啊，不也是自己蹭出来的麽……</p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1411" title="天晴了 2010.03.8">天晴了</a>(6)</li>
<li><a href="http://brucehan.com/archives/1408" title="被按 2010.03.4">被按</a>(3)</li>
<li><a href="http://brucehan.com/archives/1403" title="元宵节 2010.03.1">元宵节</a>(2)</li>
<li><a href="http://brucehan.com/archives/1389" title="无聊 2010.02.27">无聊</a>(2)</li>
<li><a href="http://brucehan.com/archives/1368" title="小日子 2010.02.22">小日子</a>(0)</li>
<li><a href="http://brucehan.com/archives/1359" title="用力的做，用力的爱，用力的活 2010.02.19">用力的做，用力的爱，用力的活</a>(0)</li>
<li><a href="http://brucehan.com/archives/1358" title="五味杂陈 2010.02.18">五味杂陈</a>(2)</li>
<li><a href="http://brucehan.com/archives/1353" title="现实的矛盾界限，人心的权宜思量 2010.02.5">现实的矛盾界限，人心的权宜思量</a>(6)</li>
<li><a href="http://brucehan.com/archives/1352" title="再见故人时 2010.02.4">再见故人时</a>(7)</li>
<li><a href="http://brucehan.com/archives/1348" title="回家 2010.02.2">回家</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1406#comment-1263" title="View the entire comment by Bruce" >@彼岸苏安  朕准了…… <img src='http://brucehan.com/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' /> </a></li>
<li><a class="commentor" href="http://www.biansuan.com" >彼岸苏安</a> : <a class="comment_content" href="http://brucehan.com/archives/1406#comment-1262" title="View the entire comment by 彼岸苏安" >来博主这里打酱油啊！</a></li>
</ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1406">Permalink</a> |
<a href="http://brucehan.com/archives/1406#comments">2 comments</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1406/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>元宵节</title>
		<link>http://brucehan.com/archives/1403</link>
		<comments>http://brucehan.com/archives/1403#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:07:11 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1403</guid>
		<description><![CDATA[三人行的骨头分量很足，借此我们成功征服了大象。还记得刚到上海时候的，我们四个人坐在东南小吃里胡思乱想。一转眼，两年了。有时候很忙，有时候又很无所谓，但无论如何，女人离开你的时候朋友不会。希望每年年初我们都能凑在一起吃顿饭。

美罗城好乐迪的价格我个人感觉还算公道。于是，四个男人KTV。鬼哭狼嚎一阵后，心情大好。

春申府邸的月亮好圆。月亮上的乱石冈和小松树这么多年来一直未变。

<span class="readmore"><a href="http://brucehan.com/archives/1403" title="元宵节">Read More: 206 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>三人行的骨头分量很足，借此我们成功征服了大象。还记得刚到<a href="http://brucehan.com/archives/511"title="夜上海！" >上海</a>时候的，我们四个人坐在东南小吃里胡思乱想。一转眼，两年了。有时候很忙，有时候又很无所谓，但无论如何，<a href="http://brucehan.com/archives/56"title="女人的哲学" >女人</a>离开你的时候朋友不会。希望每年年初我们都能凑在一起吃顿饭。</p>
<p>美罗城好乐迪的价格我个人感觉还算公道。于是，四个<a href="http://brucehan.com/archives/31"title="跟我学做男人！" >男人</a>KTV。鬼哭狼嚎一阵后，心情大好。</p>
<p>春申府邸的月亮好圆。月亮上的乱石冈和小松树这么多年来一直未变。</p>
<p>那些夜晚，我夜夜数着….来回往复的五号线。</p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1411" title="天晴了 2010.03.8">天晴了</a>(6)</li>
<li><a href="http://brucehan.com/archives/1408" title="被按 2010.03.4">被按</a>(3)</li>
<li><a href="http://brucehan.com/archives/1406" title="王兄生日 2010.03.2">王兄生日</a>(2)</li>
<li><a href="http://brucehan.com/archives/1389" title="无聊 2010.02.27">无聊</a>(2)</li>
<li><a href="http://brucehan.com/archives/1368" title="小日子 2010.02.22">小日子</a>(0)</li>
<li><a href="http://brucehan.com/archives/1359" title="用力的做，用力的爱，用力的活 2010.02.19">用力的做，用力的爱，用力的活</a>(0)</li>
<li><a href="http://brucehan.com/archives/1358" title="五味杂陈 2010.02.18">五味杂陈</a>(2)</li>
<li><a href="http://brucehan.com/archives/1353" title="现实的矛盾界限，人心的权宜思量 2010.02.5">现实的矛盾界限，人心的权宜思量</a>(6)</li>
<li><a href="http://brucehan.com/archives/1352" title="再见故人时 2010.02.4">再见故人时</a>(7)</li>
<li><a href="http://brucehan.com/archives/1348" title="回家 2010.02.2">回家</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1403#comment-1245" title="View the entire comment by Bruce" >@C.S.A  呵呵，那个是失误！我居然把mp3放到自己空间引用了。悲剧…… <img src='http://brucehan.com/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' /> </a></li>
<li><a class="commentor" href="http://chenshian.com" >C.S.A</a> : <a class="comment_content" href="http://brucehan.com/archives/1403#comment-1241" title="View the entire comment by C.S.A" >元宵节快乐哈！
上月流量太大了吧，月底的时候博客就出问题了！</a></li>
</ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1403">Permalink</a> |
<a href="http://brucehan.com/archives/1403#comments">2 comments</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1403/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>十个WP高端设计地址[转]</title>
		<link>http://brucehan.com/archives/1399</link>
		<comments>http://brucehan.com/archives/1399#comments</comments>
		<pubDate>Mon, 01 Mar 2010 07:41:49 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1399</guid>
		<description><![CDATA[对我而言，这些都是布局参照及素材提供站点。只是功能性的内容没办法Copy…不过那正是鄙人的努力方向。期待我更好的扒窃作品及早问世。

 

wpnow&#160; 

<span class="readmore"><a href="http://brucehan.com/archives/1399" title="十个WP高端设计地址[转]">Read More: 163 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>对我而言，这些都是布局参照及素材提供站点。只是功能性的内容没办法Copy…不过那正是鄙人的努力方向。期待我更好的扒窃作品及早问世。</p>
<p> <span id="more-1399"></span>
<p><a href="http://www.wpnow.com/"><strong>wpnow</strong></a>&#160; </p>
<p><a href="http://www.vivathemes.com/"><strong>Viva Themes</strong></a>&#160;</p>
<h5><a href="http://www.woothemes.com/">WooThemes</a>&#160;</h5>
<h5><a href="http://themeforest.net/">themeforest</a>&#160;</h5>
<h5><a href="http://www.studiopress.com/">studiopress</a>&#160;</h5>
<h5><a href="http://richwp.com/">richWP</a>&#160;</h5>
<h5><a href="http://www.nattywp.com/">NattyWP</a>&#160;</h5>
<h5><a href="http://gorillathemes.com/">gorillathemes</a>&#160;</h5>
<h5><a href="http://www.gabfirethemes.com/">gabfirethemes</a>&#160;</h5>
<h5><a href="http://www.elegantthemes.com/">elegantthemes</a></h5>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1398" title="30个免费下载高质量icon图标的网站[转载] 2010.03.1">30个免费下载高质量icon图标的网站[转载]</a>(0)</li>
<li><a href="http://brucehan.com/archives/1395" title="CSS技巧汇总 2010.02.28">CSS技巧汇总</a>(0)</li>
<li><a href="http://brucehan.com/archives/1367" title="loading图片在线生成 2010.02.21">loading图片在线生成</a>(0)</li>
<li><a href="http://brucehan.com/archives/1363" title="首页自动伸缩广告代码大全 2010.02.20">首页自动伸缩广告代码大全</a>(2)</li>
<li><a href="http://brucehan.com/archives/1343" title="FF和IE常见才CSS区别汇总 2010.01.26">FF和IE常见才CSS区别汇总</a>(0)</li>
<li><a href="http://brucehan.com/archives/1221" title="请正确使用HTML Table 2009.12.20">请正确使用HTML Table</a>(0)</li>
<li><a href="http://brucehan.com/archives/1026" title="50个有用的网站设计资源 2009.11.9">50个有用的网站设计资源</a>(3)</li>
<li><a href="http://brucehan.com/archives/975" title="Javascript实现DIV圆角 2009.10.24">Javascript实现DIV圆角</a>(11)</li>
<li><a href="http://brucehan.com/archives/956" title="一张图片实现CSS圆角&lt;代码精简版&gt; 2009.10.19">一张图片实现CSS圆角&lt;代码精简版&gt;</a>(0)</li>
<li><a href="http://brucehan.com/archives/682" title="CSS Sprites 2009.08.12">CSS Sprites</a>(2)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1399#comment-1276" title="View the entire comment by Bruce" >@huangyuling  因为老外比黄种人高！</a></li>
<li><a class="commentor" href="http://huang-yuling.net/" >huangyuling</a> : <a class="comment_content" href="http://brucehan.com/archives/1399#comment-1265" title="View the entire comment by huangyuling" >为什么高端总是国外的？</a></li>
<li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1399#comment-1244" title="View the entire comment by Bruce" >@xuun  来吧…… <img src='http://brucehan.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </a></li>
<li><a class="commentor" href="http://xuun.net" >xuun</a> : <a class="comment_content" href="http://brucehan.com/archives/1399#comment-1242" title="View the entire comment by xuun" >这是什么情况？改我留言?我日你</a></li>
<li><a class="commentor" href="http://brucehan.com" >Bruce</a> : <a class="comment_content" href="http://brucehan.com/archives/1399#comment-1240" title="View the entire comment by Bruce" >@xuun  悲剧了...</a></li>
</ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1399">Permalink</a> |
<a href="http://brucehan.com/archives/1399#comments">7 comments</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1399/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>30个免费下载高质量icon图标的网站[转载]</title>
		<link>http://brucehan.com/archives/1398</link>
		<comments>http://brucehan.com/archives/1398#comments</comments>
		<pubDate>Mon, 01 Mar 2010 07:06:33 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Icon]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1398</guid>
		<description><![CDATA[ICON在网站上被越来越多的使用，人们总想让自己的网站变的有趣美观，所以为了迎合这些设计者的需求，专门提供ICON下载的网站也越来越多，本文要为你介绍的就是这些精心挑选的免费下载高质量的ICON网站，你只需要猛击下面的网站缩略图去寻找适合你口味的图标就可以了。



1、http://fasticon.com/freeware/

<span class="readmore"><a href="http://brucehan.com/archives/1398" title="30个免费下载高质量icon图标的网站[转载]">Read More: 1263 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>ICON在网站上被越来越多的使用，人们总想让自己的网站变的有趣美观，所以为了迎合这些设计者的需求，专门提供ICON下载的网站也越来越多，本文要为你介绍的就是这些精心挑选的免费下载高质量的ICON网站，你只需要猛击下面的网站缩略图去寻找适合你口味的图标就可以了。</p>
<p><span id="more-1398"></span></p>
<p>1、<a title="http://fasticon.com/freeware/" href="http://fasticon.com/freeware/"><span style="text-decoration: underline;">http://fasticon.com/freeware/</span></a></p>
<p>2、<a title="http://dryicons.com/" href="http://dryicons.com/"><span style="text-decoration: underline;">http://dryicons.com/</span></a></p>
<p>3、<a title="http://www.guiicons.com/" href="http://www.guiicons.com/"><span style="text-decoration: underline;">http://www.guiicons.com/</span></a></p>
<p>4、<a title="http://www.vistaicons.com/" href="http://www.vistaicons.com/"><span style="text-decoration: underline;">http://www.vistaicons.com/</span></a></p>
<p>5、<a title="http://feedicons.com/" href="http://feedicons.com/"><span style="text-decoration: underline;">http://feedicons.com/</span></a></p>
<p>6、<a title="http://www.icobox.net/" href="http://www.icobox.net/"><span style="text-decoration: underline;">http://www.icobox.net/</span></a></p>
<p>7、<a title="http://www.iconspedia.com/" href="http://www.iconspedia.com/"><span style="text-decoration: underline;">http://www.iconspedia.com/</span></a></p>
<p>8、<a title="http://www.icondrawer.com/free.php" href="http://www.icondrawer.com/free.php"><span style="text-decoration: underline;">http://www.icondrawer.com/free.php</span></a></p>
<p>9、<a title="http://www.techlogica.us/icons/free/" href="http://www.techlogica.us/icons/free/"><span style="text-decoration: underline;">http://www.techlogica.us/icons/free/</span></a></p>
<p>10、<a title="http://www.iconbulk.com/icons_new.asp" href="http://www.iconbulk.com/icons_new.asp"><span style="text-decoration: underline;">http://www.iconbulk.com/icons_new.asp</span></a></p>
<p>11、<a title="http://iconfactory.com/freeware/icon" href="http://iconfactory.com/freeware/icon"><span style="text-decoration: underline;">http://iconfactory.com/freeware/icon</span></a></p>
<p>12、<a title="http://www.iconshock.com/vista-icons.php" href="http://www.iconshock.com/vista-icons.php"><span style="text-decoration: underline;">http://www.iconshock.com/vista-icons.php</span></a></p>
<p>13、<a title="http://www.iconbuffet.com/" href="http://www.iconbuffet.com/"><span style="text-decoration: underline;">http://www.iconbuffet.com/</span></a></p>
<p>14、<a title="http://www.smashingmagazine.com/2008/10/01/dellipack-2-a-free-icon-set/" href="http://www.smashingmagazine.com/2008/10/01/dellipack-2-a-free-icon-set/"><span style="text-decoration: underline;">http://www.smashingmagazine.com/2008/10/01/dellipack-2-a-free-icon-set/</span></a></p>
<p>15、<a title="http://www.iconfinder.net/" href="http://www.iconfinder.net/"><span style="text-decoration: underline;">http://www.iconfinder.net/</span></a></p>
<p>16、<a title="http://browse.deviantart.com/?qh=&amp;section=&amp;q=free+icons" href="http://browse.deviantart.com/?qh=&amp;section=&amp;q=free+icons"><span style="text-decoration: underline;">http://browse.deviantart.com/?qh=&amp;section=&amp;q=free+icons</span></a></p>
<p>17、<a title="http://www.freeiconsdownload.com/" href="http://www.freeiconsdownload.com/"><span style="text-decoration: underline;">http://www.freeiconsdownload.com/</span></a></p>
<p>18、<a title="http://famfamfam.com/lab/icons/" href="http://famfamfam.com/lab/icons/"><span style="text-decoration: underline;">http://famfamfam.com/lab/icons/</span></a></p>
<p>19、<a title="http://www.iconcool.com/xp-icons.htm" href="http://www.iconcool.com/xp-icons.htm"><span style="text-decoration: underline;">http://www.iconcool.com/xp-icons.htm</span></a></p>
<p>20、<a title="http://wefunction.com/tag/portfolio/" href="http://wefunction.com/tag/portfolio/"><span style="text-decoration: underline;">http://wefunction.com/tag/portfolio/</span></a></p>
<p>21、<a title="http://www.bestfreeicons.com/" href="http://www.bestfreeicons.com/"><span style="text-decoration: underline;">http://www.bestfreeicons.com/</span></a></p>
<p>22、<a title="http://www.tutorial9.net/" href="http://www.tutorial9.net/"><span style="text-decoration: underline;">http://www.tutorial9.net/</span></a></p>
<p>23、<a title="http://www.icojoy.com/articles/19/" href="http://www.icojoy.com/articles/19/"><span style="text-decoration: underline;">http://www.icojoy.com/articles/19/</span></a></p>
<p>24、<a title="http://theiconlab.com/allicons/index.html" href="http://theiconlab.com/allicons/index.html"><span style="text-decoration: underline;">http://theiconlab.com/allicons/index.html</span></a></p>
<p>25、<a title="http://www.gosquared.com/liquidicity/archives/122" href="http://www.gosquared.com/liquidicity/archives/122"><span style="text-decoration: underline;">http://www.gosquared.com/liquidicity/archives/122</span></a></p>
<p>26、<a title="http://www.glyfx.com/products/free.html" href="http://www.glyfx.com/products/free.html"><span style="text-decoration: underline;">http://www.glyfx.com/products/free.html</span></a></p>
<p>27、<a title="http://www.jjying.cn/blog2/viva-icons/" href="http://www.jjying.cn/blog2/viva-icons/"><span style="text-decoration: underline;">http://www.jjying.cn/blog2/viva-icons/</span></a></p>
<p>28、<a title="http://iconbee.willmayo.com/" href="http://iconbee.willmayo.com/"><span style="text-decoration: underline;">http://iconbee.willmayo.com/</span></a></p>
<p>29、<a title="http://iconeden.com/icon/fresh-addon-a-free-iconset.html" href="http://iconeden.com/icon/fresh-addon-a-free-iconset.html"><span style="text-decoration: underline;">http://iconeden.com/icon/fresh-addon-a-free-iconset.html</span></a></p>
<p>30、<a title="http://www.iconstick.com/" href="http://www.iconstick.com/"><span style="text-decoration: underline;">http://www.iconstick.com/</span></a></p>
<p>31、http://icondock.com/</p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1399" title="十个WP高端设计地址[转] 2010.03.1">十个WP高端设计地址[转]</a>(7)</li>
<li><a href="http://brucehan.com/archives/1395" title="CSS技巧汇总 2010.02.28">CSS技巧汇总</a>(0)</li>
<li><a href="http://brucehan.com/archives/1363" title="首页自动伸缩广告代码大全 2010.02.20">首页自动伸缩广告代码大全</a>(2)</li>
<li><a href="http://brucehan.com/archives/1343" title="FF和IE常见才CSS区别汇总 2010.01.26">FF和IE常见才CSS区别汇总</a>(0)</li>
<li><a href="http://brucehan.com/archives/1221" title="请正确使用HTML Table 2009.12.20">请正确使用HTML Table</a>(0)</li>
<li><a href="http://brucehan.com/archives/975" title="Javascript实现DIV圆角 2009.10.24">Javascript实现DIV圆角</a>(11)</li>
<li><a href="http://brucehan.com/archives/956" title="一张图片实现CSS圆角&lt;代码精简版&gt; 2009.10.19">一张图片实现CSS圆角&lt;代码精简版&gt;</a>(0)</li>
<li><a href="http://brucehan.com/archives/682" title="CSS Sprites 2009.08.12">CSS Sprites</a>(2)</li>
<li><a href="http://brucehan.com/archives/547" title="纯CSS圆角矩形布局代码 2009.07.28">纯CSS圆角矩形布局代码</a>(11)</li>
<li><a href="http://brucehan.com/archives/471" title="非常棒的隔行变色+点击变色table代码&lt;Amazing&gt; 2009.07.15">非常棒的隔行变色+点击变色table代码&lt;Amazing&gt;</a>(0)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1398">Permalink</a> |
<a href="http://brucehan.com/archives/1398#comments">No comment</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1398/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS技巧汇总</title>
		<link>http://brucehan.com/archives/1395</link>
		<comments>http://brucehan.com/archives/1395#comments</comments>
		<pubDate>Mon, 01 Mar 2010 05:53:11 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Css]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1395</guid>
		<description><![CDATA[十个常用的CSS技巧

CSS在书写代码的时候有很多技巧，掌握这些技巧不仅可以使代码看起来更整洁，还能对CSS起到压缩优化的作用。下面列举10个比较常用的技巧，如果你是CSS初学者，这些对你是相当有用的。 

1.CSS字体属性简写规则 

<span class="readmore"><a href="http://brucehan.com/archives/1395" title="CSS技巧汇总">Read More: 5991 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong><font color="#ff8080">十个常用的<a href="http://brucehan.com/archives/466"title="CSS" >CSS</a>技巧</font></strong></p>
<p>CSS在书写代码的时候有很多技巧，掌握这些技巧不仅可以使代码看起来更整洁，还能对CSS起到压缩优化的作用。下面列举10个比较常用的技巧，如果你是CSS初学者，这些对你是相当有用的。 </p>
<p>1.CSS字体属性简写规则 </p>
<p>一般用CSS设定字体属性是这样做的： </p>
<p>font-weight:bold;    <br />font-style:italic;     <br />font-varient:small-caps;     <br />font-size:1em;     <br />line-height:1.5em;     <br />font-family:verdana,sans-serif; </p>
<p>但也可以把它们全部写到一行上去： </p>
<p>font: bold italic small-caps 1em/1.5em verdana,sans-serif; </p>
<p>真不错！只有一点要提醒的：这种简写方法只有在同时指定font-size和font-family属性时才起作用。而且，如果你没有设定font-weight, font-style, 以及 font-varient ，他们会使用缺省值，这点要记上。 </p>
<p> <span id="more-1395"></span>
<p>2. 同时使用两个类 </p>
<p>一般只能给一个元素设定一个类（Class），但这并不意味着不能用两个。事实上，你可以这样： </p>
<p>&lt;p class=&quot;text side&quot;&gt;&#8230;&lt;/p&gt; </p>
<p>同时给P元素两个类，中间用空格格开，这样所有text和side两个类的属性都会加到P元素上来。如果它们两个类中的属性有冲突的话，后设置的起作用，即在CSS文件中放在后面的类的属性起作用。 </p>
<p>补充：对于一个ID，不能这样写&lt;p id=&quot;text side&quot;&gt;&#8230;&lt;/p&gt; </p>
<p>3. CSS border的缺省值 </p>
<p>通常可以设定边界的颜色，宽度和风格，如：border: 3px solid #000 </p>
<p>这位把边界显示成3像素宽，黑色，实线。但实际上这里只需要指定风格即可。 </p>
<p>如果只指定了风格，其他属性就会使用缺省值。一般地，Border的宽度缺省是medium，一般等于3到4个像素；缺省的颜色是其中文字的颜色。如果这个值正好合适的话，就不用设那么多了。 </p>
<p>4. CSS用于文档打印 </p>
<p>许多网站上都有一个针对打印的版本，但实际上这并不需要，因为可以用CSS来设定打印风格。 </p>
<p>也就是说，可以为页面指定两个CSS文件，一个用于屏幕显示，一个用于打印： </p>
<p>&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;stylesheet.css&quot; media=&quot;screen&quot; /&gt;    <br />&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;printstyle.css&quot; media=&quot;print&quot; /&gt; </p>
<p>第1行就是显示，第2行是打印，注意其中的media属性。 </p>
<p>但应该在打印CSS中写什么东西呢？你可以按设计普通CSS的方法来设定它。设计的同时就可以把这个CSS设成显示CSS来检查它的效果。也许你会使用 display: none 这个命令来关掉一些装饰图片，再关掉一些导航按钮。要想了解更多，可以看“打印差异”这一篇。 </p>
<p>5. 图片替换技巧 </p>
<p>一般都建议用标准的HTML来显示文字，而不要使用图片，这样不但快，也更具可读性。但如果你想用一些特殊字体时，就只能用图片了。 </p>
<p>比如你想整个卖东西的图标，你就用了这个图片： </p>
<p>&lt;h1&gt;&lt;img src=&quot;widget-image.gif&quot; alt=&quot;Buy widgets&quot; /&gt;&lt;/h1&gt; </p>
<p>这当然可以，但对<a href="http://brucehan.com/archives/288"target="_blank"title="搜索引擎的定义！" >搜索引擎</a>来说，和正常文字相比，它们对alt里面的替换文字几乎没有兴趣这是因为许多设计者在这里放许多关键词来骗搜索引擎。所以方法应该是这样的： </p>
<p>&lt;h1&gt;Buy widgets&lt;/h1&gt; </p>
<p>但这样就没有特殊字体了。要想达到同样效果，可以这样设计CSS： </p>
<p>h1 { background: url(widget-image.gif) no-repeat; height: image height text-indent: -2000px } </p>
<p>注意把image height换成真的图片的高度。这里，图片会当作背景显示出来，而真正的文字由于设定了-2000像素这个缩进，它们会出现在屏幕左边2000点的地方，就看不见了。但这对于关闭图片的人来说，可能全部看不到了，这点要注意。 </p>
<p>6. CSS box模型的另一种调整技巧 </p>
<p>这个Box模型的调整主要是针对<a href="http://brucehan.com/archives/406"title="落后的必须淘汰！" >IE6</a>之前的IE浏览器的，它们把边界宽度和空白都算在元素宽度上。比如： </p>
<p>#box { width: 100px; border: 5px; padding: 20px } </p>
<p>这样调用它：&lt;div id=&quot;box&quot;&gt;&#8230;&lt;/div&gt; </p>
<p>这时盒子的全宽应该是150点，这在除IE6之前的IE浏览器之外的所有浏览器上都是正确的。但在IE5这样的浏览器上，它的全宽仍是100点。可以用以前人发明的Box调整方法来处理这种差异。 </p>
<p>但用CSS也可以达到同样的目的，让它们显示效果一致。 </p>
<p>#box { width: 150px } #box div { border: 5px; padding: 20px } </p>
<p>这样调用：&lt;div id=&quot;box&quot;&gt;&lt;div&gt;&#8230;&lt;/div&gt;&lt;/div&gt; </p>
<p>这样，不管什么浏览器，宽度都是150点了。 </p>
<p>7. 块元素居中对齐 </p>
<p>如果想做个固定宽度的网页并且想让网页水平居中的话，通常是这样： </p>
<p>#content { width: 700px; margin: 0 auto } </p>
<p>你会使用 &lt;div id=”content”&gt; 来围上所有元素。这很简单，但不够好，IE6之前版本会显示不出这种效果。改CSS如下： </p>
<p>body { text-align: center } #content { text-align: left; width: 700px; margin: 0 auto } </p>
<p>这会把网页内容都居中，所以在Content中又加入了text-align: left 。 </p>
<p>8. 用CSS来处理垂直对齐 </p>
<p>垂直对齐用表格可以很方便地实现，设定表格单元 vertical-align: middle 就可以了。但对CSS来说这没用。如果你想设定一个导航条是2em高，而想让导航文字垂直居中的话，设定这个属性是没用的。 </p>
<p>CSS方法是什么呢？对了，把这些文字的行高设为 2em：line-height: 2em ，这就可以了。 </p>
<p>9. CSS在容器内定位 </p>
<p>CSS的一个好处是可以把一个元素任意定位，在一个容器内也可以。比如对这个容器： </p>
<p>#container { position: relative } </p>
<p>这样容器内所有的元素都会相对定位，可以这样用： </p>
<p>&lt;div id=&quot;container&quot;&gt;&lt;div id=&quot;navigation&quot;&gt;&#8230;&lt;/div&gt;&lt;/div&gt; </p>
<p>如果想定位到距左30点，距上5点，可以这样： </p>
<p>#navigation { position: absolute; left: 30px; top: 5px } </p>
<p>当然，你还可以这样： </p>
<p>margin: 5px 0 0 30px </p>
<p>注意4个数字的顺序是：上、右、下、左。当然，有时候定位的方法而不是边距的方法更好些。 </p>
<p>10. 直通到屏幕底部的背景色 </p>
<p>在垂直方向是进行控制是CSS所不能的。如果你想让导航栏和内容栏一样直通到页面底部，用表格是很方便的，但如果只用这样的CSS： </p>
<p>#navigation { background: blue; width: 150px } </p>
<p>较短的导航条是不会直通到底部的，半路内容结束时它就结束了。该怎么办呢？ </p>
<p>不幸的是，只能采用欺骗的手段了，给这较短的一栏加上个背景图，宽度和栏宽一样，并让它的颜色和设定的背景色一样。 </p>
<p>body { background: url(blue-image.gif) 0 0 repeat-y } </p>
<p>此时不能用em做单位，因为那样的话，一旦读者改变了字体大小，这个花招就会露馅，只能使用px。 </p>
<p><strong>本文作者是：Trenton Moss</strong></p>
<p><font color="#ff8080"><strong>20+CSS书写技巧及注意事项</strong></font></p>
<p>CSS的作用已经在前面的文章里不只一次的提到过了，相信现在很多人都已经领略了。关于CSS的基础知识以及一些技巧我也曾经不止一次地整理过，最近群里不少人都在讨论一些初学CSS该注意的事项以及书写技巧，所以今天再次收集整理如下：（鉴于本人水平有限，难免会有疏忽遗漏，如果你有更好的技巧建议，欢迎在下面的评论框里告诉我。） </p>
<p>1、ul标签在Mozilla中默认是有padding值的，而在IE中只有margin有值。 </p>
<p>2、同一个的class选择符可以在一个文档中重复出现，而id选择符却只能出现一次；对一个标签同时使用class和id进行CSS定义，如果定义有重复，id选择符做的定义有效，是因为ID的权值要比CLASS大。 </p>
<p>3、一个兼容性调整(IE和Mozilla)的笨办法：   <br />初学可能会碰到这样一个情况：同样一个标签的属性在IE设置成A显示是正常的，而在Mozilla里必须要设成B才能正常显示，或者两个倒过来。    <br />临时解决方法：选择符{属性名:B !important;属性名:A} </p>
<p>4、如果一组要嵌套的标签之间需要些间距的话，那就留给位于里面的标签的margin属性吧，而不要去定义位于外面的标签的padding </p>
<p>5、li标签前面的图标推荐使用background-image，而不是list-style-image。 </p>
<p>6、IE分不清继承关系和父子关系的差别，全部都是继承关系。 </p>
<p>7、在给你的标签疯狂加选择符的时候，别忘了在CSS里给选择符加上注释。 等你以后修改你的CSS的时候就知道为什么要这么做了。 </p>
<p>8、如果你给一个标签设置了一个深色调的背景图片和亮色调的文字效果。建议这个时候给你的标签再设置一个深色调的背景颜色。 </p>
<p>9、定义链接的四种状态要注意先后顺序: Link Visited Hover Active </p>
<p>10、与内容无关的图片请使用background </p>
<p>11、定义颜色可以缩写#8899FF=#89F </p>
<p>12、<a href="http://brucehan.com/archives/1152"title="封装选项卡！" >tab</a>le在某些方面比其它标签表现的要好的多。请在需要列对齐的地方用它。 </p>
<p>13、&lt;script&gt;没有language这个属性，应该写成这样:   <br />&lt;script type=&quot;text/javascript&quot;&gt; </p>
<p>14、标题是标题，标题的文字是标题的文字。有时候标题不一定需要显示文字，所以:&lt;h1&gt;标题内容&lt;/h1&gt; 改成 &lt;h1&gt;&lt;span&gt;标题内容&lt;/span&gt;&lt;/h1&gt; </p>
<p>15、完美的单象素外框线表格（在IE5、IE6、IE7及FF1.0.4以上中均可通过测试）   <br />table{border-collapse:collapse;}    <br />td{border:#000 solid 1px;} </p>
<p>16、margin取负值可以在标签使用绝对定位的时候起到相对定位的作用，在页面居中显示时，使用绝对定位的层不适合使用left:XXpx这个属性。把这个层放到一个要相对定位的标签旁，然后使用margin的负值是个好方法。 </p>
<p>17、绝对定位时使用margin值定位可以达到相对于本身所在位置的定，这与top，left等属性相对与窗口边缘的定位不同。绝对定位的优势在于可以让其它元素忽略它的存在。 </p>
<p>18、如果文字过长,则将过长的部分变成省略号显示：IE5,FF无效，但可以隐藏，IE6有效   <br />&lt;div style=&quot;width:120px;height:50px;border:1px solid blue;overflow:hidden;text-overflow:ellipsis&quot;&gt;    <br />&lt;NOBR&gt;就是比如有一行文字，很长，表格内一行显示不下.&lt;/NOBR&gt; </p>
<p>19、在IE中可能由于注释带来的文字重复问题时可以把注释改为：   <br />&lt;!–[if !IE]&gt;Put your commentary in here…&lt;![endif]–&gt; </p>
<p>20、如何用CSS调用外部字体   <br />语法：    <br />@font-face{font-family:name;src:url(url);sRules}    <br />取值：    <br />name：字体名称。任何可能的 font-family 属性的值    <br />url(url)：使用绝对或相对 url 地址指定OpenType字体文件    <br />sRules：样式表定义 </p>
<p>21、如何让一个表单中的文本框中的文字垂直居中？   <br />如果用行高与高度的组在FF中是没有效果的，办法就是定义上下补白就可以实现想想的效果了。 </p>
<p>22、定义A标签要注意的小问题：   <br />当我们定义a{color:red;}时，它代表了A的四种状态的样式，如果此时要定义一个鼠标放上的状态只要定义a:hover就可以了，其它三种状态就是A中所定义的样式。    <br />只定义了一个a:link时，一定要记得把其它三种状态定义出来！ </p>
<p>23、并不是所有样式都要简写：   <br />当样式表前定义了如p{padding:1px 2px 3px 4px}时，在后续工程中又增加了一个样式上补白5px，下补白6px。我们并不一定要写成p.style1{padding:5px 6px 3px 4px}。可以写成p.style1{padding-top:5px;padding-right:6px;},你可能会感觉这样写还不如原来那样好，但你想没想过，你的那种写法重复定义了样式，另外你可以不必去找原来的下补白与左补白的值是多少！如果以后前一个样式P变了话，你定义的p.style1的样式也要变。 </p>
<p>24、网站越大，CSS样式越多，开始做前，请做好充分的准备和策划，包括命名规则。页面区块划分，内部样式分类等。 </p>
<p>25、几个常用到的CSS样式： </p>
<p>1）中文字两端对齐：text-align:justify;text-justify:inter-ideograph; </p>
<p>2）固定宽度汉字截断：overflow:hidden;text-overflow:ellipsis;white-space:nowrap;(不过只能处理文字在一行上的截断，不能处理多行。)（IE5以上）FF不能，它只隐藏。 </p>
<p>3）固定宽度汉字（词）折行：table-layout:fixed; word-break:break-all;（IE5以上）FF不能。 </p>
<p>4）&lt;acronym title=&quot;输入要提示的文字&quot; style=&quot;cursor:help;&quot;&gt;文字&lt;/acronym&gt;用鼠标放在前面的文字上看效果。这个效果在国外的很多网站都可以看到，而国内的少又少。 </p>
<p>5）图片设为半透明：.halfalpha { background-color:#000000;filter:Alpha(Opacity=50)}在IE6及IE5测试通过，FF未通过，这是因为这个样式是IE私有的东西； </p>
<p>6）FLASH透明：选中swf,打开原代码窗口，在&lt;/object&gt;前输入&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt; 以上是针对IE的代码。   <br />针对FIREFOX 给&lt;embed&gt; 标签也增加类似参数wmode=&quot;transparent&quot; </p>
<p>7）在做网页时常用到把鼠标放在图片上会出现图片变亮的效果，可以用图片替换的技巧，也可以用如下的滤镜：   <br />.pictures img {filter: alpha(opacity=45);}    <br />.pictures a:hover img {filter: alpha(opacity=90);}</p>
<h3>Related Posts</h3><ul><li><a href="http://brucehan.com/archives/1399" title="十个WP高端设计地址[转] 2010.03.1">十个WP高端设计地址[转]</a>(7)</li>
<li><a href="http://brucehan.com/archives/1398" title="30个免费下载高质量icon图标的网站[转载] 2010.03.1">30个免费下载高质量icon图标的网站[转载]</a>(0)</li>
<li><a href="http://brucehan.com/archives/1363" title="首页自动伸缩广告代码大全 2010.02.20">首页自动伸缩广告代码大全</a>(2)</li>
<li><a href="http://brucehan.com/archives/1343" title="FF和IE常见才CSS区别汇总 2010.01.26">FF和IE常见才CSS区别汇总</a>(0)</li>
<li><a href="http://brucehan.com/archives/1221" title="请正确使用HTML Table 2009.12.20">请正确使用HTML Table</a>(0)</li>
<li><a href="http://brucehan.com/archives/975" title="Javascript实现DIV圆角 2009.10.24">Javascript实现DIV圆角</a>(11)</li>
<li><a href="http://brucehan.com/archives/956" title="一张图片实现CSS圆角&lt;代码精简版&gt; 2009.10.19">一张图片实现CSS圆角&lt;代码精简版&gt;</a>(0)</li>
<li><a href="http://brucehan.com/archives/682" title="CSS Sprites 2009.08.12">CSS Sprites</a>(2)</li>
<li><a href="http://brucehan.com/archives/547" title="纯CSS圆角矩形布局代码 2009.07.28">纯CSS圆角矩形布局代码</a>(11)</li>
<li><a href="http://brucehan.com/archives/471" title="非常棒的隔行变色+点击变色table代码&lt;Amazing&gt; 2009.07.15">非常棒的隔行变色+点击变色table代码&lt;Amazing&gt;</a>(0)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© Bruce for <a href="http://brucehan.com">Bruce</a>, 2010. |
<a href="http://brucehan.com/archives/1395">Permalink</a> |
<a href="http://brucehan.com/archives/1395#comments">No comment</a> |
</small></p>]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1395/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
