<?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>聿歆網誌</title>
	<atom:link href="http://www.jeezen.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jeezen.com</link>
	<description>聿歆的互联网日志，程序设计、服务器、WEB前端等方面技术学习研究</description>
	<lastBuildDate>Sat, 31 Jul 2010 17:27:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>此博域名jeezen.com的真正含义</title>
		<link>http://www.jeezen.com/record/2010/109</link>
		<comments>http://www.jeezen.com/record/2010/109#comments</comments>
		<pubDate>Sat, 31 Jul 2010 17:22:13 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[聿歆記]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=109</guid>
		<description><![CDATA[java ee,java,jeezen,... ]]></description>
			<content:encoded><![CDATA[<p>此博永久域名：<a href="http://www.jeezen.com">www.jeezen.com</a></p>
<p>想想去年注册这个域名还是很有想法的。</p>
<p>当时正在学习JAVA，主攻Java EE方面，Java EE（Java Platform，Enterprise Edition）是sun公司推出的企业级应用程序版本，。这个版本以前称为 J2EE。能够我们帮助开发和部署可移植、健壮、可伸缩且安全的服务器端 Java 应用程序。Java EE 是在 Java SE 的基础上构建的，它提供 Web 服务、组件模型、管理和通信 API，可以用来实现企业级的面向服务体系结构（service-oriented architecture，SOA）和 Web 2.0 应用程序。</p>
<p>之前经常光顾一个叫《<a href="http://www.csszengarden.com/">CSS禅意花园</a>》的国外网站，相信各位站长一定不陌生。因此有感，就想为什么不搞一个Java EE方面的精华类博客。于是此米诞生 <a href="http://www.jeezen.com">www.jeezen.com</a>   JEE 是Java EE的简写，Zen 是禅的意思。当时想，以后的工作就一定是Java EE方面了，因为真的很喜欢JAVA语言的风格，一定要把自己所掌握的毕生精髓，都在此博与众共享。可是这一年来生活所迫，各种外界因素所致，始终未能找到一个与JAVA方面的有关联的工作，期间虽然也曾用JAVA语言开发过几个小程序，但根本都上不了台面，更别说什么精髓了。</p>
<p>这段日子过的很煎熬，不知道什么时候是个头。</p>
<p>唉！真是可悲此米，浪费此米。JAVA EE 禅意之道，何人识得？何人赏得？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/record/2010/109/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 Server Vim 自带命令</title>
		<link>http://www.jeezen.com/os/ubuntu/2010/98</link>
		<comments>http://www.jeezen.com/os/ubuntu/2010/98#comments</comments>
		<pubDate>Sun, 30 May 2010 14:37:58 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=98</guid>
		<description><![CDATA[打开  vi 进来就是 普通模式 i               插入功能  insert x              删除字符功能 dd           删除整行 J             合并行  u             undo撤销命令 U   ... ]]></description>
			<content:encoded><![CDATA[<p>打开  vi<br />
进来就是 普通模式<br />
i               插入功能  insert<br />
x              删除字符功能<br />
dd           删除整行<br />
J             合并行 <br />
u             undo撤销命令<br />
U            行撤销命令<br />
Ctrl+r      重做<br />
o             新建空行<br />
a              添加 append<br />
zz            保存退出(注意是大写也就是shift+z)<br />
:wq           保存退出<br />
:q!            放弃并退出<br />
:e!            重新载入编辑<br />
:helo + {主题}   关于&#8221;主题&#8221;的帮助信息<br />
光标移动类命令</p>
<p>w            向前 移动一个词<br />
b                    回到前词首  <br />
e                  词末尾</p>
<p>进入编辑文档后，按ESC 才可以使用相应命令。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/os/ubuntu/2010/98/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Java 小数取整 Math的用法</title>
		<link>http://www.jeezen.com/programming/java/2010/93</link>
		<comments>http://www.jeezen.com/programming/java/2010/93#comments</comments>
		<pubDate>Fri, 28 May 2010 02:56:02 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[聿歆記]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[小数]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=93</guid>
		<description><![CDATA[工作中遇到类似问题,特意收藏起来以备不时之需. 舍掉小数取整:Math.floor(2.0)=2 舍掉小数取整:Math.floor(2.1)=2 舍掉小数取整:Math.floor(2.5)=2 舍掉小数取整:Math.floor(2.9)=2 舍掉小数取整:Math.floor(-2.0)=-2 ... ]]></description>
			<content:encoded><![CDATA[<p>工作中遇到类似问题,特意收藏起来以备不时之需.</p>
<p>舍掉小数取整:Math.floor(2.0)=2<br />
舍掉小数取整:Math.floor(2.1)=2<br />
舍掉小数取整:Math.floor(2.5)=2<br />
舍掉小数取整:Math.floor(2.9)=2</p>
<p>舍掉小数取整:Math.floor(-2.0)=-2<br />
舍掉小数取整:Math.floor(-2.1)=-3<br />
舍掉小数取整:Math.floor(-2.5)=-3<br />
舍掉小数取整:Math.floor(-2.9)=-3</p>
<p>四舍五入取整:Math.rint(2.0)=2<br />
四舍五入取整:Math.rint(2.1)=2<br />
四舍五入取整:Math.rint(2.5)=2<br />
四舍五入取整:Math.rint(2.9)=3</p>
<p>四舍五入取整:Math.rint(-2.0)=-2<br />
四舍五入取整:Math.rint(-2.1)=-2<br />
四舍五入取整:Math.rint(-2.5)=-2<br />
四舍五入取整:Math.rint(-2.9)=-3</p>
<p>凑整:Math.ceil(2.0)=2<br />
凑整:Math.ceil(2.1)=3<br />
凑整:Math.ceil(2.5)=3<br />
凑整:Math.ceil(2.9)=3</p>
<p>凑整:Math.ceil(-2.0)=-2<br />
凑整:Math.ceil(-2.1)=-2<br />
凑整:Math.ceil(-2.5)=-2<br />
凑整:Math.ceil(-2.9)=-2</p>
<p>四舍五入取整:Math.round(2.0)=2<br />
四舍五入取整:Math.round(2.1)=2<br />
四舍五入取整:Math.round(2.5)=3<br />
四舍五入取整:Math.round(2.9)=3</p>
<p>四舍五入取整:Math.round(-2.0)=-2<br />
四舍五入取整:Math.round(-2.1)=-2<br />
四舍五入取整:Math.round(-2.5)=-2<br />
四舍五入取整:Math.round(-2.9)=-3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/programming/java/2010/93/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>寓言</title>
		<link>http://www.jeezen.com/record/2010/89</link>
		<comments>http://www.jeezen.com/record/2010/89#comments</comments>
		<pubDate>Mon, 24 May 2010 12:07:33 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[聿歆記]]></category>
		<category><![CDATA[寓言]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=89</guid>
		<description><![CDATA[　　猪通过勤劳致富有5元钱存在老鼠开的钱庄里。猪打算拿这5元钱建一个小窝，大概要花2元买地，花3元搭窝。 　　王八是搞工程的，他想在猪身上挣更多的钱，于是找来当投资顾问的狐狸想... ]]></description>
			<content:encoded><![CDATA[<p>　　猪通过勤劳致富有5元钱存在老鼠开的钱庄里。猪打算拿这5元钱建一个小窝，大概要花2元买地，花3元搭窝。<br />
　　王八是搞工程的，他想在猪身上挣更多的钱，于是找来当投资顾问的狐狸想办法。<br />
　　狐狸说：这好办。于是找来管地盘的狼，开钱庄的老鼠一起来商议。<br />
　　结果王八从老鼠那里借来200元，用100元买了狼的地，花了3元把猪窝盖好，花了50元给了狐狸咨询服务费。<br />
　　猪没有地，只好求王八把窝卖给它，王八要价500元。<br />
　　老猪说只有5元买不起，这时候狐狸说服猪去向老鼠借钱；<br />
　　老鼠答应借500给猪，前提是要他连本带利还600元，可以分10年还清，并且产权证拿来抵押。结果成交。<br />
　　猪到最后花了600元买来了猪窝，比地价加建设成本高了11倍，猪努力了十年去挣钱还贷。<br />
　　在这场交易里面，狼，老鼠，狐狸还有王八都挣了钱。以后他们就如法炮制，迫使更多的猪去贷款买房子了。<br />
　　这时候，驴看到有机可乘，到老鼠那里贷了好多好多的款，把王八盖的房子都买下来，然后以更高的价格卖给了猪。猪的还贷期就越来越长，吃的越来越差，小猪崽子也不敢生了。<br />
　　由于猪的数目越来越少，狼觉得这样下去自己没有猪肉吃了，非饿死不可，于是开始调控，不让老鼠再借钱了。但是王八还没有停止盖房，把自己挣的钱和贷的钱全投入生产了。驴手上的猪窝囤积的很多，卖不动了被套牢了。结果，老鼠，王八，还有驴都挣了好多的猪窝。钱到最后集中到狼手上。<br />
　　如今，谁都等着狼把钱拿出来救命。聪明的你，如果你是狼，你会拿钱救哪个？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/record/2010/89/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>腾讯微博</title>
		<link>http://www.jeezen.com/record/2010/83</link>
		<comments>http://www.jeezen.com/record/2010/83#comments</comments>
		<pubDate>Sat, 22 May 2010 06:26:28 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[聿歆記]]></category>
		<category><![CDATA[微博]]></category>
		<category><![CDATA[腾讯]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=83</guid>
		<description><![CDATA[开通腾讯微博一段日子了，真是不知道在那上面可以说些什么。  不过看看一些高人唠叨也不为一种享受。 有需要的邀请的朋友可以留言给我。 还有好多种子呢。 http://t.qq.com/ideai... ]]></description>
			<content:encoded><![CDATA[<p>开通腾讯微博一段日子了，真是不知道在那上面可以说些什么。  不过看看一些高人唠叨也不为一种享受。</p>
<p>有需要的邀请的朋友可以留言给我。 还有好多种子呢。</p>
<p><a href="http://t.qq.com/ideaid">http://t.qq.com/ideaid</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/record/2010/83/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>元宵佳节快乐</title>
		<link>http://www.jeezen.com/record/2010/82</link>
		<comments>http://www.jeezen.com/record/2010/82#comments</comments>
		<pubDate>Sun, 28 Feb 2010 02:52:27 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[聿歆記]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/%e5%85%83%e5%ae%b5%e4%bd%b3%e8%8a%82%e5%bf%ab%e4%b9%90.html</guid>
		<description><![CDATA[时间过的真快啊... ]]></description>
			<content:encoded><![CDATA[<p>时间过的真快啊！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/record/2010/82/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5种方法立刻写出更好的CSS代码</title>
		<link>http://www.jeezen.com/front-end-develop/css/2009/78</link>
		<comments>http://www.jeezen.com/front-end-develop/css/2009/78#comments</comments>
		<pubDate>Sat, 12 Dec 2009 16:30:29 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=78</guid>
		<description><![CDATA[当然，每个人都可以编写CSS代码，甚至你现在已经让它为你的项目工作了。但是CSS还可以更好吗？开始用这5个Tips改进你的CSS吧！ 1.重置 首先，很认真的告诉你，总是要重置某些分类。无论你... ]]></description>
			<content:encoded><![CDATA[<p>当然，每个人都可以编写CSS代码，甚至你现在已经让它为你的项目工作了。但是CSS还可以更好吗？开始用这5个Tips改进你的CSS吧！<br />
<strong>1.重置</strong></p>
<p>首先，很认真的告诉你，总是要重置某些分类。无论你是使用 Eric Meyer Reset、YUI Reset或者你自己编写的重置代码，只要使用就对了。</p>
<p>它能很简单的移除所有元素的填充（padding）和边距（margin）：</p>
<p>1. html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,<br />
2. pre, form, fieldset, table, th, td { margin: 0; padding: 0; }</p>
<p>Eric Meyer Reset和YUI Reset都是非常强大的，但是对于我而言，它们走的太远了。我觉得你最终需要重置一切，然后重新定义所有元素的属性。这就是为什么Eric Meyer推荐更有效的使用（重置样式表），而你不要只是使用他的重置样式表，将它拖放到你的项目中。调整它（的重置样式表），建立属于自己的重置样式表。</p>
<p>噢，请停止使用：</p>
<p>* { margin: 0; padding: 0; }</p>
<p>花更多的时间去制作它，当你移除了填充（padding）你认为单选按钮会发生什么变化？表单元素有时能够做些时髦的事情，所以最有效的方式就是将他们独立。<br />
<strong>2.排序</strong></p>
<p>一个小的测试<br />
这个例子就是要让你思考如何更快的找到右边距属性？</p>
<p>Example#1</p>
<p>div#header h1 {<br />
z-index: 101;<br />
color: #000;<br />
position: relative;<br />
line-height: 24px;<br />
margin-right: 48px;<br />
border-bottom: 1px solid #dedede;<br />
font-size: 18px;<br />
}</p>
<p>Example#2</p>
<p>div#header h1 {<br />
border-bottom: 1px solid #dedede;<br />
color: #000;<br />
font-size: 18px;<br />
line-height: 24px;<br />
margin-right: 48px;<br />
position: relative;<br />
z-index: 101;<br />
}</p>
<p>你不能告诉我Example#2不能更快的找到右边距属性。根据字母排序你的元素属性。一致的创建你的CSS，将帮助你节省花费在寻找一个特殊属性的时间。</p>
<p>我知道一些人用这样的方法去组织代码，其他人又用另一种方法去组织，但是在我的公司，我们协商一致做出决定，所有的代码都将按照字母排序来组织。通过这样组织代码与其他人协同工作一定是有帮助的。当我碰到属性没有按照字母排序的层叠样式表我每一次都会退缩。<br />
<strong>3.组织</strong></p>
<p>你应该组织你的样式表以致相关的内容靠在一起，更简单的找到想要的。使用更有效的注解。举个例子，这是我如何构造我的层叠样式表：</p>
<p>/*****Reset*****/<br />
移除元素的填充（padding）和边距（margin）。<br />
/*****Basic Elements*****/<br />
定义基本元素的样式: body, h1-h6, ul, ol, a, p, 等.<br />
/*****Generic Classes*****/<br />
定义简单的风格，好像浮动的某一侧, 移除元素的下边距, 等当然，它们大部分都与我们希望的语义不相关,但是它们是高效处理代码所必须的。<br />
/*****Basic Layout*****/<br />
定义基本的模板: header, footer等. 帮助定义网页布局的基本元素<br />
/*****Header*****/<br />
定义所有Hearder元素<br />
/*****Content*****/<br />
定义所有内容框内的元素<br />
/*****Footer*****/<br />
定义所有Footer的元素<br />
/*****Etc*****/<br />
定义其他的选择器。通过注解和归类相似元素的分组，将更快的找到你想要的。<br />
<strong>4.一致性</strong></p>
<p>无论你决定使用什么方式去编写代码，保持一致。我已经对全部放在1行VS多行的CSS编写编写方式的争论感到乏味和疲倦。这是不需要争辩的。每个人都有自己的观点，所以选择一种你喜欢的工作方式，并在所有的样式表中保持一致。</p>
<p>就我个人而言，我将使用两者结合的方式。如果一个选择器超过了3个属性，我将截断它采用多行的方式编写。</p>
<p>div#header { float: left; width: 100%; }<br />
div#header div.column {<br />
border-right: 1px solid #ccc;<br />
float: rightright;<br />
margin-right: 50px;<br />
padding: 10px;<br />
width: 300px;<br />
}<br />
div#header h1 { float: left; position: relative; width: 250px; }</p>
<p>所以找到你喜欢的工作方式然后保持一致。<br />
<strong>5.从正确的地方开始</strong></p>
<p>在完成标记语言之前不要去尝试靠近你的样式表。</p>
<p>当我准备分割一张网页的时候，创建CSS文件之前，我需要预览并且标记body开标签到body的闭合标签之间的所有文档。我不会增加额外的DIV ,ID,或者类选择器。我将会添加一些一般的DIV，就好像hearder、content、footer.因为我知道这些东西是现实存在的。</p>
<p>通过先标记文档，你将不会碰到本已注定的divities1和classitis2麻烦!/*You only need to add in that stuff once you have begun to write the CSS and realize that you are going to need another hook to accomplish what you are trying to achieve.*/(原文未译）。</p>
<p>利用CSS子选择器指定子元素；不要只是机械的给元素添加类或者ID选择器。记住：没有一个良好的格式化文档（或者标记结构）CSS是无价值的。<br />
总结</p>
<p>这些Tips能够帮助我更好的完成CSS代码的编写。但是这并不意味着这张列表的结束，接下来我将会去带来一些其他的与大家分享。<br />
你有什么更好的Tips帮助我们完善CSS代码？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/front-end-develop/css/2009/78/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>成功备案</title>
		<link>http://www.jeezen.com/record/2009/73</link>
		<comments>http://www.jeezen.com/record/2009/73#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:59:37 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[聿歆記]]></category>
		<category><![CDATA[icp]]></category>
		<category><![CDATA[备案]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=73</guid>
		<description><![CDATA[吉ICP备09010468号 今天突然收到了关于ICP备案申请审核通过的通知邮件，还以为是客户的网站审核。  打开一看，原来自己的，之前自己的几个站，每次备案都要拖好久。现在这个域名是11月初申... ]]></description>
			<content:encoded><![CDATA[<p>吉ICP备09010468号</p>
<p>今天突然收到了<strong>关于ICP备案申请审核通过的通知</strong>邮件，还以为是客户的网站审核。  打开一看，原来自己的，之前自己的几个站，每次备案都要拖好久。现在这个域名是11月初申请的，网站也是月初才架设起来的，还是第一次这么快就通过备案审核的。</p>
<p>12f0fb83</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/record/2009/73/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SEO将不再神话？</title>
		<link>http://www.jeezen.com/web-site-operators/seo/2009/69</link>
		<comments>http://www.jeezen.com/web-site-operators/seo/2009/69#comments</comments>
		<pubDate>Tue, 24 Nov 2009 08:32:33 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[搜索引擎优化]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=69</guid>
		<description><![CDATA[SEO将不再神话？为什么这么说？例如，谷歌目前正在通过改善来访者的意图或行为为基础的搜索，以便提供更多相关的搜索结果，或者通俗说的是个性搜索、智能搜索。 那么，这一切是否意味... ]]></description>
			<content:encoded><![CDATA[<p>SEO将不再神话？为什么这么说？例如，谷歌目前正在通过改善来访者的意图或行为为基础的搜索，以便提供更多相关的搜索结果，或者通俗说的是个性搜索、智能搜索。 那么，这一切是否意味着未来的搜索引擎优化将会死亡的必然结果？一些搜索引擎优化的专业人士担心，他们的职业生涯受到威胁，因为搜索引擎正在不断改进自己的技术。</p>
<p>人们一直在预测年底SEO将不再神话。虽然某些网站在搜索引擎优化前总是变化，但搜索引擎正在变得更聪明了， SEO的不断适应这些变化，就像过去一样。只要网站的搜索引擎列表的网站，而不需要付出一笔费用，搜索引擎优化将继续存在，改变的只是优化的手段和技术。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/web-site-operators/seo/2009/69/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>jQuery圆角插件,实现多浏览器兼容圆角效果</title>
		<link>http://www.jeezen.com/front-end-develop/2009/60</link>
		<comments>http://www.jeezen.com/front-end-develop/2009/60#comments</comments>
		<pubDate>Sun, 22 Nov 2009 01:51:01 +0000</pubDate>
		<dc:creator>聿歆</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS圆角]]></category>
		<category><![CDATA[Jquery插件]]></category>

		<guid isPermaLink="false">http://www.jeezen.com/?p=60</guid>
		<description><![CDATA[W3C很早就已经在CSS 3 中加入了圆角属性border-radius， 但是由于某些流行浏览器的不支持，使得其还是没能被广泛使用，所以我们会想尽办法去进行更好的补充，包括背景图片的圆角实现、js圆角... ]]></description>
			<content:encoded><![CDATA[<p>W3C很早就已经在CSS 3 中加入了圆角属性<a href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-border-radius">border-radius</a>， 但是由于某些流行浏览器的不支持，使得其还是没能被广泛使用，所以我们会想尽办法去进行更好的补充，包括背景图片的圆角实现、js圆角实现等等。但是这些 方法在实现的过程中，总是会增加很多无谓的工作任务，而且还有可能无法做到浏览器之间的兼容性，那么就介绍一个非常简单的jQuery圆角实现效果吧，说 是圆角有点小看它了，因为它可以实现的不止是圆角，看下图就明白了。<br />
<img class="aligncenter size-large wp-image-62" title="jquery-corner" src="http://www.jeezen.com/wp-content/uploads/2009/11/jquery-corner-1024x516.jpg" alt="jquery-corner" width="614" height="310" /></p>
<p>如何使用?</p>
<p>使用jQuery圆角插件 <a href="http://malsup.com/jquery/corner/">jquery.corner</a> 来解决这个问题，一个代码就足够了：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.round'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">corner</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;10px&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>同样实现一个带边框的圆角效果：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.rounded_box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">wrap</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'
&nbsp;
'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.rounded_box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">corner</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;round 8px&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'padding'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'2px'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">corner</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;round 10px&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>够简单的吧.<br />
更多精彩样式请查看插件<strong>官方</strong>网站：<a href="http://www.malsup.com/jquery/corner/">http://www.malsup.com/jquery/corner/</a></p>
<blockquote><p>It&#8217;s important to understand that this corner plugin is pulling off its magic by adding more elements to the page. Specifically, it adds div &#8220;strips&#8221; to the item to be cornered and sets a solid background color on these strips in order to hide the actual corners of the real item. So if you step back and look at the cornered element, think of there being solid colored divs hiding the true squared off corners of the item you wish to be changed. This helps you understand the inherent limitations of this small plugin. It&#8217;s best suited for rounding off block-level elements (divs, paragraphs, etc) and may present more challenges when trying to round off inline elements (spans, anchors, etc).<br />
Recently I added support for native border-radius rounding in browsers that support it (Firefox, Safari, and Chrome). So in those browsers the plugin simply sets a css property on the element. But in IE, we&#8217;ll have to wait for version 9 before that is supported. And for all browsers, choosing a pattern other than &#8220;round&#8221; requires the use of the &#8220;div stips&#8221; method.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.jeezen.com/front-end-develop/2009/60/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
