<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4021177996317940200</id><updated>2011-11-16T21:55:32.898+08:00</updated><category term='Life'/><category term='JavaScript'/><category term='CSS'/><category term='(X)HTML'/><title type='text'>7655cjc's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-3908809876821209447</id><published>2011-10-26T20:31:00.002+08:00</published><updated>2011-10-26T20:31:45.396+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>Prescription For Misery</title><content type='html'>&lt;span id="internal-source-marker_0.8326517776301945" style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ingesting chemicals in an effort to alter mood or perception.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; Envy.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp; Resentment.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp; Be unreliable.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp; To learn everything you possibly can from your own experience, minimizing what you learn vicariously from the good and bad experience of others, living and dead.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp; To go down and stay down when you get your first, second, or third severe reverse in the battle of life.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp; To ignore a story they told me when I was young about a rustic who said, “I wish I knew where I was going to die, and then I’d never go there.”&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;All these statements are from &lt;/span&gt;&lt;a href="https://docs.google.com/document/d/1TrrU2OrQx5_8f0v0OjHpDHJ63FLMd3cXFCW6wmHwLus/Harvard+School+Commencement+Speech+%2CJune+13%2C+1986"&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;"&gt;Harvard School Commencement Speech ,June 13, 1986&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;by Charles T. Munger&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-3908809876821209447?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/3908809876821209447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=3908809876821209447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3908809876821209447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3908809876821209447'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2011/10/prescription-for-misery.html' title='Prescription For Misery'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-7139749004301244613</id><published>2010-10-03T10:33:00.002+08:00</published><updated>2010-10-03T10:35:53.035+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>晨跑</title><content type='html'>&lt;div&gt;国庆放假了，两个人决定利用这几天养成经常锻炼身体的习惯。于是选择早晨去西土城公园晨跑，这里的环境很好，空气很新鲜。很喜欢在这里跑步。&lt;br /&gt;&lt;br /&gt;说到跑步，让我想起了阿甘，很喜欢这个角色，他是真正的实干家。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_XZFcOAVee3M/TKfrcEKarpI/AAAAAAAAEds/DJzo9aQ4JvM/s1600/gump.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_XZFcOAVee3M/TKfrcEKarpI/AAAAAAAAEds/DJzo9aQ4JvM/s1600/gump.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-7139749004301244613?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/7139749004301244613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=7139749004301244613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7139749004301244613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7139749004301244613'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2010/10/blog-post.html' title='晨跑'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_XZFcOAVee3M/TKfrcEKarpI/AAAAAAAAEds/DJzo9aQ4JvM/s72-c/gump.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-7450847144016830860</id><published>2010-07-23T22:07:00.001+08:00</published><updated>2010-07-23T22:07:19.052+08:00</updated><title type='text'></title><content type='html'>&lt;div style="font-family: arial, sans, sans-serif; font-size: 14pt; line-height: 21px; margin-bottom: 4pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 14pt; font-style: normal; font-weight: bold; text-decoration: none;"&gt;Twitter&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;128.242.245.29 twitter.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;128.242.245.29 www.twitter.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 14pt; line-height: 21px; margin-bottom: 4pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 14pt; font-style: normal; font-weight: bold; text-decoration: none;"&gt;Google docs&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;72.14.235.100 docs.google.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;72.14.235.100 spreadsheets.google.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;72.14.235.100 docs0.google.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;72.14.235.100 spreadsheets0.google.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 14pt; line-height: 21px; margin-bottom: 4pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 14pt; font-style: normal; font-weight: bold; text-decoration: none;"&gt;Adobe CS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 activate.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 practivate.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 ereg.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 activate.wip3.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 wip3.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 3dns-3.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 3dns-2.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 adobe-dns.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 adobe-dns-2.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 adobe-dns-3.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 ereg.wip3.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 activate-sea.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 wwis-dubc1-vip60.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: arial, sans, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none;"&gt;127.0.0.1 activate-sjc0.adobe.com&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-7450847144016830860?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/7450847144016830860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=7450847144016830860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7450847144016830860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7450847144016830860'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2010/07/twitter-128.html' title=''/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-8170435812725398261</id><published>2010-05-18T16:23:00.003+08:00</published><updated>2010-05-18T16:37:29.341+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>【技术文章收藏】关于 Reset CSS</title><content type='html'>&lt;a href="http://lifesinger.org/blog/2009/03/reset-css-baigua/" id="el9:" title="Reset CSS &amp;#30740;&amp;#31350;&amp;#65288;&amp;#20843;&amp;#21350;&amp;#31687;&amp;#65289;"&gt;Reset CSS &amp;#30740;&amp;#31350;&amp;#65288;&amp;#20843;&amp;#21350;&amp;#31687;&amp;#65289;&lt;/a&gt;&lt;br&gt;&amp;#27604;&amp;#36739;&amp;#21916;&amp;#27426;&amp;#36825;&amp;#31687;&amp;#25991;&amp;#31456;&amp;#65292;&amp;#22240;&amp;#20026;&amp;#23427;&amp;#30340;&amp;#21442;&amp;#32771;&amp;#36164;&amp;#26009;&amp;#24456;&amp;#22810;&amp;#65292;&amp;#37117;&amp;#30475;&amp;#23436;&amp;#20043;&amp;#21518;&amp;#23601;&amp;#23545;reset css&amp;#26377;&amp;#27604;&amp;#36739;&amp;#19987;&amp;#19994;&amp;#30340;&amp;#20102;&amp;#35299;&amp;#20102;&amp;#12290;&lt;br&gt;&lt;br&gt;&lt;a href="http://lifesinger.org/blog/2009/07/reset-css-tech/" id="wf79" title="Reset CSS &amp;#30740;&amp;#31350;&amp;#65288;&amp;#25216;&amp;#26415;&amp;#31687;&amp;#65289;"&gt;Reset CSS &amp;#30740;&amp;#31350;&amp;#65288;&amp;#25216;&amp;#26415;&amp;#31687;&amp;#65289;&lt;/a&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-8170435812725398261?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/8170435812725398261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=8170435812725398261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/8170435812725398261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/8170435812725398261'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2010/05/reset-css.html' title='【技术文章收藏】关于 Reset CSS'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-4116936298007962442</id><published>2010-05-04T10:07:00.003+08:00</published><updated>2010-05-04T10:10:50.411+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>五一香山游</title><content type='html'>&amp;nbsp;&amp;nbsp; &amp;nbsp; 五一，出去走一走，锻炼一下身体，大清早的起来乘车去香山，呵呵，不过总觉得还是不如那些老前辈起的早，上山的时候人家已经在下山了。刚进香山公园，觉得很漂亮，于是随手拍下一张，这棵树很有春天的感觉。&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_XZFcOAVee3M/S95NqtgE1oI/AAAAAAAAEZ4/8ymjTqhUL4c/s1600/IMG_0396.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_XZFcOAVee3M/S95NqtgE1oI/AAAAAAAAEZ4/8ymjTqhUL4c/s400/IMG_0396.jpg" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 爬到一半的时候碰到一个很Happy的小孩，还跑过来推我，超级可爱，她的笑声很好听。&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_XZFcOAVee3M/S95P6-Qu5wI/AAAAAAAAEbY/djU1nvW_Ldc/s1600/IMG_0415.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_XZFcOAVee3M/S95P6-Qu5wI/AAAAAAAAEbY/djU1nvW_Ldc/s400/IMG_0415.jpg" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 觉得G11拍的微距效果要好于风景和人像，这是我拍的最喜欢的一张照片，但是不知道这是什么花。&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_XZFcOAVee3M/S95RsYqNK6I/AAAAAAAAEcE/nJ3ahdsT9iI/s1600/IMG_0469.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/_XZFcOAVee3M/S95RsYqNK6I/AAAAAAAAEcE/nJ3ahdsT9iI/s400/IMG_0469.jpg" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 下面的是老婆大人咯，如果不是她，我一个宅男也不会来爬香山，估计家里电脑屏幕前边发呆呢，-_- 。&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_XZFcOAVee3M/S95N06gyjXI/AAAAAAAAEaE/GLZZ8IPYKxc/s1600/IMG_0409.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/_XZFcOAVee3M/S95N06gyjXI/AAAAAAAAEaE/GLZZ8IPYKxc/s400/IMG_0409.jpg" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;还有现在的我，刚刚理了头发，觉得理的不是很理想，无所谓了，对于自己的长相，没有过份的要求。&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_XZFcOAVee3M/S95RorTMyLI/AAAAAAAAEb8/wFXg8018RT8/s1600/IMG_0464.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/_XZFcOAVee3M/S95RorTMyLI/AAAAAAAAEb8/wFXg8018RT8/s320/IMG_0464.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-4116936298007962442?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/4116936298007962442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=4116936298007962442' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/4116936298007962442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/4116936298007962442'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2010/05/blog-post.html' title='五一香山游'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_XZFcOAVee3M/S95NqtgE1oI/AAAAAAAAEZ4/8ymjTqhUL4c/s72-c/IMG_0396.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-1717943626969297624</id><published>2009-09-15T22:38:00.001+08:00</published><updated>2009-09-15T22:38:36.035+08:00</updated><title type='text'>BIT运动会</title><content type='html'>&amp;nbsp;&amp;nbsp; &amp;nbsp;其实是被班长拉来参加的，我的搭档也是被拉来参加的。因为我们班就差一个项目就报满所有的项目了，所以我报了最后的没有人报名的项目“两人三足”，呵呵把两个人想念的两条腿绑一起，看哪个组能够在最短的时间内跑完全程。&lt;br&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;不说过程，只说结果，我们和另外一个组并列第一名，其实是我们领先了0.2秒，呵呵，并列是争论的结果。&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;每次类似的素质活动会感觉到，信心，正确的方法，一个领导进行指导，良好的配合是赢得比赛的必要因素，为什么我会写到这些呢，是因为这些还没有在我身上形成习惯，如果形成习惯，就不会再有那么深刻的感受了吧，就像一个优秀的程序员在写代码的时候不会一直在自己大脑里浮现各种编码习惯，设计原则一样。&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;最后，让优秀成为一种习惯。&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;赢得了一个奖品，百度杯子，还不错，容量大，保温效果比较好，正需要一个这样的杯子呢。&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-1717943626969297624?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/1717943626969297624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=1717943626969297624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/1717943626969297624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/1717943626969297624'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/09/bit.html' title='BIT运动会'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-5516095128247631525</id><published>2009-09-15T22:26:00.001+08:00</published><updated>2009-09-15T22:26:11.493+08:00</updated><title type='text'>近期的感想</title><content type='html'>&lt;ol&gt;&lt;li&gt;努力把自己的工作做到最好，最好能够严谨些，把那些属于自己的不属于自己的问题都想法解决掉，保证项目不因你的工作而失败，同时为项目做更多自己力所能及的事情。&lt;/li&gt;&lt;li&gt;在工作和生活中学会换位思考。&lt;/li&gt;&lt;li&gt;为公司做事情的同时明确的想着自己的目标，每天都要向着目标迈进。&lt;/li&gt;&lt;li&gt;做一个有责任感的男人，为自己，父母，将来的老婆和儿女负责。&lt;/li&gt;&lt;li&gt;学生系统和逻辑的去思考问题，并向别人清晰的表达自己的想法。&lt;/li&gt;&lt;li&gt;多去参加一些集体活动，那样人不至于每天的生活都太单调。&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;呵呵，写了这么多，就这么多吧，感觉越写越像在抓虾上看的文章，记住这几条，并且真正的去执行就OK了。&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-5516095128247631525?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/5516095128247631525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=5516095128247631525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/5516095128247631525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/5516095128247631525'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/09/blog-post.html' title='近期的感想'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-6179187773039734215</id><published>2009-08-24T16:03:00.001+08:00</published><updated>2009-08-24T16:03:02.771+08:00</updated><title type='text'>工作技术总结</title><content type='html'>&lt;h1&gt;CSS&amp;amp;XHTML&lt;/h1&gt;&lt;div&gt;1. 垂直剧中和水平剧中，见&lt;a id="gcfz" href="http://www.7655cjc.com/2009/03/css-vertical-centering.html" title="总结"&gt;总结&lt;/a&gt;。&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. 缺少编码规范&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. IE中input type="button"或是input type="submit"中的文字不能垂直居中&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;解决办法:把height设置为box的height+border*2 &amp;nbsp;把line-height设置成box的height就可以了&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. IE7支持position:fixed&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. 页面中出现横向滚动条时，除去查一下是不是有元素超宽，还要检查一下是不是给html设置了overflow:auto;在IE6中会出问题&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;6. 在&amp;lt;form&amp;gt;标签中&amp;lt;button&amp;gt;如果不写type属性，默认为submit，这种情况如果给他注册了onclick事件，就和给form注册onsubmit是平等的，导致注册的函数在输入框中点击enter都要被调用，所以还是加上type="button"注册起来比较安全。&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;7. 为减少体积尽量使用PNG格式的图片&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a id="aciu" href="http://code.google.com/speed/page-speed/docs/payload.html#CompressImages" title="http://code.google.com/speed/page-speed/docs/payload.html#CompressImages"&gt;http://code.google.com/speed/page-speed/docs/payload.html#CompressImages&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;8. 遵守编码规范&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;命名尽量唯一&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;btn-1 btn-2这种命名方式很不好，命名要有意义&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;9. &lt;a id="k7xo" href="http://lifesinger.org/blog/2009/02/the-order-css-rules/" title="CSS中属性的书写顺序"&gt;CSS中属性的书写顺序&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;1. 影响文档流的属性（比如：display, position, float, clear, visibility, table-layout等）&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;2. 自身盒模型的属性（比如：width, height, margin, padding, border等）&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;3. 排版相关属性（比如：font, line-height, text-align, text-indent, vertical-align等等）&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;4. 装饰性属性（比如：color, background, opacity, cursor等）&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;5. 生成内容的属性（比如：content, list-style, quotes等）&lt;br&gt;&lt;h1&gt;JavaScript&lt;/h1&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;1. 链接点击，页面滚动&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;解决办法：为链接注册 DOM level 0 onclick事件 return false &amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. 一个大框框，一个小框框，当“onmouseenter”小框框的时候改变大框框的className，当“onmouseleave”大框框的时候改变大框框的className，存在的问题是，大框框的里面的元素"onmouseout"事件会bubble到大框框上，所以给大框框注册onmouseout事件不能正确实现这个效果。&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;解决办法：给大框框注册onmouseover事件，这样只有当鼠标真正移动出大元素的时候事件&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;img src="http://docs.google.com/drawings/image?id=sGlS1mkdNxyhU5kN_oRPiXQ&amp;amp;w=400&amp;amp;h=400&amp;amp;rev=5&amp;amp;ac=1"&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. IE6刷新（非强制刷新）时会恢复上次的表单状态，为window.onload注册事情，在页面元素全部加载完成的进修进行统计&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. 事件代理&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;div style="text-align: left" id="um65"&gt;&lt;img src="http://docs.google.com/File?id=dg7zr79t_335fg6x9xdm_b" style="width: 648px; height: 261.779px"&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. 按XHTML文档顺序获取DOM节点&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;6. eval(JSON)时一般使用eval('('+JSON+')') 的方式，是为什么？&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: left" id="rdcl"&gt;Prototype evalJSON:&lt;/div&gt;&lt;div style="text-align: left" id="hu-_"&gt;&lt;img src="http://docs.google.com/File?id=dg7zr79t_336gcdx3nf5_b" style="width: 648px; height: 142.015px"&gt;&lt;/div&gt;JQuery eval xhr response:&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: left" id="fpr3"&gt;&lt;img src="http://docs.google.com/File?id=dg7zr79t_337cvcr3khd_b" style="width: 648px; height: 219.248px"&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;7. 关于使用JavaScript动态改变元素样式的调研&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;8. var isString = function(el){&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return toString.call(el) === "[object String]";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//jQuery的实现方式，不过还是处理constructor被改变的情况 &amp;nbsp;这是目前最好的方法&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;9. &amp;lt;form&amp;gt;的 reset 事件是IE6中是不bubble的，在Firefox3.5 中是bubble的。&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;10. 对于小数据量Ajax请求，尽量使用GET方式&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a id="kh0p" href="http://developer.yahoo.com/performance/rules.html#ajax_get" title="http://developer.yahoo.com/performance/rules.html#ajax_get"&gt;http://developer.yahoo.com/performance/rules.html#ajax_get&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;11. 遇到问题的时候，逐步注释，缩小范围，适当的考虑后端的问题&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;12. JS代码使用YUI深度压缩，寻求在这样的情况下没有BUG的路线&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;h1&gt;Flash&lt;/h1&gt;&lt;div&gt;1. 获取flash object后无法访问 flash object的方法&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;原因：flash的安全机制&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;解决办法：在&lt;a id="xt9y" href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html" title="此地址"&gt;此地址&lt;/a&gt;进行设置&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. 使用JS嵌入Flash类库&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;暂时不研究，先使用类库&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. 使用JS获取Flash Object&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Get the Flash movie from Window in IE and Document in others&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var flash = window.movie || document.movie; // Get Flash object&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. 嵌入的Flash在背景设为和网页背景颜色一样的时候，在IE6中Flash的周围仍然有白边&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;原因：Flash的wmode为window&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;解决办法：把wmode设置为transparent&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. Flash在firefox里面无法调用函数的问题&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;原因：Firefox只有在flash出现在可视区的时候才会渲染flash，渲染之后我们才可以调用这个flash的函数&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;解决办法： 先在可视区创建这个flash，然后再把它定位到它应该在的位置&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-6179187773039734215?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/6179187773039734215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=6179187773039734215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6179187773039734215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6179187773039734215'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/08/blog-post_8334.html' title='工作技术总结'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-3730216331238765499</id><published>2009-08-24T13:59:00.001+08:00</published><updated>2009-08-24T13:59:20.945+08:00</updated><title type='text'>开始学习经济学了</title><content type='html'>&lt;br&gt;&lt;br&gt;　经济学十大原理，Mankiw’s Principle 曼昆的原理&lt;div&gt;&lt;br&gt;　　#1 People face tradeoffs&lt;br&gt;　　人们面临权衡取舍&lt;br&gt;&lt;br&gt;　　#2 The cost of something is what you give up to get it&lt;br&gt;　　某种东西的成本是为了得到它所放弃的东西&lt;br&gt;&lt;br&gt;　　#3 Rational people think at the margin&lt;br&gt;　　理性人考虑边际量&lt;br&gt;&lt;br&gt;　　#4 People respond to incentives&lt;br&gt;　　人们会对激励做出反应&lt;br&gt;&lt;br&gt;　　#5 Trade can make everyone better off&lt;br&gt;　　贸易能使每个人状况更好&lt;br&gt;&lt;br&gt;　　#6 Markets are usually a good way to organize economic activity&lt;br&gt;　　市场通常是组织经济活动的一种好方法&lt;br&gt;&lt;br&gt;　　#7 Governments can sometimes improve market outcomes&lt;br&gt;　　政府有时可以改善市场结果&lt;br&gt;&lt;br&gt;　　#8 A country’s standard of living depends on its ability to produce goods and service&lt;br&gt;　　一国的生活水平取决于它生产物品与劳务的能力&lt;br&gt;&lt;br&gt;　　#9 Prices rise when the government prints too much money&lt;br&gt;　　当政府发行了过多货币时，物价上升&lt;br&gt;&lt;br&gt;　　#10 Society faces a short-run tradeoff between inflation and unemployment&lt;br&gt;　　社会面临通货膨胀与失业之间的短期权衡取舍&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;开始学习经济学了，想把它当成一门科学来学习，熟悉里面的词汇，规则，细节，使用学习理工科学的办法来学习，呵呵，应该差不多吧，好像不可以做实验^_^，不知道是不是研究非理工的科学是不是也很有趣。&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 使用的教材就是《&lt;a id="pum_" href="http://www.douban.com/subject/1856927/" title="曼昆经济学原理"&gt;曼昆经济学原理&lt;/a&gt;》&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-3730216331238765499?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/3730216331238765499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=3730216331238765499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3730216331238765499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3730216331238765499'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/08/blog-post_24.html' title='开始学习经济学了'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-7779748802450885049</id><published>2009-08-13T10:38:00.001+08:00</published><updated>2009-08-13T10:38:16.273+08:00</updated><title type='text'>关于工作</title><content type='html'>&lt;div&gt;以下内容是摘自徐家俊的《华为十年感触》&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: arial"&gt;工作和读书不是一回事，工作是要解决问题的，是要产生结果和输出的。不管怎么样，能找到方法解决问题、能够有好的输出结果那就是成功。读书才追求的是慢慢读，读懂为止。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="arial"&gt;一个大的复杂系统要成功的管理好，没有绝招，依靠的只是一点一滴持续不断的改进和努力。&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="arial"&gt;这些事我的体会是：只要你心无旁骛，目标单纯，就是想把这个事情搞好，并且持续地、啥都不计较地、傻傻地去推动，内心无愧，一时可能会有工作失误，一时可能会得罪人，可能会有人不理解，但长远来看还是会得到公正的承认的。&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="arial"&gt;其实在华为要学习管理最简单，第一要诀是向身边的人学，华为的很多管理者，修养和能力超强，在平时和他们一起工作的一点一滴中，如果你细心去观察和体会，收获实在可以不少。比如说，有一段时间，我每周参加IT部门干部例会时，大家讲得差不多了，该由领导作判断和决策、做工作安排之前，我就会猜，领导可能会做有什么判断、会做什么决策，特别是有些事情充满矛盾和冲突，需要权衡时。一开始十猜九不中，并且很多看法别人说出来之后觉得耳目一新、不胜佩服。于是就去想他为什么会这样判断和决策，背后做的功夫是什么，慢慢地自己处理类似问题的思路也比较开阔了。另外、别人在管理中犯的错误，也是自己学习的好机会，自己犯错误自己是不容易觉察的，但别人犯错误自己可以觉察，然后可以警醒自己避免类似错误。&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="arial"&gt;“成功人士就是经常成功地跟自己过不去的人士”&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="arial"&gt;“如果你总是抱怨别人跟你不合作的时候，问题一定是出在你自己身上。”&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="arial"&gt;&lt;p&gt;大概想了想，我觉得有以下几点，是这些年深有体会的经验和教训，值得今后再发扬。&lt;/p&gt;&lt;p&gt;　　一、“从小事做起，学会吃亏，与他人合作”，这是研究生毕业前最后一堂课，电子电路的老师最后送给我们几句话，虽然我忘了这位老师的名字，但这几句话却至今铭记。在华为的工作实践，越发感受到这简单的几条的道理深刻。从小事做起不是一直满足于做小事，也不是夸夸其谈好高骛远。学会吃亏不是忍受吃亏，是不斤斤计较于一时一地的是非得失，是有勇气关键时候的放弃。&lt;/p&gt;&lt;p&gt;　　二、“心有多大，舞台就有多大”，我们很多的成功，来自于敢想，敢做，就象我第一次接到问题单，根本不懂，但敢去试，敢去解决，还真的解决了；就像我们做SPES，即使没人、没技术、没积累，还有CISCO等大公司也在做，我们也敢做，敢推行，不盲目崇拜或畏惧权威，也取得了成功。当然，这不只是盲目的胆大，心大还意味着积极地关注广大的外部世界，开阔宽容的心胸接受种种新鲜事物。&lt;/p&gt;&lt;p&gt;　　三、“好好学习，天天向上”，这句话用来形容对IT人的要求，最贴切不过了。真正的成功者和专家都是“最不怕学习”的人，啥东西不懂，拿过来学呗。我们IT现在有个技术大牛谭博，其实他不是天生大牛，也是从外行通过学习成为超级专家的，他自己有一次跟我说，当年一开始做UNIX系统管理员时，看到＃提示符大吃一惊，因为自己用过多年在UNIX下搞开发都是％提示符，从未有过管理员权限。看看专家的当初就这水平！当年跟我做备份项目时，我让他研究一下ORALCE数据库时点回退的备份和恢复方法，他望文生义，以为数据库的回退是象人倒退走路一样的，这很有点幽默的味道了，但他天天早上起来，上班前先看 一小时书，多年积累下来，现在在系统、数据库、开发等多个领域已成为没人挑战的超级专家了。但是，学习绝对不是光从书本学习，其实更重要的是从实践工作中学习，向周边学习。比如说我在华为觉得学到最重要的一个理念是“要善于利用逆境”，华为在冬天的时候没有天天强调困难，而是提出“利用冬天的机会扭转全球竞争格局”并真的取得成功，如果没有这个冬天，华为可能还要落后业界大腕更多年份；华为在被CISCO起诉时没有慌乱，而是积极应对，利用了这次起诉达到了花几亿美金可能达不到的提高知名度的效果。等等这些，把几乎是灭顶之灾的境遇反而转化为成功的有利条件，对我留下的印象十分深刻，也对公司高层十分佩服。&lt;/p&gt;&lt;p&gt;　　四、勇于实践，勇于犯错，善于反思。很多事情知易行难，关键是要有行动，特别是管理类的一些理论、方法、观念。空谈、空规划一点用处都没有，不如实际把它做出来，做出来后不断反思改进，实实在在最有说服力。没有实践中的反复演练和反思，即使是人人皆知的东西要做好都其实不容易，举个小例子，比如做管理者要会倾听，我想华为99.9%的管理者都很懂这一点，但实际做的如何呢？华为有多少管理者做到了不打断别人讲话？不急于下结论给定义？不急于提供解决方案？有多少管理者能够做到自然地引导对方表达？问问对方感受？确认自己明白对方？&lt;/p&gt;&lt;p&gt;　　五、要有方法、有套路，对问题系统思考、对解决方案有战略性的设计。在前几年的工作中，由于取得了一点成功，技术上也有了一点研究，就开始夜郎自大起来了，后来公司化重金请来了大批顾问，一开始对有些顾问还真不怎么感冒。后来几年公司规模越来越大、IT的复杂性越来越增加的情况下，逐渐理解了很多。西方公司职业化的专家，做任何事情都有方法论、有套路，甚至于如何开一个会都有很多套路，后来我对这些套路的研究有了兴趣，自己总结出了不少套路并给部门的骨干培训和讨论。在一个复杂的环境下，很多问题已经不能就事论事来研究和解决，非常需要系统性的方法和战略性的眼光。对于一个组织的运作来讲，制度和流程的设计尤其需要这一点。爱恩斯坦说过： We can‘t solve problems by using the same kind of thinking we used when we created them.&lt;/p&gt;&lt;p&gt;　　六、独立思考，不人云亦云。公司大了，人多了，混日子也容易了。人很容易陷入随波逐流、不深入业务的境地，而看不到问题和危险。专家有过一个研究，雪崩发生时，一般受害者都是一批一批的，很少有单个人的受害者，原因很简单，单个人在雪崩多发地会相当小心和警觉。但一个群体，群体越大，每个个体就会有一种虚幻的安全感和人云亦云的判断，但现实是不管群体的力量有多大，雪崩都是不可抵抗的。因此我觉得在大的机构里，保持独立思考的能力尤为重要。&lt;/p&gt;&lt;p&gt;　　七、少抱怨、少空谈、积极主动，多干实事。我曾经是个抱怨很多的愤青，经常容易陷入抱怨之中。但多年的工作使得我有所转变，因为知道了抱怨是最无济于事的。世界上永远有不完美的事情，永远有麻烦，唯一的解决之道是面对它，解决它。做实实在在的事情，改变我们不满的现状，改变我们不满的自己。实际上也有很多值得抱怨的事情都是我们自己一手搞出来的，比如社会上很常见的是高级干部退下来了，抱怨人心不古、感慨世态炎凉，如果好好去探究一下，原因很可能是他权位在手春风得意时不可一世、视他人如粪土造成的。&lt;/p&gt;&lt;p&gt;　　八、对职业负责、对目标负责，对自己负责，成功者往往自觉自律、信守承诺、心无旁骛。大企业肯定会有绩效考核、会有论功行赏、会有KPI、会有领导指示、甚至会有一点企业政治，但如果我们片面地追求考核成绩、片面追求KPI指标、片面追求权钱利益，片面地对上负责、对别人负责，而不对自己负责、不对自己的目标负责，失去工作的使命感、责任心、热情和好奇心，必将不能达到自己的最佳境界。而一个企业如何能够成功营造一个环境，让每个个体尽量发挥到最佳境界，企业也会战无不胜。&lt;/p&gt;&lt;p&gt;　　九、多点人文修养和审美情趣，看起来与工作不怎么相关，其实太相关了。杰出成就的取得离不开对美的境界的追求，最伟大的科学发现，往往蕴涵着秩序、简洁和美。缺乏一点审美的追求，什么UGLY的事情都敢做、不择手段、凡事凑合，一点都不“高雅”，必将不能长久。&lt;/p&gt;&lt;p&gt;　　十、“大家好，才是真的好”，关注人，帮助人，真诚待人，厚道做人。快速发展的现代社会，由于媒体的作用，过分渲染了人与人之间日益冷漠、诡诈的关系，但实际的社会、社区可能真的不是那么回事，起码我来华为之前，对一个大企业中工作的人事关系开始还有点未知的恐惧，但实际上在这个集体中的感觉几乎人人都能开放、真诚相待，关系融洽和谐。所以关键是我们自己要能够真诚对待他人，在与他人互动中将心比心。当然，工作中的冲突是不可避免的，实际上冲突也是没有必要去避免，甚至很多冲突对组织来讲，是大有益处的。就象夫妻吵一架后感情往往更好。只要我们掌握两大原则：1）对事不对人，2）与人为善。就肯定能把适度的冲突引导到对自己、对组织都有利的方向。&lt;/p&gt;&lt;p&gt;　　十一、开放和分享的态度，在一个高科技公司工作，如果报着保守和封闭的心态，成长肯定会受阻。&lt;/p&gt;&lt;p&gt;　　十二、做好时间管理。在华为工作十年，3650天，工作日3000天左右，这些时间是不是花在最重要的事情上了，有效的、有产出的工作时间究竟有多少，实在值得怀疑。时间管理是我在华为工作当中最大的教训之一，可能也是公司整体性的问题，工作缺乏计划，经常是面临不断的被打断；或者是不断去打断同事下属；或者是不断的会议、讨论，占去绝大部分的时间；或者是被自己的兴趣所牵引，花大量时间搞一些不着边际的事情；或者是花很多时间在一些细枝末节的事情上，把很难很重要的事情一直拖到非解决不可的地步然后被迫仓促行事。现在回想，如果真的能管理好这十年时间，我觉得成就应该大很多。&lt;/p&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-7779748802450885049?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/7779748802450885049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=7779748802450885049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7779748802450885049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7779748802450885049'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/08/blog-post_13.html' title='关于工作'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-2567367432230261703</id><published>2009-08-07T21:08:00.001+08:00</published><updated>2009-08-07T21:08:44.649+08:00</updated><title type='text'>最近的的情况</title><content type='html'>&amp;nbsp;&amp;nbsp; &amp;nbsp;7月8号入职，今天8月7号，工作一个月了，从最初的阅读公司那些现在已经不太刻的文档到现在正在慢慢的习惯了公司的开发流程，工作上已经越来越有续，感想也越来越多，不管怎么样，想把多数的时间放在公司，多多学习，尽可能快的跟上大家的脚步。&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;生活上呢，呵呵，和在大学的时候没有什么区别，家里的那堆人还是在大学的那堆人，我还是那个我，回家对着电脑，平时也比较少讲话，大家的活动都还是会参加，晚上还是和老婆聊聊天。总觉得我是一个很幸运的人，毕业了还能够和自己最好的朋友们住在一起，一起去上班，一起玩闹。&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;另外自己变得成熟了一些，不会随性去做一些事情了，也更会安排自己的生活了。生活中有了更多的安排，每天都有很多事情要做，也有了很明确的目标。用阿辉的话说就是自己的生活是可控的，虽然我的生活还不是完全可控的，但是在向着这个方向发展。&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;好了，就写这么多吧，以后经常还写日记咯&lt;br&gt;&lt;/div&gt;&amp;nbsp;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-2567367432230261703?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/2567367432230261703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=2567367432230261703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/2567367432230261703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/2567367432230261703'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/08/blog-post.html' title='最近的的情况'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-6443950973422579277</id><published>2009-07-23T22:06:00.001+08:00</published><updated>2009-07-23T22:06:57.237+08:00</updated><title type='text'>工作了</title><content type='html'>&amp;nbsp;&amp;nbsp; &amp;nbsp;7月8号入职，到现在刚好有半个月了，慢慢的适应了工作的生活，早晨还像在学校那样的时间起床，起来就乘地铁去上班，公司的工作环境相当宽松，中午和下午去公司附近的餐厅吃饭，没有什么不适应的。感觉就像在学校一样，起码生活节奏是一样的。&lt;br&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;工作了，思想也就不一样了，更多的开始考虑之后的生活，给自己很多计划，计划着如何把工作做好，计划着自己以后的生活。公司的牛人很多，牛人们也都很低调，大家都很强，每一个问题都有很好的解决办法。更多的体会到了公司工作的流程化，也适应了这种流程化的工作。&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;适应只是适应，但是还不熟悉，所以在接下来的日子里我要多多努力，跟上大家的脚步。&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-6443950973422579277?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/6443950973422579277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=6443950973422579277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6443950973422579277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6443950973422579277'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/07/blog-post.html' title='工作了'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-1925256145300597673</id><published>2009-07-09T15:02:00.001+08:00</published><updated>2009-07-09T15:02:36.643+08:00</updated><title type='text'>我的新手机号码15210089102</title><content type='html'>&lt;div class="real_blog" id="veryContent"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;这是我在北京的新手机号，15210089102。 &lt;br&gt;之前的号码13666239183我也会用到9月底。 &lt;br&gt;欢迎大家随时联系我&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-1925256145300597673?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/1925256145300597673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=1925256145300597673' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/1925256145300597673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/1925256145300597673'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/07/15210089102.html' title='我的新手机号码15210089102'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-8459481302105902290</id><published>2009-06-19T11:47:00.002+08:00</published><updated>2009-06-24T15:21:05.756+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>总结一下这几天遇到的问题</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial; line-height: 17px; color: rgb(68, 68, 68); "&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;1.IE6固定定位问题&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;由于IE6不支持fixed所以在对IE6进行固定定位时要用hack才能达到目的,常用的hack有以下几个:&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;    1.使用条件注释用来区分IE7 IE6 和 IE5 来分别写代码,但是这是在比较标准的网页格式下,如果网页写的不标准引起了IE 的quirks mode 问题就是另外一种了,但是可以针对所有版本的IE浏览器写一个就可以了,这样要用到IE的的盒子模型hack,对于固定定位使用的是absolute定位,在IE中用expression计算所要定位的位置,下面是我定位一个div到屏幕中间而写的代码:&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;&lt;a href="http://zzqwaa.blu.livefilestore.com/y1pqWW2OkmsFy1UWDrCk2ueyrBZE_5H4BSwcD3tavDTmGeDvUO8rgyoP6ByRMWcDM2OZS8iEgnRMwP5ypXNNJmxrUCWJ99joyxv?PARTNER=WRITER" style="line-height: 17px; font-weight: inherit; text-decoration: none; color: rgb(0, 102, 167); cursor: pointer; "&gt;&lt;img border="0" alt="aaaaaaaa" src="http://zzqwaa.blu.livefilestore.com/y1pqWW2OkmsFy0Af5_I9Qtylp-EvKYaUADXgxVyiJ12QraZUxrJZWrJn-IoNFfOUD_gvrfEkH0JE-CUhfjtFyelQujmvbrXQ5QT?PARTNER=WRITER" width="770" height="164" style="line-height: 17px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-right-style: initial; border-right-color: initial; border-top-style: initial; border-top-color: initial; border-left-style: initial; border-left-color: initial; border-bottom-style: initial; border-bottom-color: initial; "&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;2.JSON格式多一个逗号的问题。&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;这几天写JavaScript代码，为了偷懒，在有些JSON格式的最后多放了一个逗号，以方便再加入成员，Firefox是强大的，可以处理这种小问题，可是IE就不行了，出错了。而且还没有错误提示。害我一个一个去掉它们。&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;&lt;a href="http://3.IE"&gt;3.IE&lt;/a&gt;输入框不能输入文字的问题（百度上找到的，这里收藏一下，嘿嘿）&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;故障原因:&lt;br style="line-height: 17px; "&gt;　　Internet Explorer或任何基于IE的浏览器打开后，所有网页的输入框中都不能输入数据，也无法选中文本框让文本框获取焦点，同时也不能选择网页上的文字。"修复恶意插件后.破坏了IE内文件"&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;解决办法：&lt;br style="line-height: 17px; "&gt;　　这是由于%windir%\system32\mshtmled.dll丢失或者损坏造成的，从正常机器上拷贝该文件覆盖该文件即可，或者从安装光盘中提取该文件。&lt;br style="line-height: 17px; "&gt;        加载mshtmled.dll: 在开始-运行中输入:regsvr32 mshtmled.dll&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;提取方法:&lt;br style="line-height: 17px; "&gt;首先把系统安装盘放入光驱，然后打开"命令提示符"，并输入"expand X:\i386\mshtmled.dl_ c:\windows\system32\mshtmled.dll"，其中"X:\"是光驱盘符，根据自己XP安装目录位置进行更改即可.&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;注意：如果是文件损坏可以无法直接进行覆盖操作，那么就需要重启到安全模式进行操作。&lt;br style="line-height: 17px; "&gt;配置自动启动文件:msconfig&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-8459481302105902290?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/8459481302105902290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=8459481302105902290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/8459481302105902290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/8459481302105902290'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/blog-post.html' title='总结一下这几天遇到的问题'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-307039065100349447</id><published>2009-06-19T11:33:00.001+08:00</published><updated>2009-06-19T11:33:46.210+08:00</updated><title type='text'>fabonacci equotion</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial; line-height: 17px; color: rgb(68, 68, 68); "&gt;fabonacci的通项公式：&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;var fabonacci = function(n){&lt;br style="line-height: 17px; "&gt;    return Math.round((Math.pow((1+Math.sqrt(5)),n+1) - Math.pow((1-Math.sqrt(5)),n+1))/(Math.pow(2,n+1)*Math.sqrt(5)));&lt;br style="line-height: 17px; "&gt;}&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 公式是从组合数学的课本上抄过来的，数学真是一个比较好玩的东西，很多东西可以通过它的处理就可以变得的简单. &lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;不过JavaScript真的是不适合作精确计算，这样的计算就要用Math.round来调整&lt;/span&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-307039065100349447?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/307039065100349447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=307039065100349447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/307039065100349447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/307039065100349447'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/fabonacci-equotion.html' title='fabonacci equotion'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-6391760501701756164</id><published>2009-06-19T11:32:00.001+08:00</published><updated>2009-06-19T11:32:58.088+08:00</updated><title type='text'>css: absmiddle</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial; line-height: 17px; color: rgb(68, 68, 68); "&gt;If you set the align attribute of the &amp;lt;img&amp;gt; tag to absmiddle, the browser will fit the absolute middle of the image to the absolute middle of the current line. This is different from the common middle and center options, which align the middle of the image with the baseline of the current line of text (the bottom of the characters). Though Netscape and Opera do not distinguish absmiddle from middle alignments, Firefox and Internet Explorer use it to differentially align images from their middle valuesin other words, Firefox and Internet Explorer&amp;#39;s absmiddle alignment is the same as Netscape&amp;#39;s middle.&lt;/span&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-6391760501701756164?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/6391760501701756164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=6391760501701756164' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6391760501701756164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6391760501701756164'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/css-absmiddle.html' title='css: absmiddle'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-3165514313126078980</id><published>2009-06-19T11:31:00.001+08:00</published><updated>2009-06-19T11:31:29.562+08:00</updated><title type='text'>JavaScript the valueOf method and toString method</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial; line-height: 17px; color: rgb(68, 68, 68); "&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; The valueOf is used to convert an object to the most suitable primitive value while the toString method is used to convert an object to the most suitable character string.&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; Most objects do not have a primitive equivalent, in this case the object itself is simply returned;Another problem you may encounter is the priority of these two method, by default, in a string operation circumstance the toString method take priority over the valueOf method, and in a number operation circumstance the valueOf method take priority over the toString method. Things are different when you define the valueOf method for a class, when you do this, even in a string operation circumstance the valueOf method take priority over the toString method, so in this case you may explicitly  call  the toString method when you need convert an object into string.&lt;/p&gt; &lt;/span&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-3165514313126078980?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/3165514313126078980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=3165514313126078980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3165514313126078980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3165514313126078980'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/javascript-valueof-method-and-tostring.html' title='JavaScript the valueOf method and toString method'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-6862494068496142885</id><published>2009-06-19T11:30:00.001+08:00</published><updated>2009-06-19T11:30:07.174+08:00</updated><title type='text'>Manipulating the Document During Loading</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial; line-height: 17px; color: rgb(68, 68, 68); "&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; 1. Firefox-specific technique&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;document.addEventListener(&amp;#39;DOMContentLoaded&amp;#39;, methodToFire, false);&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; the DOMContentLoaded event is fired when the document is parsed but before all the external objects is loaded.&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; 2. IE-specific technique(IE 6)&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;With IE, there is no DOMContentLoaded event to happen, to achieve this, we can use a &amp;lt;script&amp;gt; that has both defer and src attribute, with these two attribute the &amp;lt;script&amp;gt; tag is deferred to the end of the document, so we can check the readyState attribute value of the &amp;lt;script&amp;gt; , if the value is complete, it indicates that the document has been fully loaded. At this point, the state is equal to &amp;#39;DOMContentLoaded&amp;#39;.&lt;/p&gt; &lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;To Implement the technique, we must use conditional comment in the javaScript file, the code is like these:&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; &lt;a style="line-height: 17px; font-weight: inherit; text-decoration: none; color: rgb(0, 102, 167); cursor: pointer; "&gt;/*@cc_on@*/&lt;/a&gt;&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; &lt;a style="line-height: 17px; font-weight: inherit; text-decoration: none; color: rgb(0, 102, 167); cursor: pointer; "&gt;/*@if(@_win32&lt;/a&gt;)&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; document.write(&amp;#39;&amp;lt;script id=&amp;quot;__ie_onload&amp;quot; defer src=&amp;quot;&amp;#39; + ((location.protocol == &amp;#39;https:&amp;#39;) ? &amp;#39;//0&amp;#39; : &amp;#39;javascript:void(0)&amp;#39;) + &amp;#39;&amp;quot;&amp;gt;&amp;lt;\/script&amp;gt;&amp;#39;);&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; document.getElementById(&amp;#39;__ie_onload&amp;#39;).onreadystatechange = function(){if (this.readyState == &amp;#39;complete&amp;#39;) { do something}};&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; @end@*/&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt;3. WebKit-specific technique&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; with WebKit engine, the document.readyState is available, when it&amp;#39;s value is loaded of completed , we can take is as &amp;#39;DOMContentLoaded&amp;#39;&lt;/p&gt;&lt;p style="line-height: 17px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.35em; margin-left: 0px; "&gt; document.readyState is also available in IE7 and IE8&lt;/p&gt;&lt;/span&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-6862494068496142885?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/6862494068496142885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=6862494068496142885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6862494068496142885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6862494068496142885'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/manipulating-document-during-loading.html' title='Manipulating the Document During Loading'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-2756669302917916618</id><published>2009-06-19T11:27:00.001+08:00</published><updated>2009-06-19T11:27:56.491+08:00</updated><title type='text'>[读书笔记]无懈可击的Web 设计</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial; line-height: 17px; color: rgb(68, 68, 68); "&gt;1.    使用关键字和百分比来设定页面文字的大小, 以允许用户控制并实现最大程度的灵活性.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 2.    当以像素为单位设定了文字的大小以后, IE6/WIN 的用户便无法再改变这个大小了.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;3.    针对IE5/WIN 的hack: Box Model Hack 和  Sample Box Model Hack&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;     BMH:    voice-family: &amp;quot;\&amp;quot;}\&amp;quot;&amp;quot;;/* IE/5在此认为声明已经结束&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;    SBMH:    *html body{         /*for IE/WIN*/&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;             font-size: x-small; /* for IE5/WIN  */&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;            f\ont-size: small;  /* for other IE/WIN versions */}&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 4.    IE6/win 在字体大小上只能支持百分数是10的倍数的情况, 所以在设定字体大小的时候尽量选择10的倍数.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;5.    屏幕阅读软件JAWS  &lt;a href="http://www.freedomscientific.com/fs_products/Surfs_Up/Navigating.htm"&gt;www.freedomscientific.com/fs_products/Surfs_Up/Navigating.htm&lt;/a&gt;&lt;br style="line-height: 17px; "&gt; &lt;br style="line-height: 17px; "&gt;6.    提供能够适应任意大小文字或任意数量内容的站点导航栏.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;7.    不要把高度值定死, 让横向延伸的页面组件能够在纵向自由扩张.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 8.    一个被浮动的框式组件必须有明确的宽度值.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;9.    要避免臃肿的代码, 不要在HTML中写不必要的图片代码, 而通过CSS 设置景图片来引入它们.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;10.    使用反射浮动的方法来将内容分别定位于容器的左右两边.&lt;br style="line-height: 17px; "&gt; &lt;br style="line-height: 17px; "&gt;11.    设置一个浮动属性来清除一个浮动问题-----如果一个外框本身也被高为浮动, 它将随着内在的浮动对象的大小而伸展, 以容纳下它们.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;12.    当为浮动对象添加一个左侧或右侧的margin时, IE/Win 就会有一个不正确的举动, 把与浮动方向相同的那一侧的margin 双倍处理.解决办法是:为浮动对象增加一条规则  display: inline, 就可以让IE/Win 正确的显示 margin.&lt;br style="line-height: 17px; "&gt; &lt;br style="line-height: 17px; "&gt;13.    为了使IE/Mac中的浮动对象的伸展后的宽度不大于其外在框的宽度,必须为其设定一个宽度.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;14.    设计框式组件之前, 考虑好那些未来可能出现在的问题.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 15.    宽度不固定的圆角矩形框需要一些额外的HTML代码，以便在所有的四个圆角处引入图片。运用最好的判断力决定这些额外的代码是否值得.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;16.    确保页面内容在图片或CSS缺失的情况下仍然易读.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 17.    记住要为设计中的每个背景图片设置相同或相近的背景色. 让每个禁用图片或连接速度慢的同学也可以正常的浏览页面.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;18.    从列宽中减去 gutter 的百分比宽度值, 或者加一个额外的DIV来列宽以外单独设置padding 的值.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt; 19. 给布局设置min-width 和 max-width, 来防止布局尺寸过大或过小.不必在间IE/Win不支持这种功能.&lt;br style="line-height: 17px; "&gt;&lt;br style="line-height: 17px; "&gt;20.    尝试用&amp;quot;Sliding Faux Columns&amp;quot;的方法, 能过使用边框和背景一直延伸到页脚, 来实现看上去相等的栏.&lt;br style="line-height: 17px; "&gt; &lt;br style="line-height: 17px; "&gt;21.    IE/Win 需要那需要清除浮动影响的对象有一个明确写出的尺寸.尺寸是什么无关紧要, 因为IE/Win总是会扩大对象以适应它里面的任何东西.例如:*html{height:%1;}/*only for IE/Win&lt;br style="line-height: 17px; "&gt;&lt;/span&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-2756669302917916618?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/2756669302917916618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=2756669302917916618' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/2756669302917916618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/2756669302917916618'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/web.html' title='[读书笔记]无懈可击的Web 设计'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-1392793354420704298</id><published>2009-06-11T11:43:00.001+08:00</published><updated>2009-06-11T11:43:26.752+08:00</updated><title type='text'>blogger测试邮件发博客</title><content type='html'>因为blogger被墙了，导致我无法发博客，我先表示抗议，希望谷歌的公关同学们尽快搞定这个问题。 &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-1392793354420704298?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/1392793354420704298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=1392793354420704298' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/1392793354420704298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/1392793354420704298'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/06/blogger.html' title='blogger测试邮件发博客'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-8016482081789626259</id><published>2009-04-03T14:18:00.002+08:00</published><updated>2009-04-03T14:19:53.141+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>Happy Birthday^_^</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(0, 0, 238);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;3月31号，农历的三月初五，我的生日，生日过得相当开心。&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;感觉自己的胃变小了，才喝了没有多少啤酒，就变得很胀，然后就把去卫生间把吃的喝的都吐了出来，吐出来也好，是一种解脱。也许是从谈恋爱开始，我开始变得比较注意身体健康，不怎么吃油炸的食品，尽量少喝酒，每天泡一下脚再睡觉，开始有计划的运动.....  总觉得是人成长了，长大了，开始学着生活了，其实我还在寒假学习做饭的，整个一个生活男了。&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;吃完晚饭，就和班里的这堆同学们去KTV唱歌，那天我比较积极咯，虽然唱得不好，但是还是在抢话筒，这就是80后吧，不管怎么样，今天是我的生日，开心就好。班里的同学还是老样子，晋哥唱得还是那么卖力，那么认真。俊哥呢，嗓音比较好，歌唱得也赞，总是在唱得时候脸上浮出一些开心满意的笑。宋拿话筒的样子，唱歌认的样子都很认真，有的时候他自己都会笑，呵呵。沈这个不喜欢唱歌的家伙也唱了几首歌，还以为他又波动了呢。佩佩上次和这次都没有怎么唱，可能最近她确实比较烦吧，毕竟工作还没有落实下来，确实比较烦，祝她早日把工作搞定咯~~倒是老大一直在睡觉，呵呵，这个活动确实有点不适合他，他最喜欢的就是几个人坐在外边喝酒喝一晚上吧。昆最后也来了，白月光，相当让大家震惊了，他总是那种做一件事就做得很认真也会做得很好的人，总让人觉得不论遇到什么事情都很静的一个人。小小同学一首都没有唱，一直在玩，呵呵，难道被我们这群老人雷到了？&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;这堆大伙应该是我大学班里玩得最好的人了吧，我的交际圈不是很大，交往的人都是真心交流的。什么都可以给对方讲的。平时总是在工作室，和大家玩得比较少，在毕业之前应该珍惜时间，和大家多玩一玩，这次生日算是一个开始吧，以后多和大家玩玩了，毕竟要毕业了。&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;工作室的同学们呢，我对不起大家了，只是中午请大家吃个饭，也没有叫几个人人，挺内疚的。大家还给我买了一个大大的生日蛋糕，呵呵，现在总会感觉工作室就像一个家，谢谢大家咯，吹完生日蜡烛说了第三个愿望，希望工作室里的第个人都可以发展的好好的，也希望工作室都发展的好好的。虽然我也觉得这个愿望有点too formal了，不过确实是这样想的，怎么说呢，呆了三年的一个地方，总会希望自己走的时候她还是会好好的发展下去，大家努力咯。&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;吃生日蛋糕的时间虽然比较短，但是还是比较开心的，平时不怎么过生日的，这应该是我得第二个生日蛋糕吧。玩得还是比较Happy：&lt;br /&gt;&lt;br /&gt;呵呵，小航子太不客气了，不过我还是不喜欢在脸上抹这个东西，脸用纸擦了很久，衣服也洗了-_-&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_XZFcOAVee3M/SdWnYJ4b7YI/AAAAAAAACrE/24kRpKItPy4/s1600-h/20090331133.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://3.bp.blogspot.com/_XZFcOAVee3M/SdWnYJ4b7YI/AAAAAAAACrE/24kRpKItPy4/s400/20090331133.jpg" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt; 不知道小小同学怎么摔倒了,人家川都起来了，他还不想起来了&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_XZFcOAVee3M/SdWnepFtg9I/AAAAAAAACrM/b5P8QWKlX6c/s1600-h/20090331135.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://3.bp.blogspot.com/_XZFcOAVee3M/SdWnepFtg9I/AAAAAAAACrM/b5P8QWKlX6c/s400/20090331135.jpg" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;23岁了，22岁的我很努力。&lt;br /&gt;23岁的这一年呢，只希望自己过得很开心。&lt;br /&gt;给自己一句话吧“给自己一个目标，然后为这个目标积极向上的生活” 加油咯!! :)&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-8016482081789626259?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/8016482081789626259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=8016482081789626259' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/8016482081789626259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/8016482081789626259'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/04/happy-birthday.html' title='Happy Birthday^_^'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_XZFcOAVee3M/SdWnYJ4b7YI/AAAAAAAACrE/24kRpKItPy4/s72-c/20090331133.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-3174142111437390885</id><published>2009-03-17T22:37:00.002+08:00</published><updated>2009-03-18T09:09:07.235+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Microsoft.XMLHTTP  vs. Msxml2.XMLHTTP.*.0</title><content type='html'>In jQuery, this is how we get the XMLHTTPRequest object:&lt;br /&gt;&lt;br /&gt;return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();&lt;br /&gt;&lt;br /&gt;But in &lt;i&gt;JavaScript - The Definitive Guide, 5th Edition&lt;/i&gt; we have a list of creation factory functions:&lt;br /&gt;&lt;br /&gt;HTTP._factories = [&amp;nbsp;    &lt;br /&gt;function() { return new XMLHttpRequest(); },&lt;br /&gt;&amp;nbsp;function() { return new ActiveXObject("Msxml2.XMLHTTP"); },&lt;br /&gt;&amp;nbsp;function() { return new ActiveXObject("Microsoft.XMLHTTP"); }&lt;br /&gt;&amp;nbsp;];&lt;br /&gt;&lt;br /&gt;So why Msxml2 is give a preference in&amp;nbsp;&lt;span style="font-style: italic;"&gt;JavaScript - The Definitive Guide, 5th Edition&lt;span style="font-style: normal;"&gt;&amp;nbsp;, but is discarded by jQuery?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I read these articles, &amp;nbsp;and finally get the answer.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/ie/archive/2006/01/23/516393.aspx"&gt;Native XMLHTTPRequest object&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet-explorer.aspx"&gt;Using the right version of MSXML in Internet Explorer&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana; font-size: small;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: 13px;"&gt;&lt;a href="http://bytes.com/groups/javascript/559991-msxml-xmlhttp-vs-microsoft-xmlhttp"&gt;Msxml2.XMLHTTP.*.0 vs. Microsoft.XMLHTTP&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana; font-size: small;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: 13px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms757837.aspx"&gt;GUID and ProgID Information&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana; font-size: small;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: 13px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms766426.aspx" style="text-decoration: none;"&gt;MSXML 3.0 GUIDs and ProgIDs&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="font-family: Verdana; font-size: small;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;According to&amp;nbsp;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana; font-size: 13px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms757837.aspx"&gt;GUID and ProgID Information&lt;/a&gt;&amp;nbsp;we know that&lt;/span&gt;&amp;nbsp;MSXML&amp;nbsp;4&amp;nbsp;and&amp;nbsp;later&amp;nbsp;components&amp;nbsp;can&amp;nbsp;only&amp;nbsp;be&amp;nbsp;instantiated&amp;nbsp;with&amp;nbsp;version&amp;nbsp;specific&amp;nbsp;program&amp;nbsp;ids&amp;nbsp;e.g. &amp;nbsp;Msxml2.XMLHTTP.4.0'.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;To&amp;nbsp;quote&amp;nbsp;from&amp;nbsp;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana; font-size: 13px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms757837.aspx"&gt;GUID and ProgID Information&lt;/a&gt;&amp;nbsp;&lt;/span&gt;:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;"After&amp;nbsp;you&amp;nbsp;install&amp;nbsp;MSXML&amp;nbsp;4.0&amp;nbsp;or&amp;nbsp;later,&amp;nbsp;applications&amp;nbsp;that&amp;nbsp;use&amp;nbsp;version-independent progIDs&amp;nbsp;continue&amp;nbsp;to&amp;nbsp;run&amp;nbsp;using&amp;nbsp;the&amp;nbsp;most&amp;nbsp;recent&amp;nbsp;version&amp;nbsp;of&amp;nbsp;MSXML&amp;nbsp;prior&amp;nbsp;to&amp;nbsp;version&amp;nbsp;4.0.&amp;nbsp;Typically,&amp;nbsp;for&amp;nbsp;most urrent&amp;nbsp;Windows&amp;nbsp;systems,&amp;nbsp;this&amp;nbsp;will&amp;nbsp;be&amp;nbsp;MSXML&amp;nbsp;3.0"&amp;nbsp;So&amp;nbsp;the&amp;nbsp;version&amp;nbsp;independent&amp;nbsp;version&amp;nbsp;id Msxml2.XMLHTTP'&amp;nbsp;is&amp;nbsp;bound&amp;nbsp;to&amp;nbsp;MSXML&amp;nbsp;3&amp;nbsp;or&amp;nbsp;earlier&amp;nbsp;but&amp;nbsp;never&amp;nbsp;to&amp;nbsp;later&amp;nbsp;versions&amp;nbsp;(MSXML&amp;nbsp;4&amp;nbsp;or&amp;nbsp;later)&amp;nbsp;even&amp;nbsp;if&amp;nbsp;these&amp;nbsp;are&amp;nbsp;installed.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;About Microsoft.XMLHTTP, There is an &lt;a href="http://msdn.microsoft.com/library/en-us/xmlsdk/html/e5533515-e525-4781-b68b-1ecfefdd1e89.asp?frame=true"&gt;URL&lt;/a&gt; that I can't open, someone say&amp;nbsp;It&amp;nbsp;suggests&amp;nbsp;that&amp;nbsp;Microsoft.XMLHTTP&amp;nbsp;is&amp;nbsp;bound&amp;nbsp;MSXML&amp;nbsp;2.&amp;nbsp;According to&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ms537505(VS.85).aspx"&gt;About Native XMLHTTP&lt;/a&gt;&amp;nbsp;XMLHTTP was first introduced as a Microsoft ActiveX control in Microsoft Internet Explorer 5. And according to&amp;nbsp;&lt;i&gt;MSXML versions that are included with Microsoft Internet Explorer&lt;/i&gt; in&amp;nbsp;&lt;a href="http://support.microsoft.com/kb/269238/en-us"&gt;List of Microsoft XML Parser (MSXML) versions&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Internet Explorer 5 use MSXML 2.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;There&amp;nbsp;is&amp;nbsp;the&amp;nbsp;final&amp;nbsp;conclusion:&amp;nbsp;Msxml2.XMLHTTP&amp;nbsp;is&amp;nbsp;likely&amp;nbsp;bound&amp;nbsp;to&amp;nbsp;MSXML&amp;nbsp;3&amp;nbsp;and&amp;nbsp;Microsoft.XMLHTTP&amp;nbsp;is&amp;nbsp;likely&amp;nbsp;bound&amp;nbsp;to&amp;nbsp;MSXML&amp;nbsp;2.&amp;nbsp;If&amp;nbsp;we&amp;nbsp;choose&amp;nbsp;to&amp;nbsp;use&amp;nbsp;Msxml2.XMLHTTP,&amp;nbsp;we&amp;nbsp;may&amp;nbsp;use&amp;nbsp;MSXML&amp;nbsp;3&amp;nbsp;and&amp;nbsp;MSXML2&amp;nbsp;when&amp;nbsp;we&amp;nbsp;use&amp;nbsp;Microsoft.XMLHTTP.&amp;nbsp;So&amp;nbsp;giving&amp;nbsp;Msxml2.XMLHTTP&amp;nbsp;seems&amp;nbsp;more&amp;nbsp;suitable.&amp;nbsp;Then&amp;nbsp;two&amp;nbsp;more&amp;nbsp;questions&amp;nbsp;comes&amp;nbsp;up:&amp;nbsp;is&amp;nbsp;there&amp;nbsp;any&amp;nbsp;necessary&amp;nbsp;to&amp;nbsp;get&amp;nbsp;an&amp;nbsp;XMLHTTPRequest&amp;nbsp;object&amp;nbsp;using&amp;nbsp;the&amp;nbsp;method&amp;nbsp;of&amp;nbsp;MSXML&amp;nbsp;3?&amp;nbsp;Is&amp;nbsp;the&amp;nbsp;object&amp;nbsp;returned&amp;nbsp;by&amp;nbsp;the&amp;nbsp;method&amp;nbsp;of&amp;nbsp;MSXML&amp;nbsp;3&amp;nbsp;better?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;At least, from &amp;nbsp;all the things above and&amp;nbsp;&lt;a href="http://blogs.msdn.com/ie/archive/2006/01/23/516393.aspx"&gt;Native XMLHTTPRequest object&lt;/a&gt;&amp;nbsp;we know that the method that jQuery used is not problematic.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-3174142111437390885?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/3174142111437390885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=3174142111437390885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3174142111437390885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/3174142111437390885'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/microsoftxmlhttp-vs-msxml2xmlhttp0.html' title='Microsoft.XMLHTTP  vs. Msxml2.XMLHTTP.*.0'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-6299196894231849534</id><published>2009-03-14T20:56:00.005+08:00</published><updated>2009-03-15T09:30:01.697+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='(X)HTML'/><title type='text'>Quirks mode and strict mode</title><content type='html'>&lt;div&gt;I've  read the these references carefully, if you want to dig into this subject,  these are really good references.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Related References:&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.quirksmode.org/css/quirksmode.html"&gt;Quirks mode and strict mode&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://hsivonen.iki.fi/doctype/"&gt;Activating Browser Modes with Doctype&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.quirksmode.org/css/box.html"&gt;Box model tweaking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.quirksmode.org/css/tests/mozie_button.html?" style="text-decoration: none;"&gt;Explorer Windows and Mozilla bug - button box model&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-6299196894231849534?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/6299196894231849534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=6299196894231849534' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6299196894231849534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6299196894231849534'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/quirks-mode-and-strict-mode.html' title='Quirks mode and strict mode'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-5531770591612280508</id><published>2009-03-14T17:49:00.016+08:00</published><updated>2009-03-14T20:20:43.157+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='(X)HTML'/><title type='text'>XHTML vs. HTML</title><content type='html'>&lt;b&gt;&lt;div&gt;This post is a note when I was reading  the book &lt;i&gt;HTML Mastery&lt;/i&gt;  by Paul Haine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Differences between XHTML and HTML&lt;/div&gt;&lt;/b&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;The html, head, and body tags are all required in XHTML.&lt;/li&gt;&lt;li&gt;The html tag must have an xmlns attribute with a value of http://www.w3.org/1999/xhtml.&lt;/li&gt;&lt;li&gt;All elements must be closed. I touched upon this earlier, but just remember that anopening tag must have either an equal closing tag (if it’s a container tag) or a selfclosingspace-plus-slash.&lt;/li&gt;&lt;li&gt;All tags must be written in lowercase.&lt;/li&gt;&lt;li&gt;All attribute values must be quoted with either single quotes or double quotes.Thus, class=page is invalid but class="page" and class='page' are both fine.&lt;/li&gt;&lt;li&gt;All attributes must have values. Some attributes, such as the selected attributeused with the &lt;option&gt; tag, could be written in a shortened form in HTML—that is,&lt;option&gt;data&lt;/option&gt; would be valid. In XHTML, however, you mustwrite &lt;option selected="selected"&gt;data&lt;/option&gt;.&lt;/li&gt;&lt;li&gt;Ampersands should be encoded. That is, you should write &amp;amp; instead of just &amp;amp;.This is true wherever the ampersand is: in your content or in a URL.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Some facts about XHTML and HTML&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Comparing Strict to Strict, the answer is there are fewer elements in XHTML 1.0, but because they are all deprecated in HTML 4.01 anyway, it shouldn't make any difference  in your coding practices.&lt;/li&gt;&lt;li&gt;If you’re serving your XHTMLpages with a MIME type of text/html, then your markup is no more robust than HTML is,and browsers will often try to correct any errors in your markup for you and attempt todisplay what they assume you mean. If you’re serving your XHTML with a MIME type ofapplication/xhtml+xml, then the slightest error will cause your pages to break and usuallyonly display an XML parsing error.&lt;/li&gt;&lt;li&gt;XHTML is no more semantic/structural than HTML, it's not the technology you use, but how you use it that counts.&lt;/li&gt;&lt;li&gt;XHTML page actually ends up being “heavier” than an equivalent HTML page.&lt;/li&gt;&lt;li&gt;XHTML is required for web standards compliance, false. Whether you write HTML or write XHTML, the important part is that you write it well.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;What’s all this noise about MIME types?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;XHTML has several advantages over HTML: (1) XHTML has several advantages over HTML. (2) XHTML that is not well-formed will be immediately spotted, because browsers willrefuse to display the page and will display an error instead. (3) XHTML provides a guarantee of a well-formed4 document.&lt;/li&gt;&lt;li&gt;None of the preceding points are true, however, unless you are serving XHTML with aMIME type of application/xhtml+xml. If your web server is serving your web pages witha MIME type of text/html (practically all web servers will do so), then you will not be takingfull advantage of XHTML.&lt;/li&gt;&lt;li&gt;So, this being the case, you may choose to simply configure your server to serve yourXHTML pages with the correct MIME type. However, it’s not that easy, for two reasons: (1) Internet Explorer does not support pages served in such a way, and it will attemptto download them instead of displaying them. (2) Your pages may no longer work.&lt;/li&gt;&lt;li&gt;The first problem can be solved through content negotiation5—that is, serving one MIMEtype to modern browsers and another to Internet Explorer. The second problem can becaused by a number of reasons. An invalid XHTML document will now no longer display at all, resulting in an error message. Even if your document is valid, though, that’s not theonly problem you may run into:(1) Comments in style and script tags of the &amp;lt!-- --&amp;gt form that you may havebeen using to hide your CSS or scripts from old browsers will now be treated literallyas comments, so your CSS or scripts will appear not to exist.(2)Scripts that use document.write() will no longer work.(3)Your CSS can be interpreted differently, depending upon how you wrote it in thefirst place.&lt;/li&gt;&lt;li&gt;My personal(not me, it is Paul Haine) preference is to write XHTML served as text/html, despite the issues justnoted. This is for a number of reasons, not least being that employers and clients have atendency to insist upon it for marketing purposes. I also prefer the structure, knowing thatI must close all of my tags and that I must quote all of my attribute values. I can do all ofthis in HTML if I choose, but with XHTML there’s the element of compulsion that I believehelps me write better markup.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Deciding between HTML and XHTML&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;So which should you use, HTML or XHTML? It depends. The World Wide Web Consortium(W3C) recommends writing XHTML over HTML6 to better enable you to convert your documentsto XHTML 2 (covered in Appendix A) when it arrives, so if this is something youplan to do, write XHTML now. If you find yourself having to take into consideration otherfactors, such as legacy applications or CMSs that are producing HTML 4 (unquoted attributes,uppercase tags, etc.), then it makes little sense to wrap that output in a template withan XHTML doctype and you should use HTML 4 in this case. If you need to save on bandwidth,use HTML 4. If you need to use XML, use XHTML . . . and so on.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-5531770591612280508?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/5531770591612280508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=5531770591612280508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/5531770591612280508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/5531770591612280508'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/xhtml-vs-html.html' title='XHTML vs. HTML'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-6358597221229380505</id><published>2009-03-14T15:05:00.009+08:00</published><updated>2009-03-14T22:41:19.466+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='(X)HTML'/><title type='text'>(X)HTML terminology</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; color: rgb(51, 51, 51); font-size: 13px; line-height: 19px; "&gt;This post is a note when I was reading the book &lt;i&gt;HTML Mastery&lt;/i&gt; by Paul Haine.&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Element: &lt;/b&gt;an element is a construct consisting(usually) of  an opening tag, some optional attributes, some content, and a closing tag.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Self-closing elements: &lt;/b&gt;a self-closing element requires a space and a trailing slash&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;empty elements:&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;replaced elements:&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Tag:&lt;/b&gt; an tag indicates the start and end of an element. &lt;/li&gt;&lt;li&gt;&lt;b&gt;Attributes:&lt;/b&gt; Attributes appear within tags,  and they can only contain the value of the attribute.&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;div: &lt;span class="Apple-style-span" style="font-weight: normal;"&gt;A div (short for “division”) is used for marking out a block of content, and it can not be contained within an inline element.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;span:&lt;/b&gt; A span is used for marking out sections within a block element and sometimes insideanother inline element.It is an inline element without any semantic meaning, it is a simply generic container.&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;block-level box:&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;A block-level box, such as a div, a paragraph, or a heading, begins rendering on a new linein the document and forces a subsequent element to start rendering on a new line below.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;inline-level box: &lt;span class="Apple-style-span" style="font-weight: normal; "&gt;An inline-level box, such as a &lt;span&gt; or an &lt;em&gt;, begins rendering wherever you place it within the document and does not force any line breaks.&lt;/em&gt;&lt;/span&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&lt;em&gt;&lt;li&gt;&lt;b&gt;id attribute:&lt;/b&gt;  The id attribute is used to identify elements and mark up specific functional areas of awebsite&lt;/li&gt;&lt;li&gt;&lt;b&gt;class attribute:&lt;/b&gt; the class attribute is used to classify one or more elements.&lt;/li&gt;&lt;/em&gt;&lt;/ol&gt;&lt;em&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-6358597221229380505?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/6358597221229380505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=6358597221229380505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6358597221229380505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/6358597221229380505'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/xhtml-terminology.html' title='(X)HTML terminology'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-7668551366564322382</id><published>2009-03-10T22:38:00.003+08:00</published><updated>2009-03-11T15:01:20.041+08:00</updated><title type='text'>The DOM Range API Testing</title><content type='html'>&lt;a href="http://www.quirksmode.org/dom/w3c_range.html"&gt;W3C DOM Compatibility - Range&lt;/a&gt;   was last updated on 11 May 2007, almost two years algo, So I Write a test to test the up to date browsers. This test is  a  rough Testing, only tests whether the browser support the DOM range API and related attribute and method. &lt;a href="http://7655cjc.appspot.com/test/javascript/range/test.html"&gt;&lt;br /&gt;&lt;br /&gt;DOM Range API Testing&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-7668551366564322382?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/7668551366564322382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=7668551366564322382' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7668551366564322382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7668551366564322382'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/dom-range-api-testing.html' title='The DOM Range API Testing'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-2535669113069775808</id><published>2009-03-07T10:35:00.013+08:00</published><updated>2009-03-09T16:16:03.675+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>CSS vertical centering</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt; This post is just a note about CSS vertical centering, you may find the reference at the bottom of this post much more valuable.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;centering (vertically) text in a fixed size container&lt;/span&gt;&lt;br /&gt;You just need to set the container's line-height and height to the same value, and the text will be vertically centered. The mechanism is related to leading: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:100%;"&gt;The leading is the difference between the values of font-size and line-height. This difference is actually divided in half and applied to the top and bottom of the content area. These additions to the content area are called, not surprisingly, half-leading. Leading is applied only to nonreplaced elements.&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5310276161244804002" style="margin: 0px auto 10px; display: block; width: 400px; height: 108px; text-align: center;" alt="" src="http://4.bp.blogspot.com/_XZFcOAVee3M/SbHkCJo4s6I/AAAAAAAACnw/CIMalwhhou0/s400/content_leading.jpg" border="0" /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;centering (horizontally and vertically) an image with unknown height in a fixed size container----with redundant empty element&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span&gt;With standard browsers, we can easily get a solution by taking the advantage of display: table-cell and vertical align: middle.&lt;br /&gt;&lt;br /&gt;For IE6/7, The idear is to create a sort of line-box with the same height as its container, and assign vertical-align: middle to the internal element, we can then get precisely what we want. The way to create the line-box is to add an empty element to the container, and assign display: inline-block; height:100%; to the empty element, so the empty element with the height of its container can props the line open, so the vertical-align: middle can give the desired vertical centering. This method is not limited to centering image. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;centering (horizontally and vertically) an image with unknown height in a fixed size container----with the use of a big font-size&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;br /&gt;&lt;/span&gt;The mechanism of this method is same with the previous method, the difference is we use the line-box which is generated by the use of a big  font-size to props the line open. Actually the line box generated by the use of a big font-size is called em square, and there is some thing about font-size and em square from &lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;CSS: The Definitive Guide, 3rd Edition&lt;/span&gt;, which is at section&lt;span style="font-weight: bold;"&gt; 5.3 Font Size&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;In fact, the actual relation of the font-size property to what you see rendered is determined by the font's designer. This relationship is set as an em square (some call it an em box) within the font itself. This em square (and thus the font size) doesn't have to refer to any boundaries established by the characters in a font. Instead, it refers to the distance between baselines when the font is set without any extra leading (line-height in CSS). It is quite possible for fonts to have characters that are taller than the default distance between baselines. For that matter, a font might be defined such that all of its characters are smaller than its em square, as many fonts do.&lt;br /&gt;&lt;/blockquote&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;        So the relations between the value of font-size and the value of em square's height are different from  different fonts. The one I know is about "Times New Roman"----always to be the default font of some browsers. The relations is:  font-size(px) = 0.905 * height of the em square(px)  ,0.905 comes  from experiment. There is one example: &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://7655cjc.appspot.com/test/css/vertical_center_image_font_size_version.html"&gt;vertical centering image with the use of a big font-size&lt;/a&gt;&lt;/span&gt;&lt;span&gt;,  you can try it by yourself.&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Sample:&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://7655cjc.appspot.com/test/css/VerticalCentering.html"&gt;Vertical centering&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://7655cjc.appspot.com/test/css/vertical_center_image_font_size_version.html"&gt;vertical centering image with the use of a big font-size&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Reference:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;a id="wm6t" title="Vertical Centering in CSS" style="color: rgb(85, 26, 139);" href="http://www.jakpsatweb.cz/css/css-vertical-center-solution.html"&gt;Vertical Centering in CSS&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://www.brunildo.org/test/img_center.html"&gt;Centering (horizontally and vertically) an image in a box&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://www.brunildo.org/test/vertmiddle.html"&gt;CSS Vertical Centering&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-2535669113069775808?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/2535669113069775808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=2535669113069775808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/2535669113069775808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/2535669113069775808'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/css-vertical-centering.html' title='CSS vertical centering'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_XZFcOAVee3M/SbHkCJo4s6I/AAAAAAAACnw/CIMalwhhou0/s72-c/content_leading.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-7439749761749652970</id><published>2009-03-03T19:22:00.002+08:00</published><updated>2009-03-06T23:16:01.541+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Efficient CSS</title><content type='html'>There are some suggestions about how to write the efficient CSS&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Use shorthand properties&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; &lt;/span&gt;With shorthand properties we can cut a substantial number bytes from our style sheets.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;2.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Multiple declaration&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;And this is another way to reduce the size of our style sheet.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;3.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Default values&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; &lt;/span&gt;I don't think this is a good way to write efficient CSS, because the Default values are various in different browsers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;4.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Inheritance&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;Use this rule to avoid writing redundant code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally, you can use YUI compressor to compress you style sheet.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;The four rules above is used to avoid writing redundant code, the following rules is about the rendering speed.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Avoid using *{}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;* will traverse all the elements under its scope, it makes the browser slowly. And in most cases you don't mean to set the properties of all the elements, so try to use some explicit way to set the properties of the elements you need to set, not all the elements.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Avoid using CSS filters&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7.&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Choose the backgroud image with proper dimensions&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;The images with small dimensions  will repeat with more times than the  ones with big dimensions, but the images with big dimensions always have big size in bytes.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style=" color: rgb(51, 51, 51);  font-family:Verdana;font-size:13px;"&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;References:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span"    style="font-family:Verdana;font-size:100%;color:#333333;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;a href="http://www.communitymx.com/content/article.cfm?cid=90f55"&gt;Writing Efficient CSS&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-7439749761749652970?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/7439749761749652970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=7439749761749652970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7439749761749652970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7439749761749652970'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/03/efficient-css.html' title='Efficient CSS'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4021177996317940200.post-7023518259778848970</id><published>2009-02-21T14:50:00.002+08:00</published><updated>2009-03-30T11:14:28.017+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>核心竞争力与知识结构</title><content type='html'>&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;每学习的时候都觉得要学习的东西太多了，而时间又只有那么多，什么该学什么不该学也总得有个原则，看了两篇文章 《&lt;a href="http://mindhacks.cn/2009/01/14/make-yourself-irreplacable/"&gt;什么才是你不可替代的核心竞争力&lt;/a&gt;》，《&lt;a href="http://mindhacks.cn/2008/12/05/learning-habits-part4/"&gt;一直以来伴随我的一些学习习惯（四）：知识结构&lt;/a&gt;》自己做个总结，对自己以后的学习方向算是一个指导吧。&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;span&gt;&lt;span&gt;文中所讲核心竞争力是：自己身上有别人没有的独特的个性、背景、知识和经验的组合。如果这种组合，1，绝无仅有；2，在实践中有价值，3，具有可持续发展性，那你就具备核心竞争力&lt;span&gt;&lt;span&gt;。因此，当设计自己的发展路线时，应当最大限度地加强和发挥自己独特的组合，而不是寻求单项的超越。而构建自己独特组合的方式，主要是通过实践，其次是要有意识地构造。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;借作者写的组合我也写了一个自己的组合：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;专业领域技能，一定要成为该领域的专家，而在技术上很重要的一点就是要有一定要知识广度才能有一定的知识深度，呵呵，这是专家给我讲的。&lt;/li&gt;&lt;li&gt;跨领域&lt;span&gt;&lt;span&gt;技能&lt;span&gt;&lt;span&gt;，解决问题的能力，创新思维，判断与决策能力，Critical-Thinking，表达沟通能力，团队合作的能力，Open Mind 等等，&lt;/span&gt;&lt;/span&gt;还有哪些？&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px;font-family:Arial;font-size:14;"  &gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;学习能力。(1) 给要记住的东西提供更多的线索。(2) 经常回顾旧的知识，对新旧知识进行整合，可能通过经常和别人讨论，讲给别人听，整理笔记和写博客来达到。(3) 对问题进行抽象和推广，追其本质。&lt;br /&gt;&lt;/li&gt;&lt;li&gt;性格要素，我看重的&lt;span&gt;&lt;span&gt;性格要素有：好奇心、自信、专注、持之以恒、谦卑。&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px;font-family:Arial;font-size:14;"  &gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;好的习惯，习惯的力量很强大，有哪些习惯要培养呢？&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;这个组合里面，除了第一条其他的都还没有被我重视过，应该好好学习一下。在金融危机的的情况下考虑一下自己的核心竞争力还是有好处的。&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;附一个技术知识结构：&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Essential :&lt;span&gt;&lt;span&gt; English，数据结构、算法、数据库、操作系统原理、计算机体系结构、计算机网络，离散数学，数学&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse;font-family:arial;font-size:13;"  &gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4021177996317940200-7023518259778848970?l=7655cjc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://7655cjc.blogspot.com/feeds/7023518259778848970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4021177996317940200&amp;postID=7023518259778848970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7023518259778848970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4021177996317940200/posts/default/7023518259778848970'/><link rel='alternate' type='text/html' href='http://7655cjc.blogspot.com/2009/02/blog-post.html' title='核心竞争力与知识结构'/><author><name>aaron chen</name><uri>https://profiles.google.com/117642493404079419657</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vIvcV35fHb0/AAAAAAAAAAI/AAAAAAAAAAA/gfib8P87o8k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
