<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky8.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/G9net" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/G9net" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 31 Dec 2009 15:26:28 GMT</lastBuildDate><title>wlsy</title><description>web前端技术，wlsy</description><image><url>http://www.feedsky.com/feed/G9net/sc/gif</url><title>wlsy</title><link>http://wlsy.me</link></image><link>http://wlsy.me</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Wed, 20 Jan 2010 05:21:02 GMT</pubDate><item><title>迎新年，换域名</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799411/5355304/1/item.html</link><content:encoded>&lt;p&gt;是的，换域名了，原来的g9net.com将做跳转，新域名为&lt;a href=&quot;http://wlsy.me&quot;&gt;wlsy.me&lt;/a&gt; 。更加和谐，更加清纯。打打住，俺对天发誓wlsy真的不是你们想的wlsy，好了大家元旦快乐。&lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;aligncenter size-full wp-image-1758&quot; title=&quot;g w&quot; src=&quot;http://pic.jxnews.com.cn/0/02/32/91/2329132_688719.jpg&quot; alt=&quot;&quot; width=&quot;450&quot; height=&quot;337&quot; /&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799411/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799411/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799411/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799411/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=c9db1682ac45344a3c4fd688aa53099f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=c9db1682ac45344a3c4fd688aa53099f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1757/feed/</wfw:commentRss><slash:comments>23</slash:comments><description>是的，换域名了，原来的g9net.com将做跳转，新域名为wlsy.me 。更加和谐，更加清纯。打打住，俺对天发誓wlsy真的不是你们想的wlsy，好了大家元旦快乐。&lt;img src=&quot;http://www1.feedsky.com/t1/323799411/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799411/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799411/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799411/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=c9db1682ac45344a3c4fd688aa53099f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=c9db1682ac45344a3c4fd688aa53099f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>火墙</category><category>活着</category><pubDate>Thu, 31 Dec 2009 23:26:28 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1757/#comments</comments><guid isPermaLink="false">http://wlsy.me/?p=1757</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1757/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799411/5355304</fs:itemid></item><item><title>happy birthday to me &amp; g9net</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799412/5355304/1/item.html</link><content:encoded>&lt;p&gt;去年的这个时候，我重新建了这个博客，域名就是g9net，那天正是我生日。&lt;/p&gt;
&lt;p&gt;话说之前新人秀的时候，在某煽情的节目后俺最后道出了一句“那尼”，之后似乎也成了我另一个别称了。&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1754&quot; title=&quot;398d7ec12da41a20da2ad639698e5823&quot; src=&quot;http://www.g9net.com/wp-content/uploads/2009/12/398d7ec12da41a20da2ad639698e5823.png&quot; alt=&quot;398d7ec12da41a20da2ad639698e5823&quot; width=&quot;531&quot; height=&quot;325&quot; /&gt;感谢&lt;a href=&quot;http://ued.taobao.com&quot;&gt;UED&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;号外：那尼？！曾哥在我生日那天出了自己首张专辑&lt;a href=&quot;http://www.1ting.com/album/a1/album_42144.html&quot;&gt;http://www.1ting.com/album/a1/album_42144.html&lt;/a&gt;。&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;曾哥都可以，你，还有什么好害怕的？&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799412/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799412/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799412/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799412/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=56f788c7689df858610f1f033e187f5a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=56f788c7689df858610f1f033e187f5a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1753/feed/</wfw:commentRss><slash:comments>12</slash:comments><description>去年的这个时候，我重新建了这个博客，域名就是g9net，那天正是我生日。
话说之前新人秀的时候，在某煽情的节目后俺最后道出了一句“那尼”，之后似乎也成了我另一个别称了。
感谢UED
号外：那尼？！曾哥在我生日那天出了自己首张专辑http://www.1ting.com/album/a1/album_42144.html。
曾哥都可以，你，还有什么好害怕的？&lt;img src=&quot;http://www1.feedsky.com/t1/323799412/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799412/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799412/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799412/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=56f788c7689df858610f1f033e187f5a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=56f788c7689df858610f1f033e187f5a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>活着</category><pubDate>Fri, 18 Dec 2009 21:42:49 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1753/#comments</comments><guid isPermaLink="false">http://www.g9net.com/?p=1753</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1753/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799412/5355304</fs:itemid></item><item><title>周末杭州撩影</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799413/5355304/1/item.html</link><content:encoded>&lt;p&gt;难得的好天气，蚁居在窝里真是总罪过，出去透气了。有图有真相，请小心围观&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;枫叶&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSx5YuDZquUI%2FAAAAAAAAC68%2FoognFBtfHfE%2Fs640%2FIMG_1315.JPG&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;360&quot; /&gt;天气实在好的不行，光线也不错，就是这叶子没选对。&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;竹林&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSx5YuwEeDZI%2FAAAAAAAAC7A%2FTnrfATHjoXo%2Fs640%2FIMG_1317.JPG&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;360&quot; /&gt;穿梭于此，你真的能呼吸到久违的大自然气息&lt;span id=&quot;more-1746&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;alignnone&quot; title=&quot;天空&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSx5YvUpmHUI%2FAAAAAAAAC7E%2F3CPjHyZTLhE%2Fs640%2FIMG_1327.JPG&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;360&quot; /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;从地下电梯走出来，抬头遍见，感觉甚爽&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;树&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSx5Y_vmGeCI%2FAAAAAAAAC7s%2F_1bGwSANQrA%2Fs800%2FIMG_1338.JPG&quot; alt=&quot;&quot; width=&quot;450&quot; height=&quot;800&quot; /&gt;这树红的很显眼，很壮观&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;盆景&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSx5cFyzVTsI%2FAAAAAAAADAw%2FWJMD6AsVn78%2Fs640%2FIMG_1331.JPG&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;360&quot; /&gt;路过竹素园，园里&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;树&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSx5Yv5hwmrI%2FAAAAAAAAC7I%2FQdGE_5jn76A%2Fs640%2FIMG_1329.JPG&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;360&quot; /&gt;也在园里，不过时间有点晚了&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;晚&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSx5ZAP2fzyI%2FAAAAAAAAC7w%2F244MUC5h2Js%2Fs640%2FIMG_1340.JPG&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;360&quot; /&gt;很喜欢这种感觉。&lt;/p&gt;
&lt;p&gt;天气实在好的很，另外可围观自认为很帅的&lt;a href=&quot;http://www.mytcer.com/?p=258&quot;&gt;某人&lt;/a&gt;(长天)的肖像照，再者可围观已被墙的本人&lt;a href=&quot;http://picasaweb.google.com/wlsy638&quot; target=&quot;_blank&quot;&gt;picasa&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799413/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799413/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799413/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799413/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=b599f3a2f45a30b90b402cc0725699be&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=b599f3a2f45a30b90b402cc0725699be&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1746/feed/</wfw:commentRss><slash:comments>4</slash:comments><description>难得的好天气，蚁居在窝里真是总罪过，出去透气了。有图有真相，请小心围观
天气实在好的不行，光线也不错，就是这叶子没选对。
穿梭于此，你真的能呼吸到久违的大自然气息

从地下电梯走出来，抬头遍见，感觉甚爽
这树红的很显眼，很壮观
路过竹素园，园里
也在园里，不过时间有点晚了
很喜欢这种感觉。
天气实在好的很，另外可围观自认为很帅的某人(长天)的肖像照，再者可围观已被墙的本人picasa&lt;img src=&quot;http://www1.feedsky.com/t1/323799413/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799413/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799413/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799413/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=b599f3a2f45a30b90b402cc0725699be&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=b599f3a2f45a30b90b402cc0725699be&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>杭州</category><category>驴行</category><category>活着</category><category>周末</category><pubDate>Tue, 08 Dec 2009 22:29:05 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1746/#comments</comments><guid isPermaLink="false">http://www.g9net.com/?p=1746</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1746/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799413/5355304</fs:itemid></item><item><title>使用CSS3 创建动画效果</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799414/5355304/1/item.html</link><content:encoded>&lt;h3&gt;概述&lt;/h3&gt;
&lt;p&gt;在CSS3中新增了几个很好玩的东东：CSS Animation，CSS Transition 和 CSS Transform，顾名思义就是通过CSS来实现动画，过渡和变形。&lt;/p&gt;
&lt;p&gt;它们与HTML5中的canvas能绘制动画图形不同，这些只能应用在已存在的元素上，但这足以让我很兴奋了，我不必要在去写那些复杂的JS代码，运用它们我能更简单的创建自己的想要的动画。&lt;/p&gt;
&lt;h3&gt;应用前景&lt;/h3&gt;
&lt;p&gt;伴随着CSS3的普及，这些特性被各大浏览器支持也只是时间上的问题。有消息称在Internet Explorer 9 中将更好的支持HTML5和CSS3。所以各位围观群众不必担心这只是昙花一现。以下是我就目前的浏览器支持状态统计的一个表格：&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1740&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;685&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;124&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;
&lt;td width=&quot;98&quot; valign=&quot;top&quot;&gt;IE8 -&lt;/td&gt;
&lt;td width=&quot;159&quot; valign=&quot;top&quot;&gt;chrome&amp;amp;safair&lt;/td&gt;
&lt;td width=&quot;144&quot; valign=&quot;top&quot;&gt;firefox 3.5.5 *(3)&lt;/td&gt;
&lt;td width=&quot;158&quot; valign=&quot;top&quot;&gt;opera 10.10- *(4)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;124&quot; valign=&quot;top&quot;&gt;CSS Transiton&lt;/td&gt;
&lt;td width=&quot;98&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;td width=&quot;159&quot; valign=&quot;top&quot;&gt;O&lt;/td&gt;
&lt;td width=&quot;144&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;td width=&quot;158&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;124&quot; valign=&quot;top&quot;&gt;CSS Animation&lt;/td&gt;
&lt;td width=&quot;98&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;td width=&quot;159&quot; valign=&quot;top&quot;&gt;O&lt;/td&gt;
&lt;td width=&quot;144&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;td width=&quot;158&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;124&quot; valign=&quot;top&quot;&gt;2D Transform&lt;/td&gt;
&lt;td width=&quot;98&quot; valign=&quot;top&quot;&gt;*(1)&lt;/td&gt;
&lt;td width=&quot;159&quot; valign=&quot;top&quot;&gt;O&lt;/td&gt;
&lt;td width=&quot;144&quot; valign=&quot;top&quot;&gt;O&lt;/td&gt;
&lt;td width=&quot;158&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;124&quot; valign=&quot;top&quot;&gt;3D Transform&lt;/td&gt;
&lt;td width=&quot;98&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;td width=&quot;159&quot; valign=&quot;top&quot;&gt;*(2)&lt;/td&gt;
&lt;td width=&quot;144&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;td width=&quot;158&quot; valign=&quot;top&quot;&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;备注：&lt;/strong&gt;&lt;br /&gt;
*(1)：IE可以通过滤镜来实现部分变形&lt;br /&gt;
*(2) : Windows下的chrome和safair支持部分3D Transform。mac和iphone下的safair支持全部3D Transform(未验证)&lt;br /&gt;
*(3)：firefox3.7同IE9一样称将支持更多CSS3特性，不过最终是否支持Animation和3D Transform还不是很确定&lt;br /&gt;
*(4)：oprea已经在表示在Presto2.3(opera内核)中将支持Transtion。可查看&lt;a href=&quot;http://en.wikipedia.org/wiki/Presto_(layout_engine)#History_and_development&quot; target=&quot;_blank&quot;&gt;wiki&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;接下来要开始了，各位看官准备好chrome或safair，演示和代码使用webkit的私有属性，let’s 干吧。&lt;/p&gt;
&lt;h3&gt;CSS Transition&lt;/h3&gt;
&lt;p&gt;这个能实现很舒服的过度效果，先看CSS代码片段：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;.box {&lt;br /&gt;
width: 200px;&lt;br /&gt;
height: 200px;&lt;br /&gt;
background: #ccc;&lt;br /&gt;
-webkit-transition: all 1s ease-in-out; /*实现hover状态是backround的过渡*/&lt;br /&gt;
}&lt;br /&gt;
.box:hover {&lt;br /&gt;
background: #333;&lt;br /&gt;
}&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;你可以在&lt;a href=&quot;http://www.g9net.com/wp-content/uploads/2009/12/ani1.html&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;看到这个演示，务必请用基于webkit的chrome或safair（以下同）。看完演示是不是很有兴趣想去学如何去使用了？transiton属性有这几个值：&lt;/p&gt;
&lt;p&gt;transition-property :* //指定过度的性质，比如transition-property：backgrond 就是只指定backgound参与这个过渡&lt;/p&gt;
&lt;p&gt;transition-duration:*//指定这个过渡的持续时间&lt;/p&gt;
&lt;p&gt;transition-delay:* //延迟过渡时间&lt;/p&gt;
&lt;p&gt;transition-timing-function:*//指定过度类型，有ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt;&lt;strong&gt;小贴士&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt;linear   //线性过度&lt;br /&gt;
ease-in   //由慢到快&lt;br /&gt;
ease-out  //由快到慢&lt;br /&gt;
ease-in-out //由慢到快在到慢&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt;timing-funciton的几种过度类型都是基于cubic-bezier的某些特定数值。比如ease-in-out的类型它也可以写成cubic-bezier(0.42, 0, 0.58, 1.0)。你可以在&lt;a href=&quot;http://www.w3.org/TR/css3-transitions/#transition-timing-function_tag&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;看到 cubic-bezier曲线图&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt;Transiton和下面的Animation都是支持CSS伪类&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt; &lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;同样的，这些我们可以简写，拿上面的代码  -webkit-transition: all 1s ease-in-out; 包含了property , duration ,timing-fuction。&lt;/p&gt;
&lt;p&gt;参考资料：&lt;br /&gt;
&lt;a href=&quot;http://www.w3.org/TR/css3-transitions/#transition-timing-function_tag&quot; target=&quot;_blank&quot;&gt;CSS Transitions Module Level 3&lt;/a&gt; （这个是w3c的官方文档，英语好的可以详细看看）&lt;br /&gt;
&lt;a href=&quot;http://webkit.org/blog/138/css-animation/&quot;&gt;http://webkit.org/blog/138/css-animation/&lt;/a&gt; （这个webkit官方博客上的讲解，也有例子）&lt;/p&gt;
&lt;p&gt;怎么样，赶紧打开编辑器自己写写吧&lt;/p&gt;
&lt;h3&gt;CSS Animation&lt;/h3&gt;
&lt;p&gt;顾名思义，这个就能实现元素的动画效果，那时我就被震惊了，无数次那尼感叹。可以先看下&lt;a href=&quot;http://www.g9net.com/wp-content/uploads/2009/12/ani2.html&quot; target=&quot;_blank&quot;&gt;演示&lt;/a&gt;，代码如下&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;@-webkit-keyframes title {&lt;br /&gt;
0% {&lt;br /&gt;
text-shadow:0px 0px 15px #000;&lt;br /&gt;
}&lt;br /&gt;
50% {&lt;br /&gt;
text-shadow: 0px 0px 30px #3995bd;&lt;br /&gt;
color: #aac7d4;&lt;br /&gt;
margin-top:200px;&lt;br /&gt;
}&lt;br /&gt;
100% {&lt;br /&gt;
text-shadow: 0px 0px 15px #000;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
h1 {&lt;br /&gt;
-webkit-animation: title infinite ease-in-out 3s;&lt;br /&gt;
}&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;animation有这几个属性：&lt;/p&gt;
&lt;p&gt;animation-name//属性名，就是我们定义的keyframes&lt;br /&gt;
animation-duration //持续时间&lt;br /&gt;
animation-timing-function //同上面的transition-timing-function&lt;br /&gt;
animation-delay // 设置动画延迟&lt;br /&gt;
animation-iteration-count //定义循环次数，infinite为无限&lt;br /&gt;
animation-direction //定义动画方式&lt;/p&gt;
&lt;p&gt;这些同样是可以简写的。但真正让我觉的很爽的是keyframes 这个似乎有点象js里面的function，它能定义一个动画的转变过程供调用，过程为0%到100%或from(0%)到to(100%)，简单点说，只要你有想法，你想让元素在这个过程中以什么样的方式改变都是很简单的。&lt;/p&gt;
&lt;p&gt;你是不是已经开始蠢蠢欲动了？&lt;/p&gt;
&lt;p&gt;参考资料：&lt;br /&gt;
&lt;a href=&quot;http://www.w3.org/TR/2009/WD-css3-animations-20090320/&quot;&gt;http://www.w3.org/TR/2009/WD-css3-animations-20090320/&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Transform&lt;/h3&gt;
&lt;p&gt;transform就是实现元素的变形，为什么放到最后？如果跟上面的CSS Animation结合起来是不是更酷呢？先看看这样一个&lt;a href=&quot;http://www.g9net.com/wp-content/uploads/2009/12/ani3.html&quot; target=&quot;_blank&quot;&gt;演示&lt;/a&gt;，相信你不敢相信这只用CSS写出来的效果吧。&lt;/p&gt;
&lt;p&gt;transform有几种类型：&lt;/p&gt;
&lt;p&gt;scale(num,num) //尺寸，scale(2,3)即x轴方向放大两倍，y轴方向放大3被，同样的可单独写scaleX(2),scaleY(3)&lt;/p&gt;
&lt;p&gt;rotate(*deg) //旋转的角度&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt;在2d  transform中 旋转角度俺当前的平面顺时针或逆时针旋转 。在3d transform中新增了 rotateX 和rotateY它们分别以y轴或x轴为中心进行旋转，同样可以简写称rotate(*,*)。目前已被chrome和safair支持&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;skew（*deg）//倾斜角度，同样的有skewX和skewY 可简写为skew（*,*）&lt;/p&gt;
&lt;p&gt;translate //移动&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;span style=&quot;color: #373933; background-color: #ffffff; &quot;&gt;在2d transform中 分为translateX 和translateY 简而言之就是元素网x轴或y轴的移动距离，而在3dtransform中新增了一个translateZ 及实现Z轴的移动，实现透视效果。目前在Windows系统上还没有浏览器支持，同样的这些可以简写。&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;了解完这些用法后在去看看那个演示的源码，相信你肯定会惊叹transform和animation配合的动画效果了吧&lt;/p&gt;
&lt;p&gt;参考资料：&lt;br /&gt;
&lt;a href=&quot;http://www.w3.org/TR/2009/WD-css3-2d-transforms-20090320/&quot;&gt;http://www.w3.org/TR/2009/WD-css3-2d-transforms-20090320/&lt;/a&gt; （w3c文档）&lt;br /&gt;
&lt;a href=&quot;http://webkit.org/blog/386/3d-transforms/&quot;&gt;3D Transforms&lt;/a&gt; （webkit博客上的文章，所以在Windows下没法看到，不过那里有截图过过瘾，并有一个很酷在Windows下打了折扣的&lt;a href=&quot;http://webkit.org/blog-files/3d-transforms/morphing-cubes.html&quot; target=&quot;_blank&quot;&gt;demo&lt;/a&gt;哦）&lt;br /&gt;
&lt;a href=&quot;http://www.zachstronaut.com/lab/isocube.html&quot;&gt;http://www.zachstronaut.com/lab/isocube.html&lt;/a&gt;(这个就是用transfrom实现的立方体)&lt;/p&gt;
&lt;h3&gt;结语&lt;/h3&gt;
&lt;p&gt;看到这些，你是否跟我一样期待HTML5和CSS3的快点普及呢？在运用这些新特性能快速而简单的创建原本需要复杂js来实现的动画效果，这是多么让人兴奋的。&lt;/p&gt;
&lt;p&gt;不过这些还是有那么些缺点的，CSS Animation的确很酷，但不得不提及它的资源占用问题，CSS transform的确很神奇，但不得不提及它的锯齿问题，当然了这些问题相信浏览器的开发者会逐渐改善的。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799414/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799414/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799414/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799414/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=32411f3e81ce08ca9d14bf96efb5d1f7&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=32411f3e81ce08ca9d14bf96efb5d1f7&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1740/feed/</wfw:commentRss><slash:comments>12</slash:comments><description>概述
在CSS3中新增了几个很好玩的东东：CSS Animation，CSS Transition 和 CSS Transform，顾名思义就是通过CSS来实现动画，过渡和变形。
它们与HTML5中的canvas能绘制动画图形不同，这些只能应用在已存在的元素上，但这足以让我很兴奋了，我不必要在去写那些复杂的JS代码，运用它们我能更简单的创建自己的想要的动画。
应用前景
伴随着CSS3的普及，这些特性被各大浏览器支持也只是时间上的问题。有消息称在Internet Explorer 9 中将更好的支持HTML5和CSS3。所以各位围观群众不必担心这只是昙花一现。以下是我就目前的浏览器支持状态统计的一个表格：






IE8 -
chrome&amp;#38;safair
firefox 3.5.5 *(3)
opera 10.10- *(4)


CSS Transiton
X
O
X
X


CSS Animation
X
O
X
X


2D Transform
*(1)
O
O
X


3D Transform
X
*(2)
X
X




备注：
*(1)：IE可以通过滤镜来实现部分变形
*(2) : Windows下的chrome和safair支持部分3D Transform。mac和iphone下的safair支持全部3D Transform(未验证)
*(3)：firefox3.7同IE9一样称将支持更多CSS3特性，不过最终是否支持Animation和3D Transform还不是很确定
*(4)：oprea已经在表示在Presto2.3(opera内核)中将支持Transtion。可查看wiki
接下来要开始了，各位看官准备好chrome或safair，演示和代码使用webkit的私有属性，let’s 干吧。
CSS Transition
这个能实现很舒服的过度效果，先看CSS代码片段：
.box {
width: 200px;
height: 200px;
background: #ccc;
-webkit-transition: all 1s ease-in-out; /*实现hover状态是backround的过渡*/
}
.box:hover {
background: #333;
}
你可以在这里看到这个演示，务必请用基于webkit的chrome或safair（以下同）。看完演示是不是很有兴趣想去学如何去使用了？transiton属性有这几个值：
transition-property :* //指定过度的性质，比如transition-property：backgrond 就是只指定backgound参与这个过渡
transition-duration:*//指定这个过渡的持续时间
transition-delay:* //延迟过渡时间
transition-timing-function:*//指定过度类型，有ease &amp;#124; linear &amp;#124; ease-in &amp;#124; ease-out &amp;#124; ease-in-out &amp;#124; cubic-bezier
小贴士
linear   //线性过度
ease-in   //由慢到快
ease-out  //由快到慢
ease-in-out //由慢到快在到慢
timing-funciton的几种过度类型都是基于cubic-bezier的某些特定数值。比如ease-in-out的类型它也可以写成cubic-bezier(0.42, 0, 0.58, [...]&lt;img src=&quot;http://www1.feedsky.com/t1/323799414/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799414/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799414/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799414/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=32411f3e81ce08ca9d14bf96efb5d1f7&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=32411f3e81ce08ca9d14bf96efb5d1f7&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Web前端</category><category>transform</category><category>transition</category><category>animation</category><category>css3</category><pubDate>Sun, 06 Dec 2009 22:35:23 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1740/#comments</comments><guid isPermaLink="false">http://www.g9net.com/2009/12/06/css3-animation-transform-transition.html</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1740/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799414/5355304</fs:itemid></item><item><title>在wordpress非安装目录调用其函数</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799415/5355304/1/item.html</link><content:encoded>&lt;p&gt;其实问题很简单，假设wordprees安装到非根目录文件夹下，那如果在不同站点下如果调用其最新文章呢？在纠结了很久我先想到了几个方法：&lt;/p&gt;
&lt;p&gt;方法一：通过js来调用它的RSS输出，然后在其他站点引入这个js。&lt;/p&gt;
&lt;p&gt;我没写过原生的效果，不过有很多可以这样调用的方法，比如可以利用google ajax api中的 &lt;a href=&quot;http://code.google.com/apis/ajaxfeeds/&quot; target=&quot;_blank&quot;&gt;feed api&lt;/a&gt;来实现，利用feedsky来烧录RSS然后调用。我试用了其中但还是感觉很不爽，一来需要依托第三方，再者修改也很不方便，不能按照自己的需求进行更改。好吧，这种方法先作罢。&lt;/p&gt;
&lt;p&gt;方法二：直接用php取数据库内容然后调用。&lt;span id=&quot;more-1725&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;这种方法很灵活应用也很广泛，好一段时间纠结在写这个效果，对高手来说很简单，但俺是新手哈哈。在长天的帮助下初步完成，那哥们事后也写了篇&lt;a href=&quot;http://blog.163.com/thinker_creator&quot; target=&quot;_self&quot;&gt;MYSQL常用命令&lt;/a&gt;温故知新。&lt;/p&gt;
&lt;p&gt;其中有几个问题总结：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;在数据库库关联查询中直接查询的方式要比join的方式的效率高。&lt;/li&gt;
&lt;li&gt;在匹配关联查询时类型一定要一样（我就犯了这么一个低级错误。。）&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;似乎问题已经解决了，但总感觉很不优雅，wordpress提供了那么多帅气又好用的函数难道就不能用吗？&lt;/p&gt;
&lt;p&gt;方法三：调用wordpress自身函数&lt;/p&gt;
&lt;p&gt;在此之前一直很纠结。无意间打开wordpress根目录下的index.php，发现它是一个文件套着一个文件，那是否我在非安装目录是只要引用到index.php那就可以调用其的函数呢？具体这样来：&lt;/p&gt;
&lt;p&gt;在wordpress函数之前引入&amp;lt;?php require(&amp;#8216;/你的wp安装目录/wp-blog-header.php&amp;#8217;); ?&amp;gt; 。这段代码也是index.php的主要代码。比如你要在非安装目录调用其最新文章。就可以初步这样来写：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&amp;lt;?php require(&amp;#8216;/blog/wp-blog-header.php&amp;#8217;); ?&amp;gt; //引入wp-blog-header.php&lt;/p&gt;
&lt;p&gt;&amp;lt;?php get_archives(&amp;#8216;postbypost&amp;#8217;, 10); ?&amp;gt;//wp 自带调用最新10篇文章&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;结果也就是我想要的，有了这个办法，以后就可以灵活应用wordpress了～&lt;/p&gt;
&lt;p&gt;PS:好久没更新了，最近生活比较波折。现在慢慢好起来了，哪天把博客改版下嘿嘿。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799415/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799415/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799415/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799415/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=cabd59c0c234410838f050341c373c36&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=cabd59c0c234410838f050341c373c36&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1725/feed/</wfw:commentRss><slash:comments>15</slash:comments><description>其实问题很简单，假设wordprees安装到非根目录文件夹下，那如果在不同站点下如果调用其最新文章呢？在纠结了很久我先想到了几个方法：
方法一：通过js来调用它的RSS输出，然后在其他站点引入这个js。
我没写过原生的效果，不过有很多可以这样调用的方法，比如可以利用google ajax api中的 feed api来实现，利用feedsky来烧录RSS然后调用。我试用了其中但还是感觉很不爽，一来需要依托第三方，再者修改也很不方便，不能按照自己的需求进行更改。好吧，这种方法先作罢。
方法二：直接用php取数据库内容然后调用。
这种方法很灵活应用也很广泛，好一段时间纠结在写这个效果，对高手来说很简单，但俺是新手哈哈。在长天的帮助下初步完成，那哥们事后也写了篇MYSQL常用命令温故知新。
其中有几个问题总结：

在数据库库关联查询中直接查询的方式要比join的方式的效率高。
在匹配关联查询时类型一定要一样（我就犯了这么一个低级错误。。）

似乎问题已经解决了，但总感觉很不优雅，wordpress提供了那么多帅气又好用的函数难道就不能用吗？
方法三：调用wordpress自身函数
在此之前一直很纠结。无意间打开wordpress根目录下的index.php，发现它是一个文件套着一个文件，那是否我在非安装目录是只要引用到index.php那就可以调用其的函数呢？具体这样来：
在wordpress函数之前引入&amp;#60;?php require(&amp;#8216;/你的wp安装目录/wp-blog-header.php&amp;#8217;); ?&amp;#62; 。这段代码也是index.php的主要代码。比如你要在非安装目录调用其最新文章。就可以初步这样来写：
&amp;#60;?php require(&amp;#8216;/blog/wp-blog-header.php&amp;#8217;); ?&amp;#62; //引入wp-blog-header.php
&amp;#60;?php get_archives(&amp;#8216;postbypost&amp;#8217;, 10); ?&amp;#62;//wp 自带调用最新10篇文章
结果也就是我想要的，有了这个办法，以后就可以灵活应用wordpress了～
PS:好久没更新了，最近生活比较波折。现在慢慢好起来了，哪天把博客改版下嘿嘿。&lt;img src=&quot;http://www1.feedsky.com/t1/323799415/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799415/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799415/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799415/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=cabd59c0c234410838f050341c373c36&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=cabd59c0c234410838f050341c373c36&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>wordpress</category><category>PHP</category><pubDate>Wed, 21 Oct 2009 00:17:16 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1725/#comments</comments><guid isPermaLink="false">http://www.g9net.com/?p=1725</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1725/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799415/5355304</fs:itemid></item><item><title>结束与开始</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799416/5355304/1/item.html</link><content:encoded>&lt;p&gt;懒了将近一个月了，在不写我脑袋估计会钝掉了。&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px&quot; title=&quot;1181183120124-3&quot; src=&quot;http://www.g9net.com/wp-content/uploads/2009/08/118118312012431.jpg&quot; border=&quot;0&quot; alt=&quot;1181183120124-3&quot;  /&gt;&lt;/p&gt;
&lt;p&gt;话说一个月前在送走同学离开学校的时候，童鞋这个词就不再与我有任何瓜葛了。回想四年大学生活不过转瞬，或多或少都有值得记忆的，后悔当时没在床前暗藏玄机，或者留下诸如”长夜漫漫，无心睡眠请拨打×××”之类的联系方式来促进与学弟学妹的交流沟通。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1707&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;印象最深的估计就是地震了，离校的前一天的三更半夜又给我来了一个刺激的，眯着眼睛就下意识的往床下跳，片刻之后便听到整个宿舍区的喧哗声，不过相比去年512的那次，喧哗中少了恐惧。到现在我都有一些后遗症，每次躺在床上时一有摇晃就特别敏感。。&lt;/p&gt;
&lt;p&gt;当当然最忘不了第一次吃的那个牛肉盖浇饭，那滋味到现在都回味无穷，虽然已经过了三四年了。那牛肉，那浓汤（专业术语或许可说“羹”）铺在一大碗的的饭上，微微的冒着热气夹杂着香味扑面而来，拿上汤勺舀一口饭，浓汤慢慢裹住饭粒，那牛肉摇着它的身躯使你完全没有办法拒绝它啊，咬伤一口，啊。我受不了了，我简直无法用语言来形容，啊×n，你能想他有多好吃就有多好吃，关键的是一份才6快啊！&lt;/p&gt;
&lt;p&gt;大四之前的学校旁有条小吃街，也就是同学们不能忍受学校食堂的”猪食“在万众期盼中孕育而生的。不过虽然深受我们的喜爱，但是那帮连春哥都惧怕的城管却红了眼，幸运的话你能在五分之内看到一条街从人山人海到空无一人的盛况。不论小贩们在做什么只要听到一句”城管来了“就好象仇家或债主来了。话说有一次，几个同学在小吃街吃饭喝酒甚欢，几分钟骚动后转头准备结帐付款面对空荡荡的街找寻不到老板了。。。。&lt;/p&gt;
&lt;p&gt;恨自己学了四年还没学成型的川话，话说刚进大学也就是从瓜娃子开始学起，不过却养成了特别喜欢听成都女娃讲川话，甜而不腻，又酥又麻，没有刻意的腔调让你听着很舒服。&lt;/p&gt;
&lt;p&gt;四年要写的太多了，真的要我写的话这篇文章我估计可以写四年。对于留恋来说唯一寄托希望的就是再见了。再见了信息安全的同学们。再见了大学里朋友们。再见了的操场，哈哈大二大三晚上每天晚上都被我践踏。再见了三个食堂，我到现在都觉得它们的名字取得很有创意，分别为：晨曦，正阳和霞光。再见了四川。再见了传说中的四川的美女一半在成都，成都的美女一般在川师（四川师范大学）的川师。再见了那个买牛肉盖浇饭的老板（含泪）。再见了那些暗恋我的而我又不知道的人。。。&lt;/p&gt;
&lt;p&gt;整个7月份注定要忙于生活了，来杭州了除了每次苦苦寻找传说的盖浇饭而又每次让我失望的同时就是呆在住的地方等通知面试通知面试了。最后很幸运我能在&lt;a href=&quot;http://ued.taobao.com/blog/&quot;&gt;淘宝UED&lt;/a&gt;来开始我的另一个开始，在此也要特别感谢&lt;a href=&quot;http://lifesinger.org/blog/&quot;&gt;玉伯&lt;/a&gt;。在面对不可知的未来，我必须重新规划和审视自己了。加油～。&lt;/p&gt;
&lt;p&gt;最后附赠一张非专业人士拍的7月日全食照片&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px&quot; src=&quot;http://www.g9net.com/wp-content/uploads/2009/08/IMG_0679.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;  /&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799416/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799416/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799416/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799416/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=f869ececca3b91b45b8debfb1fe63d23&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=f869ececca3b91b45b8debfb1fe63d23&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1707/feed/</wfw:commentRss><slash:comments>38</slash:comments><description>懒了将近一个月了，在不写我脑袋估计会钝掉了。

话说一个月前在送走同学离开学校的时候，童鞋这个词就不再与我有任何瓜葛了。回想四年大学生活不过转瞬，或多或少都有值得记忆的，后悔当时没在床前暗藏玄机，或者留下诸如”长夜漫漫，无心睡眠请拨打×××”之类的联系方式来促进与学弟学妹的交流沟通。

印象最深的估计就是地震了，离校的前一天的三更半夜又给我来了一个刺激的，眯着眼睛就下意识的往床下跳，片刻之后便听到整个宿舍区的喧哗声，不过相比去年512的那次，喧哗中少了恐惧。到现在我都有一些后遗症，每次躺在床上时一有摇晃就特别敏感。。
当当然最忘不了第一次吃的那个牛肉盖浇饭，那滋味到现在都回味无穷，虽然已经过了三四年了。那牛肉，那浓汤（专业术语或许可说“羹”）铺在一大碗的的饭上，微微的冒着热气夹杂着香味扑面而来，拿上汤勺舀一口饭，浓汤慢慢裹住饭粒，那牛肉摇着它的身躯使你完全没有办法拒绝它啊，咬伤一口，啊。我受不了了，我简直无法用语言来形容，啊×n，你能想他有多好吃就有多好吃，关键的是一份才6快啊！
大四之前的学校旁有条小吃街，也就是同学们不能忍受学校食堂的”猪食“在万众期盼中孕育而生的。不过虽然深受我们的喜爱，但是那帮连春哥都惧怕的城管却红了眼，幸运的话你能在五分之内看到一条街从人山人海到空无一人的盛况。不论小贩们在做什么只要听到一句”城管来了“就好象仇家或债主来了。话说有一次，几个同学在小吃街吃饭喝酒甚欢，几分钟骚动后转头准备结帐付款面对空荡荡的街找寻不到老板了。。。。
恨自己学了四年还没学成型的川话，话说刚进大学也就是从瓜娃子开始学起，不过却养成了特别喜欢听成都女娃讲川话，甜而不腻，又酥又麻，没有刻意的腔调让你听着很舒服。
四年要写的太多了，真的要我写的话这篇文章我估计可以写四年。对于留恋来说唯一寄托希望的就是再见了。再见了信息安全的同学们。再见了大学里朋友们。再见了的操场，哈哈大二大三晚上每天晚上都被我践踏。再见了三个食堂，我到现在都觉得它们的名字取得很有创意，分别为：晨曦，正阳和霞光。再见了四川。再见了传说中的四川的美女一半在成都，成都的美女一般在川师（四川师范大学）的川师。再见了那个买牛肉盖浇饭的老板（含泪）。再见了那些暗恋我的而我又不知道的人。。。
整个7月份注定要忙于生活了，来杭州了除了每次苦苦寻找传说的盖浇饭而又每次让我失望的同时就是呆在住的地方等通知面试通知面试了。最后很幸运我能在淘宝UED来开始我的另一个开始，在此也要特别感谢玉伯。在面对不可知的未来，我必须重新规划和审视自己了。加油～。
最后附赠一张非专业人士拍的7月日全食照片&lt;img src=&quot;http://www1.feedsky.com/t1/323799416/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799416/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799416/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799416/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=f869ececca3b91b45b8debfb1fe63d23&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=f869ececca3b91b45b8debfb1fe63d23&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>淘宝</category><category>活着</category><pubDate>Wed, 05 Aug 2009 00:44:53 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1707/#comments</comments><guid isPermaLink="false">http://www.g9net.com/2009/08/05/and-the-beginning-of-the-end-of.html</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1707/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799416/5355304</fs:itemid></item><item><title>有关web前端中的语义化</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799417/5355304/1/item.html</link><content:encoded>&lt;p&gt;作天在变卖大学书籍时也不晓得怎么的就想起语义化这个概念，于是乎也就花点时间搞搞它。语义化标记对于刚学web前端脚本语言的童鞋来说往往都没太在意，哇哈哈，其实我也就算只比较老的菜鸟而已，本文不是说教，只是分享有关语义化的一些东西。&lt;/p&gt;
&lt;p&gt; &lt;span id=&quot;more-1684&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;那什么是语义化呢？&lt;/h4&gt;
&lt;p&gt;首先抽象的说下语义（Semantic）的概念：“语义可以简单地看作是数据所对应的现实世界中的事物所代表的概念的含义，以及这些含义之间的关系，是数据在某个领域上的解释和逻辑表示。”娘的，太抽象了。其实在那个用4000W打造的超级防猥琐的绿坝就有个叫语义分析的功能，如果发现不健康信息，立马对其进行关闭，哼哼。&lt;/p&gt;
&lt;p&gt;通过强大的拆字我们可以简单的理解它为：用特定的语言来定义特定的事物。在web前端中语义化标记也可以这样理解。&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkY-tKQ-BRI%2FAAAAAAAACuA%2Fl5AfR1KITYA%2Fsdfasgsdf.png?imgmax=800&quot; /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;绿坝它全家靓照&lt;/p&gt;
&lt;h4&gt;你是不是特别特别喜欢div标签？&lt;/h4&gt;
&lt;p&gt;在刚开始学习web前端时想必你肯定听说div+css布局，说的那是如此好如此妙如此呱呱叫，于是乎你就div+css了，div套div，div何其多，去w3c验证发现还能通过，仰天长呼，so easy，so easy。&lt;/p&gt;
&lt;p&gt;然而堂堂的(X)HTML就一个div标签？答案肯定不是，那其他的标签是不是没有用？答案更不是。任何事物存在亦有它的价值所在滴。在初学XHTML时，我曾经犯了一个很傻的错误，在定义几个行列表项时我是这样写的：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;list&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;虫下米&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;wlsy&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;虫下米wlsy合体&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;你别笑，我当时真的是这样写的，只不过其中的文字记不清了，写完后发现在浏览器中是我想要的结果也就认为代码是正确的。代码是正确的吗？代码当然是正确的但是不规范。在XHTML中有个专门定义列表的标签ul（无序列表），ol（有序列表），dl（定义列表）。所以更加规范，更加有语义的我们可以这样写：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;list&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;虫下米&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;wlsy&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;虫下米wlsy合体&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;在学习XHTML时，应尽量能够熟悉有定义到的标签，并在特定的内容加以应用，比如我们可以用strong(用strong来替代b)标签来强调内容，用Hx(h1,h2…..)来定义标题等等。我可以吐血奉献我搜刮到一些资源：&lt;a href=&quot;http://csstidy.sourceforge.net/xhtml.php&quot; target=&quot;_blank&quot;&gt;XHTML Cheat Sheet&lt;/a&gt;（这是常用的XHTML标签表格，可以下下来看，不过是英文的），&lt;a href=&quot;http://www.w3school.com.cn/tags/index.asp&quot; target=&quot;_blank&quot;&gt;HTML 4.01 / XHTML 1.0 参考手册&lt;/a&gt;（这里面有标签的详细用而且还配有实例），在早些时候我有写过一篇：&lt;a href=&quot;http://www.g9net.com/2009/03/07/several-less-common-x-html-tags.html&quot; target=&quot;_blank&quot;&gt;几个不太常见的(X)HTML标签&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;另外关于语义化标签蓝色理想上有篇帖子很不错：&lt;a href=&quot;http://bbs.blueidea.com/thread-2658231-1-1.html&quot;&gt;http://bbs.blueidea.com/thread-2658231-1-1.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;所以呢相对于叫div+CSS布局，我更喜欢叫做(X)HTML+CSS布局。&lt;/p&gt;
&lt;h4&gt;结构命名中的语义化&lt;/h4&gt;
&lt;p&gt;这里说的结构就是就是我们平常编写的XHTML代码，而命名就是我们为id或class所取的名称。&lt;/p&gt;
&lt;p&gt;有个例子是这样的，你是不是有时会类似这样来写代码（代码比较粗糙演示用）：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;left&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;今天是个好天气呀&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;right&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;我的一些照片&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;CSS代码：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;#&lt;span style=&quot;color: #0000ff&quot;&gt;left&lt;/span&gt;{&lt;span style=&quot;color: #0000ff&quot;&gt;float&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;left;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;display&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;inline;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;50%;&lt;/span&gt;}&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;#&lt;span style=&quot;color: #0000ff&quot;&gt;right&lt;/span&gt;{&lt;span style=&quot;color: #0000ff&quot;&gt;float&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;right;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;display&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;inline;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;49%;&lt;/span&gt;}&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;但是某天我突然闲着没事想换个布局来增加新鲜感，比如对掉左右边的内容，那么我仅仅要在CSS里面这样改：&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;#&lt;span style=&quot;color: #0000ff&quot;&gt;left&lt;/span&gt;{&lt;span style=&quot;color: #0000ff&quot;&gt;float&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;right;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;display&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;inline;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;50%;&lt;/span&gt;}&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;#&lt;span style=&quot;color: #0000ff&quot;&gt;right&lt;/span&gt;{&lt;span style=&quot;color: #0000ff&quot;&gt;float&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;left;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;display&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;inline;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;49%;&lt;/span&gt;}&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;结果呈现的效果确实是你想要的，但是为其id命名是不是违背的你的原意？你原本命名id=“left”的div内容的意思就是要在左边显示，而现在却显示在右边了。虽然结果是你想要的，但是命名好像很别扭的跟你做对。所以如果要对其进行语义化的命名我们可以这样来：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;content&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;今天是个好天气&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;sidebar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;我的一些照片&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;这样命名为content就是内容，命名为sidebar就是边栏，管它上窜下跳，左躲右藏，命名内容块始终为包含内容，命名边栏块也始终包含边栏。这个例子就是语义化命名的实例，很好理解吧。&lt;/p&gt;
&lt;p&gt;看看我是怎么给自己的网站结构命名的：&lt;img title=&quot;虫下米的命名&quot; alt=&quot;虫下米的命名&quot; src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkZaF2kyeVI%2FAAAAAAAACuI%2FgGFFdgRrbds%2Fsdggfsdadsf.png?imgmax=800&quot; /&gt;&amp;#160; &lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;结构命名为常用的英文单词，多词之前用-来分割。因为是个人博客所以命名也就没什么其他特殊要求了。如果想看看其他的网站的命名推荐各位用firebug，这是在Firefox的一个插件，能很方面的查看，修改和调试代码。&lt;/p&gt;
&lt;p&gt;这里有一些有用的文章能够让你更加理解结构命名中的语义化：&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://blog.bingo929.com/css-coding-semantic-naming.html&quot; target=&quot;_blank&quot;&gt;CSS类命名的语义化VS结构化方式&lt;/a&gt;（这篇文章有很好的配图帮助你理解语义化命名）&lt;/p&gt;
&lt;h4&gt;语义化有什么优势吗？&lt;/h4&gt;
&lt;p&gt;当你写完代码后在浏览器调试，如果呈现的结果是你想要的，你是不是就不会再去检查你的代码了呢？访客能看到浏览器解析后的实际页面，但是你想过流量的另一个重要来源：搜索引擎吗？&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;语义化更有利于SEO&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;有个很常见的例子是这样的：在初学SEO的时候你是不是经常用h1来突出你的标题，用strong来突出你的关键字，或许你不太在意，但这确实是语义化的体现。就目前的搜索引擎来说并不能想访客那样很直观的去查看网页，它只有分析的你源码来体现或猜测网站要表达的内容。比如你想表达某篇文章的标题，你或许会这样写：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;title&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;文章的标题&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;访客或许能理解你的意思，但搜索引擎就要反复揣摩了，更好的讨好搜索引擎我们可以这样来写：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;这是标题&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;小提示：h1拥有最高的权值，在一个页面中最好指使用1个h1来突出你的内容，太多的h1会分散其整个页面的权重，对搜索引擎也是非常的不友好。&lt;/p&gt;
&lt;p&gt;当然语义化还有其他优势：&lt;/p&gt;
&lt;p&gt;正如上面那个例子，语义化的代码更小，下载也就更快了。另外语义化代码也能够更加快速的帮助新的前端工程师理解你的代码。语义化代码也更能帮助视障的人通过设备来理解你的内容等等。当当然语义化代码也是你能力的体现。&lt;/p&gt;
&lt;p&gt;一些资料：&lt;a href=&quot;http://boagworld.com/technology/semantic-code-what-why-how&quot;&gt;semantic code: what? why? how?&lt;/a&gt;，&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cssnewbie.com/4-ways-css-can-improve-your-seo/&quot;&gt;4 Ways CSS Can Improve Your SEO&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;语义化的更高体现-微格式&lt;/h4&gt;
&lt;p&gt;什么是微格式呢？维基百科这样给它定义的：&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;微格式（Microformat），是通过语意相关让内容人机可读。网页上的允许的微格式数据包括事件、人物、地点等，它可以被其他的软件检测到，并提取出相应的信息，以及对信息进行索引、搜索、跨平台的参考，把这些信息以其他形式重复使用或组合。&lt;/p&gt;
&lt;p&gt;从技术上来说，这些数据是一些语义标记，用标准的(X)HTML中的class名称设置。他是开放、可用、自由的，可以被任何人使用。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;维基百科上还有一个实例我就不贴了，你可以到&lt;a href=&quot;http://zh.wikipedia.org/w/index.php?title=微格式&amp;amp;variant=zh-cn&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;看到。&lt;/p&gt;
&lt;p&gt;在往后，当搜索引擎越来越重视微格式，在你的网站上应用微格式肯定会为你加分不少。在应用和推广微格式上面，我觉得wordpress做的非常的好，在之前应用了诸如：rel=”tag”，rel=”nofollow”,rel=”license”后，在升级到wordpress2.8后我发现它在header处新增了这几个：&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkcmgKsl2YI%2FAAAAAAAACuM%2FnC03Wo2LTe8%2Fdgdsfadsf.png?imgmax=800&quot; /&gt; &lt;/p&gt;
&lt;p&gt;根据字面意就是帮助搜索引擎理解本页的主页，开始页，上一篇和下一篇。不过目前有些微格式还处于草案当中，并不能确保它在最后时还在。要想关注微格式你可以看看它的&lt;a href=&quot;http://microformats.org&quot; target=&quot;_blank&quot;&gt;官方网站&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;微格式还有个很经典的例子就是名片的应用，它也就是通过一些很有语义的标记来描述个人信息，如果你想折腾微格式还是有得折腾的，为了避免篇幅过长下面给出写有用的了链接方便有兴趣的继续折腾。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.ued163.com/?p=470&quot;&gt;微格式全功略Hcard、hCalendar、hReview、XFN 轻松掌握&lt;/a&gt;（这几个微格式也就是主要来体现个人信息，这篇来自ued163）。这里也还有一系列的翻译译文&lt;a title=&quot;http://www.mijia.org/blog/?p=152&quot; href=&quot;http://www.mijia.org/blog/?p=152&quot;&gt;http://www.mijia.org/blog/?p=152&lt;/a&gt;能够帮助你很好的理解微格式。&lt;/p&gt;
&lt;p&gt;end～&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799417/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799417/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799417/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799417/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=3879cfe9e0c97b3c574c34e3b61dcc16&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=3879cfe9e0c97b3c574c34e3b61dcc16&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1684/feed/</wfw:commentRss><slash:comments>29</slash:comments><description>作天在变卖大学书籍时也不晓得怎么的就想起语义化这个概念，于是乎也就花点时间搞搞它。语义化标记对于刚学web前端脚本语言的童鞋来说往往都没太在意，哇哈哈，其实我也就算只比较老的菜鸟而已，本文不是说教，只是分享有关语义化的一些东西。
 
那什么是语义化呢？
首先抽象的说下语义（Semantic）的概念：“语义可以简单地看作是数据所对应的现实世界中的事物所代表的概念的含义，以及这些含义之间的关系，是数据在某个领域上的解释和逻辑表示。”娘的，太抽象了。其实在那个用4000W打造的超级防猥琐的绿坝就有个叫语义分析的功能，如果发现不健康信息，立马对其进行关闭，哼哼。
通过强大的拆字我们可以简单的理解它为：用特定的语言来定义特定的事物。在web前端中语义化标记也可以这样理解。
 
绿坝它全家靓照
你是不是特别特别喜欢div标签？
在刚开始学习web前端时想必你肯定听说div+css布局，说的那是如此好如此妙如此呱呱叫，于是乎你就div+css了，div套div，div何其多，去w3c验证发现还能通过，仰天长呼，so easy，so easy。
然而堂堂的(X)HTML就一个div标签？答案肯定不是，那其他的标签是不是没有用？答案更不是。任何事物存在亦有它的价值所在滴。在初学XHTML时，我曾经犯了一个很傻的错误，在定义几个行列表项时我是这样写的：


&amp;#60;div id=&amp;#34;list&amp;#34;&amp;#62;
虫下米&amp;#60;br /&amp;#62;
wlsy&amp;#60;br /&amp;#62;
虫下米wlsy合体&amp;#60;br /&amp;#62;
&amp;#60;/div&amp;#62;


你别笑，我当时真的是这样写的，只不过其中的文字记不清了，写完后发现在浏览器中是我想要的结果也就认为代码是正确的。代码是正确的吗？代码当然是正确的但是不规范。在XHTML中有个专门定义列表的标签ul（无序列表），ol（有序列表），dl（定义列表）。所以更加规范，更加有语义的我们可以这样写：


&amp;#60;ul id=&amp;#34;list&amp;#34;&amp;#62;
&amp;#60;li&amp;#62;虫下米&amp;#60;/li&amp;#62;
&amp;#60;li&amp;#62;wlsy&amp;#60;/li&amp;#62;
&amp;#60;li&amp;#62;虫下米wlsy合体&amp;#60;/li&amp;#62;
&amp;#60;/ul&amp;#62;


在学习XHTML时，应尽量能够熟悉有定义到的标签，并在特定的内容加以应用，比如我们可以用strong(用strong来替代b)标签来强调内容，用Hx(h1,h2…..)来定义标题等等。我可以吐血奉献我搜刮到一些资源：XHTML Cheat Sheet（这是常用的XHTML标签表格，可以下下来看，不过是英文的），HTML 4.01 / XHTML 1.0 参考手册（这里面有标签的详细用而且还配有实例），在早些时候我有写过一篇：几个不太常见的(X)HTML标签。
另外关于语义化标签蓝色理想上有篇帖子很不错：http://bbs.blueidea.com/thread-2658231-1-1.html
所以呢相对于叫div+CSS布局，我更喜欢叫做(X)HTML+CSS布局。
结构命名中的语义化
这里说的结构就是就是我们平常编写的XHTML代码，而命名就是我们为id或class所取的名称。
有个例子是这样的，你是不是有时会类似这样来写代码（代码比较粗糙演示用）：


&amp;#60;div id=&amp;#34;left&amp;#34;&amp;#62;
&amp;#60;p&amp;#62;今天是个好天气呀&amp;#60;/&amp;#62;
&amp;#60;/div&amp;#62;
&amp;#60;div id=&amp;#34;right&amp;#34;&amp;#62;
&amp;#60;p&amp;#62;我的一些照片&amp;#60;/p&amp;#62;
&amp;#60;/div&amp;#62;


CSS代码：


#left{float:left;display:inline;width:50%;}
#right{float:right;display:inline;width:49%;}


但是某天我突然闲着没事想换个布局来增加新鲜感，比如对掉左右边的内容，那么我仅仅要在CSS里面这样改：


#left{float:right;display:inline;width:50%;}
#right{float:left;display:inline;width:49%;}


结果呈现的效果确实是你想要的，但是为其id命名是不是违背的你的原意？你原本命名id=“left”的div内容的意思就是要在左边显示，而现在却显示在右边了。虽然结果是你想要的，但是命名好像很别扭的跟你做对。所以如果要对其进行语义化的命名我们可以这样来：


&amp;#60;div id=&amp;#34;content&amp;#34;&amp;#62;
&amp;#60;p&amp;#62;今天是个好天气&amp;#60;/p&amp;#62;
&amp;#60;/div&amp;#62;
&amp;#60;div id=&amp;#34;sidebar&amp;#34;&amp;#62;
&amp;#60;p&amp;#62;我的一些照片&amp;#60;/p&amp;#62;
&amp;#60;/div&amp;#62;


这样命名为content就是内容，命名为sidebar就是边栏，管它上窜下跳，左躲右藏，命名内容块始终为包含内容，命名边栏块也始终包含边栏。这个例子就是语义化命名的实例，很好理解吧。
看看我是怎么给自己的网站结构命名的：&amp;#160; 

结构命名为常用的英文单词，多词之前用-来分割。因为是个人博客所以命名也就没什么其他特殊要求了。如果想看看其他的网站的命名推荐各位用firebug，这是在Firefox的一个插件，能很方面的查看，修改和调试代码。
这里有一些有用的文章能够让你更加理解结构命名中的语义化：
CSS类命名的语义化VS结构化方式（这篇文章有很好的配图帮助你理解语义化命名）
语义化有什么优势吗？
当你写完代码后在浏览器调试，如果呈现的结果是你想要的，你是不是就不会再去检查你的代码了呢？访客能看到浏览器解析后的实际页面，但是你想过流量的另一个重要来源：搜索引擎吗？
语义化更有利于SEO
有个很常见的例子是这样的：在初学SEO的时候你是不是经常用h1来突出你的标题，用strong来突出你的关键字，或许你不太在意，但这确实是语义化的体现。就目前的搜索引擎来说并不能想访客那样很直观的去查看网页，它只有分析的你源码来体现或猜测网站要表达的内容。比如你想表达某篇文章的标题，你或许会这样写：


&amp;#60;div id=&amp;#34;title&amp;#34;&amp;#62;文章的标题&amp;#60;/div&amp;#62;


访客或许能理解你的意思，但搜索引擎就要反复揣摩了，更好的讨好搜索引擎我们可以这样来写：


&amp;#60;h1&amp;#62;这是标题&amp;#60;/h1&amp;#62;


小提示：h1拥有最高的权值，在一个页面中最好指使用1个h1来突出你的内容，太多的h1会分散其整个页面的权重，对搜索引擎也是非常的不友好。
当然语义化还有其他优势：
正如上面那个例子，语义化的代码更小，下载也就更快了。另外语义化代码也能够更加快速的帮助新的前端工程师理解你的代码。语义化代码也更能帮助视障的人通过设备来理解你的内容等等。当当然语义化代码也是你能力的体现。
一些资料：semantic code: what? why? how?，
4 Ways CSS Can Improve Your SEO
语义化的更高体现-微格式
什么是微格式呢？维基百科这样给它定义的：

微格式（Microformat），是通过语意相关让内容人机可读。网页上的允许的微格式数据包括事件、人物、地点等，它可以被其他的软件检测到，并提取出相应的信息，以及对信息进行索引、搜索、跨平台的参考，把这些信息以其他形式重复使用或组合。
从技术上来说，这些数据是一些语义标记，用标准的(X)HTML中的class名称设置。他是开放、可用、自由的，可以被任何人使用。

维基百科上还有一个实例我就不贴了，你可以到这里看到。
在往后，当搜索引擎越来越重视微格式，在你的网站上应用微格式肯定会为你加分不少。在应用和推广微格式上面，我觉得wordpress做的非常的好，在之前应用了诸如：rel=”tag”，rel=”nofollow”,rel=”license”后，在升级到wordpress2.8后我发现它在header处新增了这几个：
 
根据字面意就是帮助搜索引擎理解本页的主页，开始页，上一篇和下一篇。不过目前有些微格式还处于草案当中，并不能确保它在最后时还在。要想关注微格式你可以看看它的官方网站
微格式还有个很经典的例子就是名片的应用，它也就是通过一些很有语义的标记来描述个人信息，如果你想折腾微格式还是有得折腾的，为了避免篇幅过长下面给出写有用的了链接方便有兴趣的继续折腾。
微格式全功略Hcard、hCalendar、hReview、XFN 轻松掌握（这几个微格式也就是主要来体现个人信息，这篇来自ued163）。这里也还有一系列的翻译译文http://www.mijia.org/blog/?p=152能够帮助你很好的理解微格式。
end～&lt;img src=&quot;http://www1.feedsky.com/t1/323799417/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799417/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799417/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799417/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=3879cfe9e0c97b3c574c34e3b61dcc16&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=3879cfe9e0c97b3c574c34e3b61dcc16&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Web前端</category><category>语义化</category><pubDate>Sun, 28 Jun 2009 17:35:16 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1684/#comments</comments><guid isPermaLink="false">http://www.g9net.com/2009/06/28/related-to-the-semantic-web-front-end-of.html</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1684/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799417/5355304</fs:itemid></item><item><title>稻城亚丁旅行记录</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799418/5355304/1/item.html</link><content:encoded>&lt;p&gt;前言：没啥说的，看图说话吧。&lt;/p&gt;
&lt;p&gt;第一天&lt;/p&gt;
&lt;p&gt;从成都出发到康定城，然后晚上泡温泉，泡的人都要萎缩了。。&lt;/p&gt;
&lt;p&gt;第二天&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1682&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkBoP0K0oCI%2FAAAAAAAACZQ%2FU1AiUgZdW9w%2Fs640%2FIMG_0360.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;早上早早起来就翻山越岭去塔公草原，图中的海子为红海，据说是红色的，下面便是木格措。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkBqnbehB-I%2FAAAAAAAACZs%2FSkf7vh0RRzo%2Fs640%2FIMG_0361.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;满山尽是格桑花，这是一种生长在高原上的普通花朵，在藏语中，“格桑”是幸福的意思。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkBrnQD1otI%2FAAAAAAAACZw%2Fu75g4DIhVHk%2Fs640%2FIMG_0367.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;高原上的天空似乎触手可及。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkBsR2nMcwI%2FAAAAAAAACaM%2F2KuVUVZ2Qw4%2Fs640%2FIMG_0370.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;话说俺还是第一次这么近距离看到马呀。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkBtIjijqZI%2FAAAAAAAACao%2F-CdfGpOWeIs%2Fs640%2FIMG_0369.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;塔公草原上的木雅经塔，不过前面这块草皮被马啃的差不多了。。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkBt1ZBn6UI%2FAAAAAAAACbE%2FnbfMVNdbq1E%2Fs640%2FIMG_0374.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;真凸&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkBuwUszyeI%2FAAAAAAAACbg%2FJCuLyRlVl2k%2Fs640%2FIMG_0401.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;沿路进去就是塔公镇了。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkBvX-AWzAI%2FAAAAAAAACb8%2FSAikGUDNIuk%2Fs640%2FIMG_0380.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;塔公镇的局部真容，话说生活在高原上的人们也挺不容易的。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkBv_Hx7IvI%2FAAAAAAAACcY%2F46tgJf-hAVw%2Fs640%2FIMG_0381.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;也许是经常有游客来这里的缘故，照完像小女孩居然跑过来找我要钱，顿时让我一惊。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkBxDscjFSI%2FAAAAAAAACdM%2FuFY9MMdyIY8%2Fs640%2FIMG_0400.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;半个小时烧完水，让我想起了初中物理课上的烧火柴。&lt;/p&gt;
&lt;p&gt;PS:塔公这里的风景还不错，于是决定在塔公呆一晚，找了家饭馆和当地当地平房旅馆，那天胃口还不错，然后就继续瞎逛。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkBycC0L3eI%2FAAAAAAAACdQ%2FFmGvBR6Cpxw%2Fs640%2FIMG_0391.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;塔公寺，说实话我对宗教不是很感冒。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkBzpM8mgnI%2FAAAAAAAACds%2FFwmpD0ZCv4I%2Fs640%2FIMG_0420.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;继续回到草原，有人在休息，锅里煮的酥油茶，他们很热情的请喝了两大碗。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkB0cu2kVgI%2FAAAAAAAACeI%2FbsK7vKkghtI%2Fs640%2FIMG_0406.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;其实草原上不仅仅都是草。。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkB1SMxV5zI%2FAAAAAAAACeo%2FB3GJHzb-oVY%2Fs640%2FIMG_0419.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;感觉中的草原就是这个样子～&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkB2AJozL0I%2FAAAAAAAACfE%2FQ49we_H7c34%2Fs640%2FIMG_0429.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;中间那个没记错的话本当地人叫亚拉神山。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkB2eoEL0cI%2FAAAAAAAACfg%2F232v82DfaQo%2Fs640%2FIMG_0439.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;高原上的天气你永远也猜不透。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkB2-uwfIEI%2FAAAAAAAACf8%2FcyBks0lKuOg%2Fs640%2FIMG_0448.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;放晴后依然多云。&lt;/p&gt;
&lt;p&gt;早早回去休息，那天状态还不错，第二天结束。&lt;/p&gt;
&lt;p&gt;第三天&lt;/p&gt;
&lt;p&gt;预料中的高原反应终于来了，早上起来人很不在状态，头痛并伴有轻度的呕吐。因为今天的行程大部分都在坐车，也就不打算多休息了，或许能在车上好好休息。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkB4XJDYpmI%2FAAAAAAAACgY%2FAAsHrV9Klpc%2Fs640%2FIMG_0463.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;翻山又翻山，颠簸有颠簸，坐在左后一排的我痛苦的很，不过路上的风景实在不错，很艰难的拍了张。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSlxGU7H2oDI%2FAAAAAAAACvg%2FBOviserVZ2w%2Fs640%2FIMG_0462.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;途中唯一能够下车休息的便是中途给汽车加水的时候。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkB5byTlCxI%2FAAAAAAAACg0%2FmMTrqRbJ-T4%2Fs640%2FIMG_0456.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;高山上植被异常的丰富。&lt;/p&gt;
&lt;p&gt;高反越来越严重，整天也就都在车上痛苦的度过，到稻城的青年旅舍也很晚了，没胃口，躺下去就努力睡觉了。第三天结束。&lt;/p&gt;
&lt;p&gt;第四天&lt;/p&gt;
&lt;p&gt;早早的就起来，昏昏沉沉的，本来不想去亚丁的，但是昨天就答应一同包车的几个人，也就整理的东西，稍作休息开始去亚丁。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkB61ZG47-I%2FAAAAAAAAChQ%2FPD-5O8XM44g%2Fs640%2FIMG_0465.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;依旧是沿途的风景，让我目不暇接。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkB7zrtxAeI%2FAAAAAAAAChs%2FJdulPpiA4xw%2Fs640%2FIMG_0469.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;头脑很昏沉，没记错的那个乡好像叫亚丁乡。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkTQNViJQGI%2FAAAAAAAACt8%2F4LediGYnqks%2Fs640%2FIMG_0471.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;亚丁三座神山之一：仙乃日。&lt;/p&gt;
&lt;p&gt;差不多3个多小时到达亚丁，我也就没多走，决定还是休息一天，找到旅舍后便躺下去了，一天也就是差不多在床上。第四条结束。&lt;/p&gt;
&lt;p&gt;第五天&lt;/p&gt;
&lt;p&gt;昨天休息一天果然有效，早上起来精神抖擞，已经不再被高反困扰了，吃了些面包开始向亚丁景区出发了。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkB-COBQSHI%2FAAAAAAAACik%2Fo8zcB3lbf2Y%2Fs640%2FIMG_0482.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;我的临时坐骑，哇哈哈，第一次骑马。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkB-n05SetI%2FAAAAAAAACjA%2Fi0CX_jI1szo%2Fs640%2FIMG_0488.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;一步一步逼近神山，没记错那座叫夏诺多吉&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkB_faKGNTI%2FAAAAAAAACjc%2FaO28qVjrNSM%2Fs640%2FIMG_0489.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;亦或夏诺多吉？不过夏天雪也就比平时少了些。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkCCKL0QelI%2FAAAAAAAACkw%2F0vLZp2XPeOw%2Fs640%2FIMG_0506.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;骑马后还要做电瓶车，至于雪山如果记不清就叫它神山吧。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkCA8rExxvI%2FAAAAAAAACj4%2F7ecPwvZL66E%2Fs640%2FIMG_0500.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;央迈勇一角&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkCBfo1YlzI%2FAAAAAAAACkU%2FcZJBtMnaAD0%2Fs640%2FIMG_0508.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;也是它，也就是打算爬上去的这座。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkCDFwzMGgI%2FAAAAAAAAClM%2FZbBoC0okoXQ%2Fs640%2FIMG_0509.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;离出发点越来越远，隐约还可以看到栈道。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh5.gouride.com%2F_cZCuU2AQABo%2FSkCEo-hlwQI%2FAAAAAAAAClo%2FD2w8txzjfjM%2Fs640%2FIMG_0521.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;爬了也有2个多小时。这是上面的牛奶海，不过看不来实在。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkCFhQjmeJI%2FAAAAAAAACmE%2FVK1zbPgrsWs%2Fs640%2FIMG_0526.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;在翻过一座山，这是五色海。其实很大，这张是站在山顶上照的。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_cZCuU2AQABo%2FSkCGb85Q5XI%2FAAAAAAAACmg%2FSzE5HWt_8ws%2Fs640%2FIMG_0529.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;这是嘛？雪山中海油红彤彤的一块。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkCG31SnRcI%2FAAAAAAAACm8%2FxLFm4TD0neo%2Fs640%2FIMG_0535.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;还可以往上爬，不过也不想折腾自己了。沿途返回了。下午的时候也从亚丁回到了稻城。&lt;/p&gt;
&lt;p&gt;PS:其实这次的行程与我原定的计划有出入，由于总总原因，云南那块的香格里拉也就是没去了，虽然很近。以后有机会在去也不迟。&lt;/p&gt;
&lt;p&gt;到稻城的时候已经很晚了，在超市买了些充饥的东西。另外和不幸的是从稻城到成都发车是隔日，这也是之前没有预料到的，也就是说我还可以在稻城休息一天。第五天结束&lt;/p&gt;
&lt;p&gt;第六天&lt;/p&gt;
&lt;p&gt;就在稻城了，走了走稻城县。第六天结束。&lt;/p&gt;
&lt;p&gt;第七天&lt;/p&gt;
&lt;p&gt;要回去了，早早的收拾了行李，五点钟就爬起来了。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSkCJJoVPpDI%2FAAAAAAAACnc%2FqvmHY5kCrQQ%2Fs640%2FIMG_0585.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;沿途交通管制，我们也就停下来休息了。这次可以好好看下牦牛了，见我就对我回眸一笑，哇哈哈。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_cZCuU2AQABo%2FSkCJmgVAkdI%2FAAAAAAAACn4%2FeWBG-vDnNs0%2Fs640%2FIMG_0589.JPG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;这是什么花？据说可以统称它为野花。&lt;/p&gt;
&lt;p&gt;赶路赶路了，晚上在泸定县休息一晚了，就是那个有泸定桥的泸定县。第七天结束。&lt;/p&gt;
&lt;p&gt;第八天&lt;/p&gt;
&lt;p&gt;也是最后一天，中午的时候终于回到成都了。到成都我才体会到什么叫成都平原。&lt;/p&gt;
&lt;p&gt;尾声：其实这次旅行最美丽的还是在旅途中，最辛苦的也是在旅途中。真正到亚丁景区的时候我很少有感觉，另外也感谢途中有缘一起的人，没他们我估计早早就回来了，因为那里的ATM坏了。。。。&lt;/p&gt;
&lt;p&gt;毕业了，再见了四川。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799418/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799418/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799418/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799418/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=79b9c0eb21304c7bc438be6b242a54de&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=79b9c0eb21304c7bc438be6b242a54de&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1682/feed/</wfw:commentRss><slash:comments>23</slash:comments><description>前言：没啥说的，看图说话吧。
第一天
从成都出发到康定城，然后晚上泡温泉，泡的人都要萎缩了。。
第二天


早上早早起来就翻山越岭去塔公草原，图中的海子为红海，据说是红色的，下面便是木格措。

满山尽是格桑花，这是一种生长在高原上的普通花朵，在藏语中，“格桑”是幸福的意思。

高原上的天空似乎触手可及。

话说俺还是第一次这么近距离看到马呀。

塔公草原上的木雅经塔，不过前面这块草皮被马啃的差不多了。。

真凸

沿路进去就是塔公镇了。

塔公镇的局部真容，话说生活在高原上的人们也挺不容易的。

也许是经常有游客来这里的缘故，照完像小女孩居然跑过来找我要钱，顿时让我一惊。

半个小时烧完水，让我想起了初中物理课上的烧火柴。
PS:塔公这里的风景还不错，于是决定在塔公呆一晚，找了家饭馆和当地当地平房旅馆，那天胃口还不错，然后就继续瞎逛。

塔公寺，说实话我对宗教不是很感冒。

继续回到草原，有人在休息，锅里煮的酥油茶，他们很热情的请喝了两大碗。

其实草原上不仅仅都是草。。

感觉中的草原就是这个样子～

中间那个没记错的话本当地人叫亚拉神山。

高原上的天气你永远也猜不透。

放晴后依然多云。
早早回去休息，那天状态还不错，第二天结束。
第三天
预料中的高原反应终于来了，早上起来人很不在状态，头痛并伴有轻度的呕吐。因为今天的行程大部分都在坐车，也就不打算多休息了，或许能在车上好好休息。

翻山又翻山，颠簸有颠簸，坐在左后一排的我痛苦的很，不过路上的风景实在不错，很艰难的拍了张。

途中唯一能够下车休息的便是中途给汽车加水的时候。

高山上植被异常的丰富。
高反越来越严重，整天也就都在车上痛苦的度过，到稻城的青年旅舍也很晚了，没胃口，躺下去就努力睡觉了。第三天结束。
第四天
早早的就起来，昏昏沉沉的，本来不想去亚丁的，但是昨天就答应一同包车的几个人，也就整理的东西，稍作休息开始去亚丁。

依旧是沿途的风景，让我目不暇接。

头脑很昏沉，没记错的那个乡好像叫亚丁乡。

亚丁三座神山之一：仙乃日。
差不多3个多小时到达亚丁，我也就没多走，决定还是休息一天，找到旅舍后便躺下去了，一天也就是差不多在床上。第四条结束。
第五天
昨天休息一天果然有效，早上起来精神抖擞，已经不再被高反困扰了，吃了些面包开始向亚丁景区出发了。

我的临时坐骑，哇哈哈，第一次骑马。

一步一步逼近神山，没记错那座叫夏诺多吉
亦或夏诺多吉？不过夏天雪也就比平时少了些。

骑马后还要做电瓶车，至于雪山如果记不清就叫它神山吧。

央迈勇一角

也是它，也就是打算爬上去的这座。

离出发点越来越远，隐约还可以看到栈道。

爬了也有2个多小时。这是上面的牛奶海，不过看不来实在。

在翻过一座山，这是五色海。其实很大，这张是站在山顶上照的。

这是嘛？雪山中海油红彤彤的一块。

还可以往上爬，不过也不想折腾自己了。沿途返回了。下午的时候也从亚丁回到了稻城。
PS:其实这次的行程与我原定的计划有出入，由于总总原因，云南那块的香格里拉也就是没去了，虽然很近。以后有机会在去也不迟。
到稻城的时候已经很晚了，在超市买了些充饥的东西。另外和不幸的是从稻城到成都发车是隔日，这也是之前没有预料到的，也就是说我还可以在稻城休息一天。第五天结束
第六天
就在稻城了，走了走稻城县。第六天结束。
第七天
要回去了，早早的收拾了行李，五点钟就爬起来了。

沿途交通管制，我们也就停下来休息了。这次可以好好看下牦牛了，见我就对我回眸一笑，哇哈哈。

这是什么花？据说可以统称它为野花。
赶路赶路了，晚上在泸定县休息一晚了，就是那个有泸定桥的泸定县。第七天结束。
第八天
也是最后一天，中午的时候终于回到成都了。到成都我才体会到什么叫成都平原。
尾声：其实这次旅行最美丽的还是在旅途中，最辛苦的也是在旅途中。真正到亚丁景区的时候我很少有感觉，另外也感谢途中有缘一起的人，没他们我估计早早就回来了，因为那里的ATM坏了。。。。
毕业了，再见了四川。&lt;img src=&quot;http://www1.feedsky.com/t1/323799418/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799418/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799418/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799418/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=79b9c0eb21304c7bc438be6b242a54de&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=79b9c0eb21304c7bc438be6b242a54de&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>驴行</category><category>活着</category><pubDate>Tue, 23 Jun 2009 16:08:54 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1682/#comments</comments><guid isPermaLink="false">http://www.g9net.com/2009/06/23/adentravel-records.html</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1682/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799418/5355304</fs:itemid></item><item><title>离开几天.</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799419/5355304/1/item.html</link><content:encoded>&lt;p&gt;&lt;img src=&quot;http://www.g9net.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_cZCuU2AQABo%2FSjQBN3mO15I%2FAAAAAAAACYQ%2F07WDCNGhexQ%2F496ea465_2a8dd.jpg?imgmax=800&quot; alt=&quot;&quot; width=&quot;459&quot; height=&quot;322&quot; /&gt;&lt;/p&gt;
&lt;p&gt;一个人带着曾经的想法开始旅行，在毕业之前。&lt;/p&gt;
&lt;p&gt;这次跨幅比较大，围绕香格里拉，从四川到云南，祝我好运。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799419/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799419/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799419/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799419/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=5f1b97aa3152db4b9339216ce7c4132a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=5f1b97aa3152db4b9339216ce7c4132a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1679/feed/</wfw:commentRss><slash:comments>7</slash:comments><description>一个人带着曾经的想法开始旅行，在毕业之前。
这次跨幅比较大，围绕香格里拉，从四川到云南，祝我好运。&lt;img src=&quot;http://www1.feedsky.com/t1/323799419/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799419/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799419/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799419/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=5f1b97aa3152db4b9339216ce7c4132a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=5f1b97aa3152db4b9339216ce7c4132a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>驴行</category><category>活着</category><pubDate>Sun, 14 Jun 2009 03:47:41 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1679/#comments</comments><guid isPermaLink="false">http://www.g9net.com/2009/06/14/leave-a-few-days-wish-me-luck.html</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1679/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799419/5355304</fs:itemid></item><item><title>如何实现背景图片缩放效果</title><link>http://item.feedsky.com/~feedsky/G9net/~8012741/323799420/5355304/1/item.html</link><content:encoded>&lt;p&gt;在如今大屏幕日趋流行的今天，相当多的网站都喜欢用大图片来当背景，但是这也有个问题，小屏幕浏览图片显示不全，大屏幕浏览却不够，如何才能对图片进行缩放呢？&lt;/p&gt;
&lt;p&gt;其实在CSS3中有个background-size属性，不过现在基本上没啥浏览器能支持，不过了解下也不错，在W3C中有对它有定义到，可以&lt;a href=&quot;http://www.w3.org/TR/css3-background/#background-size&quot; target=&quot;_blank&quot;&gt;在这里&lt;/a&gt;看详细用法。&lt;/p&gt;
&lt;p&gt;当然熟悉AS的朋友也可以用整站flash很容易的实现，本文讨论的是基于css来实现。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1669&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;其实这也不算是什么技术问题，主要是思路问题。既然不能在CSS里面定义，那么只要在XHTML通过img来插入图片实现“伪背景”。&lt;/p&gt;
&lt;p&gt;什么没啥兴趣？来来来看演示（请先用非IE6浏览）&lt;a class=&quot;button&quot; href=&quot;http://www.g9net.com/demo/20090609/index.html&quot; target=&quot;_blank&quot;&gt;这里有演示&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;怎么样拉拉浏览器是不是很神奇？代码很简单：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;style&lt;/span&gt; type=&quot;text/css&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; * {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;margin&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;padding&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;font&lt;/span&gt;:14px&lt;span style=&quot;color: #006080&quot;&gt;/1.6 &quot;Microsoft YaHei&quot;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;background&lt;/span&gt;:url(loading&lt;span style=&quot;color: #cc6633&quot;&gt;.gif&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;) #333 repeat;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;color&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;#fff;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt; #bj {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;100%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;100%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;position&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;fixed;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;top&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;left&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt;     z-index:1;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  18:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  19:&lt;/span&gt; #main {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  20:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;100%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  21:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;position&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;absolute;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  22:&lt;/span&gt;     z-index:2;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  23:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  24:&lt;/span&gt; #&lt;span style=&quot;color: #0000ff&quot;&gt;content&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  25:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;500px;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  26:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;margin&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;30px auto;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  27:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;padding&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;10px;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  28:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;background&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;#000;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  29:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;1000px;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  30:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;border&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;1px solid #333;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  31:&lt;/span&gt;     -moz-opacity:&lt;span style=&quot;color: #006080&quot;&gt;0.8;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  32:&lt;/span&gt;     opacity:&lt;span style=&quot;color: #006080&quot;&gt;0.8;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  33:&lt;/span&gt;     filter: Alpha(opacity=80);&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  34:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  35:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  36:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  37:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt; id=&quot;main&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  38:&lt;/span&gt;   &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt; id=&quot;&lt;span style=&quot;color: #0000ff&quot;&gt;content&lt;/span&gt;&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  39:&lt;/span&gt;     &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;CSS背景缩放&lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  40:&lt;/span&gt;     &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;改变浏览器的窗口看看吧。&lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  41:&lt;/span&gt;   &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  42:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  43:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;img&lt;/span&gt; id=&quot;bj&quot; src=&quot;bj&lt;span style=&quot;color: #cc6633&quot;&gt;.jpg&lt;/span&gt;&quot; alt=&quot;&lt;span style=&quot;color: #0000ff&quot;&gt;background&lt;/span&gt;&quot;/&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  44:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;这里真正的背景是id=“bj“这个，而body里面定义的loading.gif是为了在加载背景给访客提示的，因为css里面的会先被读取。&lt;/p&gt;
&lt;p&gt;那为什么不能用IE6来浏览呢？因为万恶的IE6不支持position:fixed;解决的方法除了用那个&lt;a href=&quot;http://www.g9net.com/2009/03/16/the-front-of-the-gospel-let-ie5-ie6-standards-in-line-with-ie7-ie8.html&quot; target=&quot;_blank&quot;&gt;IE7.js&lt;/a&gt;，当然你也可以自己些js来让他支持，除此之外还有什么办法呢？答案是有的，比较复杂，需要用到table，你可以在这里看到这个&lt;a class=&quot;button&quot; href=&quot;http://www.g9net.com/demo/20090609/index2.html&quot; target=&quot;_blank&quot;&gt;演示&lt;/a&gt;，代码如下：&lt;/p&gt;
&lt;div&gt;
&lt;div style=&quot;border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;style&lt;/span&gt; type=&quot;text/css&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; * {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;margin&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;padding&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;html&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt;, #bg, #bg &lt;span style=&quot;color: #0000ff&quot;&gt;table&lt;/span&gt;, #bg &lt;span style=&quot;color: #0000ff&quot;&gt;td&lt;/span&gt;, #main {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;100%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;100%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;overflow&lt;/span&gt;:hidden&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;font&lt;/span&gt;:14px&lt;span style=&quot;color: #006080&quot;&gt;/1.6 &quot;Microsoft YaHei&quot;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;background&lt;/span&gt;:url(loading&lt;span style=&quot;color: #cc6633&quot;&gt;.gif&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;) #333 repeat;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;color&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;#fff;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt; #bg &lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;position&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;absolute;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  18:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;200%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  19:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;200%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  20:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;top&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;-50%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  21:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;left&lt;/span&gt;:-50%&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  22:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  23:&lt;/span&gt; #bg &lt;span style=&quot;color: #0000ff&quot;&gt;td&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  24:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;vertical-align&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;middle;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  25:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;text-align&lt;/span&gt;:&lt;span style=&quot;color: #0000ff&quot;&gt;center&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  26:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  27:&lt;/span&gt; #bg &lt;span style=&quot;color: #0000ff&quot;&gt;img&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  28:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;min-height&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;50%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  29:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;min-width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;50%;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  30:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;margin&lt;/span&gt;:0 auto&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  31:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  32:&lt;/span&gt; #main {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  33:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;position&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;absolute;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  34:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;top&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  35:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;left&lt;/span&gt;:0;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  36:&lt;/span&gt;     z-index:&lt;span style=&quot;color: #006080&quot;&gt;70;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  37:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;overflow&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;auto;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  38:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  39:&lt;/span&gt; #&lt;span style=&quot;color: #0000ff&quot;&gt;content&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  40:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;500px;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  41:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;margin&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;30px auto;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  42:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;padding&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;10px;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  43:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;background&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;#000;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  44:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;1000px;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  45:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;border&lt;/span&gt;:&lt;span style=&quot;color: #006080&quot;&gt;1px solid #333;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  46:&lt;/span&gt;     -moz-opacity:&lt;span style=&quot;color: #006080&quot;&gt;0.8;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  47:&lt;/span&gt;     opacity:&lt;span style=&quot;color: #006080&quot;&gt;0.8;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  48:&lt;/span&gt;     filter: Alpha(opacity=80);&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  49:&lt;/span&gt; }&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  50:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  51:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  52:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt; id=&quot;main&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  53:&lt;/span&gt;   &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt; id=&quot;&lt;span style=&quot;color: #0000ff&quot;&gt;content&lt;/span&gt;&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  54:&lt;/span&gt;     &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;CSS背景缩放&lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  55:&lt;/span&gt;     &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;改变浏览器的窗口看看吧。&lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  56:&lt;/span&gt;   &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  57:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  58:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt; id=&quot;bg&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  59:&lt;/span&gt;   &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  60:&lt;/span&gt;     &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;table&lt;/span&gt; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  61:&lt;/span&gt;       &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  62:&lt;/span&gt;         &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;img&lt;/span&gt; alt=&quot;&lt;span style=&quot;color: #0000ff&quot;&gt;background&lt;/span&gt;&quot; src=&quot;bj&lt;span style=&quot;color: #cc6633&quot;&gt;.jpg&lt;/span&gt;&quot; /&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  63:&lt;/span&gt;       &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  64:&lt;/span&gt;     &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  65:&lt;/span&gt;   &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  66:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  67:&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: #0000ff&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #006080&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;上面的这个代码参考&lt;a href=&quot;http://www.ringvemedia.com/&quot; target=&quot;_self&quot;&gt;GOTOCHINA&lt;/a&gt;的源码这个代码有个弊端，就是必须很严格的控制背景图片的比例否则在现在各大主流的分辨率下会有留空，经过的调试后推荐比例最好为宽：高=1：0.5。虽然这样可以解决留空问题，但是有时候图片会显示不全。所有各位要用什么方法就自己看了。还是推荐用第一种方法配合ie7.js来解决问题，当然你也可以完成不用管IE6～&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323799420/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799420/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799420/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799420/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=950ddcff27f72c05007517e75874b746&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=950ddcff27f72c05007517e75874b746&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://wlsy.me/1669/feed/</wfw:commentRss><slash:comments>5</slash:comments><description>在如今大屏幕日趋流行的今天，相当多的网站都喜欢用大图片来当背景，但是这也有个问题，小屏幕浏览图片显示不全，大屏幕浏览却不够，如何才能对图片进行缩放呢？
其实在CSS3中有个background-size属性，不过现在基本上没啥浏览器能支持，不过了解下也不错，在W3C中有对它有定义到，可以在这里看详细用法。
当然熟悉AS的朋友也可以用整站flash很容易的实现，本文讨论的是基于css来实现。

其实这也不算是什么技术问题，主要是思路问题。既然不能在CSS里面定义，那么只要在XHTML通过img来插入图片实现“伪背景”。
什么没啥兴趣？来来来看演示（请先用非IE6浏览）这里有演示
怎么样拉拉浏览器是不是很神奇？代码很简单：


   1: &amp;#60;style type=&quot;text/css&quot;&amp;#62;
   2: * {
   3:     margin:0;
   4:     padding:0;
   5: }
   6: body {
   7:     font:14px/1.6 &quot;Microsoft YaHei&quot;;
   8:     background:url(loading.gif) #333 [...]&lt;img src=&quot;http://www1.feedsky.com/t1/323799420/G9net/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/G9net/~8012741/323799420/5355304/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/G9net/323799420/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/G9net/323799420/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/G9net?a=950ddcff27f72c05007517e75874b746&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/G9net?i=950ddcff27f72c05007517e75874b746&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category>背景缩放</category><category>Web前端</category><category>css</category><pubDate>Tue, 09 Jun 2009 22:57:30 +0800</pubDate><author>wlsy</author><comments>http://wlsy.me/1669/#comments</comments><guid isPermaLink="false">http://www.g9net.com/2009/06/09/how-to-achieve-the-effect-of-the-background-picture-zoom.html</guid><dc:creator>wlsy</dc:creator><fs:srclink>http://wlsy.me/1669/</fs:srclink><fs:srcfeed>http://wlsy.me/feed</fs:srcfeed><fs:itemid>feedsky/G9net/~8012741/323799420/5355304</fs:itemid></item></channel></rss>