<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.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/52shidai" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/52shidai" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 26 Apr 2012 00:50:00 GMT</lastBuildDate><title>时代前端</title><description>网站前端研究中心</description><link>http://www.52shidai.com</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Thu, 26 Apr 2012 00:50:00 GMT</pubDate><item><title>jquery准确判断ie6浏览器</title><link>http://www.52shidai.com/javascript/jquery/967.html</link><content:encoded>&lt;p&gt;jquery提供的$.brower方法只能&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%88%a4%e6%96%ad&quot; title=&quot;查看 判断 中的全部文章&quot; target=&quot;_blank&quot;&gt;判断&lt;/a&gt;&lt;/span&gt;&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%b5%8f%e8%a7%88%e5%99%a8&quot; title=&quot;查看 浏览器 中的全部文章&quot; target=&quot;_blank&quot;&gt;浏览器&lt;/a&gt;&lt;/span&gt;的种类，而不能具体到版本。日常工作中我们最为头疼的就是&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/ie6&quot; title=&quot;查看 IE6 中的全部文章&quot; target=&quot;_blank&quot;&gt;IE6&lt;/a&gt;&lt;/span&gt;，有时候要专门为ie6写hack。   &lt;br /&gt;以前我的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%88%a4%e6%96%ad&quot; title=&quot;查看 判断 中的全部文章&quot; target=&quot;_blank&quot;&gt;判断&lt;/a&gt;&lt;/span&gt;方法一直是版本+版本号。 if($.browser.msie&amp;amp;&amp;amp;($.browser.version==6.0))。、    &lt;br /&gt;但最近发现一个惊天bug。    &lt;br /&gt;jquery是根据userAgent的version值正则判断的，但是如果在windows2008k中，会把windows NT 6.0误认为是ie6.0，导致将ie8误认成ie6。    &lt;br /&gt;$.browser方法jquery官方已经不赞成使用了。建议的方法是$.support,但我把所有的属性值都测试完毕后发现没有一个能只检测出&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/ie6&quot; title=&quot;查看 IE6 中的全部文章&quot; target=&quot;_blank&quot;&gt;IE6&lt;/a&gt;&lt;/span&gt;的，最后发现$.support.style在IE6和IE7中返回值为false。    &lt;br /&gt;那么取他们属性的交集便可以准确判断IE6了。    &lt;br /&gt;所以 if($.brower.msie&amp;amp;&amp;amp;($.browser.version==6.0)&amp;amp;&amp;amp;!$.support.style)    &lt;br /&gt;虽然很长，但效果还是不错的。&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;您可能感兴趣的文章&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/926.html&quot; title=&quot;jQ.Mobi—针对移动设备优化的jQuery&quot;&gt;jQ.Mobi—针对移动设备优化的jQuery&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/web-front/819.html&quot; title=&quot;谷歌WebGL浏览器图形技术Angle现雏形&quot;&gt;谷歌WebGL浏览器图形技术Angle现雏形&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/css-2/757.html&quot; title=&quot;IE6的最大宽度最小宽度css兼容&quot;&gt;IE6的最大宽度最小宽度css兼容&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/748.html&quot; title=&quot;jQuery-bind不能处理绑定hover事件&quot;&gt;jQuery-bind不能处理绑定hover事件&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/738.html&quot; title=&quot;9个实用jQuery日历插件&quot;&gt;9个实用jQuery日历插件&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/732.html&quot; title=&quot;jQuery 操作css 设置样式&quot;&gt;jQuery 操作css 设置样式&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/705.html&quot; title=&quot;JQUERY操作XML实例教程&quot;&gt;JQUERY操作XML实例教程&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/621.html&quot; title=&quot;不要滥用jQuery的$(this)&quot;&gt;不要滥用jQuery的$(this)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/619.html&quot; title=&quot;编写高性能的jQuery代码&quot;&gt;编写高性能的jQuery代码&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/558.html&quot; title=&quot;jQuery中的mouseenter和mouseleave事件&quot;&gt;jQuery中的mouseenter和mouseleave事件&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;IE6、IE7、IE8与FireFox最全的CSS浏览器兼容问题整理&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F936.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803886.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;IE6、IE7、IE8与FireFox最全的CSS浏览器兼容问题整理&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不要滥用jQuery的$(this)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F621.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19802705.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不要滥用jQuery的$(this)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;判断IE浏览器的简单快速方法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F753.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19801951.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;判断IE浏览器的简单快速方法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Lazy Load 延迟加载图片的 jQuery 插件&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F59.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/02/11/15230157.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Lazy Load 延迟加载图片的 jQuery 插件&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jquery技巧总结大放送&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F455.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799189.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jquery技巧总结大放送&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/631427795/52shidai/feedsky/s.gif?r=http://www.52shidai.com/javascript/jquery/967.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/javascript/jquery/967.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>jquery提供的$.brower方法只能判断浏览器的种类，而不能具体到版本。日常工作中我们最为头疼的就是IE6，有时候要专门为ie6写hack。 以前我的判断方法一直是版本+版本号。 if($.browser.msie&amp;#38;&amp;#38;($.browser.version==6.0))。、 但最近发现一个惊天bug。 jquery是根据userAgent的version值正则判断的，但是如果在windows2008k中，会把windows NT 6.0误认为是ie6.0，导致将ie8误认成ie6。 $.browser方法jquery官方已经不赞成使用了。建议的方法是$.support,但我把所有的属性值都测试完毕后发现没有一个能只检测出IE6的，最后发现$.support.style在IE6和IE7中返回值为false。 那么取他们属性的交集便可以准确判断IE6了。 所以 if($.brower.msie&amp;#38;&amp;#38;($.browser.version==6.0)&amp;#38;&amp;#38;!$.support.style) 虽然很长，但效果还是不错的。 您可能感兴趣的文章jQ.Mobi—针对移动设备优化的jQuery谷歌WebGL浏览器图形技术Angle现雏形IE6的最大宽度最小宽度css兼容jQuery-bind不能处理绑定hover事件9个实用jQuery日历插件jQuery 操作css 设置样式JQUERY操作XML实例教程不要滥用jQuery的$(this)编写高性能的jQuery代码jQuery中的mouseenter和mouseleave事件&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;IE6、IE7、IE8与FireFox最全的CSS浏览器兼容问题整理&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F936.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803886.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;IE6、IE7、IE8与FireFox最全的CSS浏览器兼容问题整理&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;判断IE浏览器的简单快速方法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F753.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19801951.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;判断IE浏览器的简单快速方法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不要滥用jQuery的$(this)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F621.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19802705.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不要滥用jQuery的$(this)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jQuery 操作css 设置样式&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F732.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19802189.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jQuery 操作css 设置样式&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jquery技巧总结大放送&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F455.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F967.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799189.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jquery技巧总结大放送&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/631427795/52shidai/feedsky/s.gif?r=http://www.52shidai.com/javascript/jquery/967.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>jQuery</category><category>判断</category><category>IE6</category><category>浏览器</category><pubDate>Thu, 26 Apr 2012 08:50:00 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/javascript/jquery/967.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=967</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/javascript/jquery/967.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/631427795/6261166</fs:itemid></item><item><title>百度搜索引擎对中文URL收录情况</title><link>http://www.52shidai.com/seo/965.html</link><content:encoded>&lt;p&gt;还是说说中文url对于&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e7%99%be%e5%ba%a6&quot; title=&quot;查看 百度 中的全部文章&quot; target=&quot;_blank&quot;&gt;百度&lt;/a&gt;&lt;/span&gt;的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%94%b6%e5%bd%95&quot; title=&quot;查看 收录 中的全部文章&quot; target=&quot;_blank&quot;&gt;收录&lt;/a&gt;&lt;/span&gt;是否有影响吧。   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 此酒店团购网的SEO优化最近刚由我接手，在查看网站的 目的地 时候，发现这些城市的URL全都是带中文的URL。另外有想建立品牌网站必须要知道的.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 由于之前看到过网上讨论&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e4%b8%ad%e6%96%87url&quot; title=&quot;查看 中文URL 中的全部文章&quot; target=&quot;_blank&quot;&gt;中文URL&lt;/a&gt;&lt;/span&gt;对于&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%94%b6%e5%bd%95&quot; title=&quot;查看 收录 中的全部文章&quot; target=&quot;_blank&quot;&gt;收录&lt;/a&gt;&lt;/span&gt;是否有影响的话题，特意就关注了下，我特意查看了这些带中文的URL是否被&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e7%99%be%e5%ba%a6&quot; title=&quot;查看 百度 中的全部文章&quot; target=&quot;_blank&quot;&gt;百度&lt;/a&gt;&lt;/span&gt;收录，经过查询，都没有被&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e7%99%be%e5%ba%a6&quot; title=&quot;查看 百度 中的全部文章&quot; target=&quot;_blank&quot;&gt;百度&lt;/a&gt;&lt;/span&gt;收录。遂找来程序员，让他帮忙把url改成英文形式。    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 第二天查看了下这些改成英文的url，经过在百度查询，发现当天改完英文后，百度就直接把这些个城市页面给收录了。 通过上面这个CASE，我了解到一个SEO情况就是。    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 百度对于带中文的URL并不是很喜欢，并不是说百度不收录带中文的URL，事实证明带中文的URL是被百度收录的，因为大家已经拿出了相关的证据。但是对于百度是否喜欢带&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e4%b8%ad%e6%96%87url&quot; title=&quot;查看 中文URL 中的全部文章&quot; target=&quot;_blank&quot;&gt;中文URL&lt;/a&gt;&lt;/span&gt;这个情况，没有SEO人员提到过。    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 那么通过此CASE让我明白了，百度对于带中文的URL并不是很喜欢，相对于中文URL，英文URL更容易被百度收录！ SEO优化人员以后可千万得注意，中文URL尽量不要出现，因为中文URL不利于百度的收录！    &lt;br /&gt;源于:http://www.eistudy.com&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;您可能感兴趣的文章&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/638.html&quot; title=&quot;百度收录减少的问题怎么解决&quot;&gt;百度收录减少的问题怎么解决&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/151.html&quot; title=&quot;你知道百度和谷歌搜索引擎收录网页的细微差别吗？&quot;&gt;你知道百度和谷歌搜索引擎收录网页的细微差别吗？&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/849.html&quot; title=&quot;利用百度自身产品增加博客外链的办法&quot;&gt;利用百度自身产品增加博客外链的办法&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/664.html&quot; title=&quot;发外链时需要注意的地方&quot;&gt;发外链时需要注意的地方&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/654.html&quot; title=&quot;如何查询及提高网站对搜索引擎的权重!&quot;&gt;如何查询及提高网站对搜索引擎的权重!&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/605.html&quot; title=&quot;写网页内容需要注意些什么？&quot;&gt;写网页内容需要注意些什么？&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/522.html&quot; title=&quot;Google百度的热榜每天能给你带来上万流量&quot;&gt;Google百度的热榜每天能给你带来上万流量&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/515.html&quot; title=&quot;增加搜索引擎的好感及信任指数&quot;&gt;增加搜索引擎的好感及信任指数&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/448.html&quot; title=&quot;分析借鉴一下百度百科的seo&quot;&gt;分析借鉴一下百度百科的seo&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/425.html&quot; title=&quot;JS判断来路哪个搜索引擎来的并提示加入收藏&quot;&gt;JS判断来路哪个搜索引擎来的并提示加入收藏&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;百度收录减少的问题怎么解决&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F638.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/02/07/14967838.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;百度收录减少的问题怎么解决&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;你知道百度和谷歌搜索引擎收录网页的细微差别吗？&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F151.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;你知道百度和谷歌搜索引擎收录网页的细微差别吗？&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;百度不收录、收录减少、排名降低的原因和解决方法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F634.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/02/11/15266577.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;百度不收录、收录减少、排名降低的原因和解决方法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;百度对部分SEO问题有了官方回答&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F423.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19806230.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;百度对部分SEO问题有了官方回答&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;利用百度自身产品增加博客外链的办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F849.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803431.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;利用百度自身产品增加博客外链的办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/631158860/52shidai/feedsky/s.gif?r=http://www.52shidai.com/seo/965.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/seo/965.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>还是说说中文url对于百度的收录是否有影响吧。 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 此酒店团购网的SEO优化最近刚由我接手，在查看网站的 目的地 时候，发现这些城市的URL全都是带中文的URL。另外有想建立品牌网站必须要知道的. &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 由于之前看到过网上讨论中文URL对于收录是否有影响的话题，特意就关注了下，我特意查看了这些带中文的URL是否被百度收录，经过查询，都没有被百度收录。遂找来程序员，让他帮忙把url改成英文形式。 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 第二天查看了下这些改成英文的url，经过在百度查询，发现当天改完英文后，百度就直接把这些个城市页面给收录了。 通过上面这个CASE，我了解到一个SEO情况就是。 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 百度对于带中文的URL并不是很喜欢，并不是说百度不收录带中文的URL，事实证明带中文的URL是被百度收录的，因为大家已经拿出了相关的证据。但是对于百度是否喜欢带中文URL这个情况，没有SEO人员提到过。 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 那么通过此CASE让我明白了，百度对于带中文的URL并不是很喜欢，相对于中文URL，英文URL更容易被百度收录！ SEO优化人员以后可千万得注意，中文URL尽量不要出现，因为中文URL不利于百度的收录！ 源于:http://www.eistudy.com 您可能感兴趣的文章百度收录减少的问题怎么解决你知道百度和谷歌搜索引擎收录网页的细微差别吗？利用百度自身产品增加博客外链的办法发外链时需要注意的地方如何查询及提高网站对搜索引擎的权重!写网页内容需要注意些什么？Google百度的热榜每天能给你带来上万流量增加搜索引擎的好感及信任指数分析借鉴一下百度百科的seoJS判断来路哪个搜索引擎来的并提示加入收藏&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;百度收录减少的问题怎么解决&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F638.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/02/07/14967838.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;百度收录减少的问题怎么解决&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;你知道百度和谷歌搜索引擎收录网页的细微差别吗？&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F151.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;你知道百度和谷歌搜索引擎收录网页的细微差别吗？&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;百度不收录、收录减少、排名降低的原因和解决方法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F634.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/02/11/15266577.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;百度不收录、收录减少、排名降低的原因和解决方法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;百度对部分SEO问题有了官方回答&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F423.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19806230.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;百度对部分SEO问题有了官方回答&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;利用百度自身产品增加博客外链的办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F849.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F965.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803431.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;利用百度自身产品增加博客外链的办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/631158860/52shidai/feedsky/s.gif?r=http://www.52shidai.com/seo/965.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>SEO</category><category>中文URL</category><category>搜索引擎</category><category>百度</category><category>收录</category><pubDate>Wed, 25 Apr 2012 09:49:00 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/seo/965.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=965</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/seo/965.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/631158860/6261166</fs:itemid></item><item><title>让wordpress时间显示为xx秒、分、天前</title><link>http://www.52shidai.com/wordpress/962.html</link><content:encoded>&lt;p&gt;这个相当有用，希望自己的文章时间显示格式像微博&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f&quot; title=&quot;查看 时间格式 中的全部文章&quot; target=&quot;_blank&quot;&gt;时间格式&lt;/a&gt;&lt;/span&gt;一样，它就可以；如果你发文频率很高，这个&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f&quot; title=&quot;查看 时间格式 中的全部文章&quot; target=&quot;_blank&quot;&gt;时间格式&lt;/a&gt;&lt;/span&gt;很是友好！刚刚发布的文章，时间显示为“1分钟前”，还有“1天前”、“1分钟前”、“1秒前”等等！&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;添加方法很简单，把以下代码贴入主题的functions.php，调用方法是wp默认的“the_time()”，不用修改。&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
//时间显示xx前&lt;br /&gt;
add_filter('the_time', 'past_date');&lt;br /&gt;
function past_date(){&lt;br /&gt;
	$suffix='前';&lt;br /&gt;
	$endtime='2419200';&lt;br /&gt;
	$day = '天';&lt;br /&gt;
	$hour = '小时';&lt;br /&gt;
	$minute = '分钟';&lt;br /&gt;
	$second = '秒';&lt;br /&gt;
	if ($_SERVER['REQUEST_TIME'])&lt;br /&gt;
			$now_time = $_SERVER['REQUEST_TIME'];&lt;br /&gt;
	else&lt;br /&gt;
			$now_time = time();&lt;br /&gt;
	$m = 60;  // 一分钟&lt;br /&gt;
	$h = 3600;  //一小时有3600秒&lt;br /&gt;
	$d = 86400;  // 一天有86400秒&lt;br /&gt;
	$endtime = (int)$endtime;  // 结束时间&lt;br /&gt;
	$post_time = get_post_time('U', true);&lt;br /&gt;
	$past_time = $now_time - $post_time;  // 文章发表至今经过多少秒&lt;br /&gt;
	if($past_time &lt; $m){ //小于1分钟&lt;br /&gt;
			$past_date = $past_time . $second;&lt;br /&gt;
	}else if ($past_time &lt; $h){ //小于1小时&lt;br /&gt;
			$past_date = $past_time / $m;&lt;br /&gt;
			$past_date = floor($past_date);&lt;br /&gt;
			$past_date .= $minute;&lt;br /&gt;
	}else if ($past_time &lt; $d){ //小于1天&lt;br /&gt;
			$past_date = $past_time / $h;&lt;br /&gt;
			$past_date = floor($past_date);&lt;br /&gt;
			$past_date .= $hour;&lt;br /&gt;
	}else if ($past_time &lt; $d*10){&lt;br /&gt;
			$past_date = $past_time / $d;&lt;br /&gt;
			$past_date = floor($past_date);&lt;br /&gt;
			$past_date .= $day;&lt;br /&gt;
	}else{&lt;br /&gt;
			echo get_post_time('m-d');&lt;br /&gt;
			return;&lt;br /&gt;
	}&lt;br /&gt;
	echo $past_date . $suffix;&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;您可能感兴趣的文章&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/856.html&quot; title=&quot;wordpress标签云文字大小,数量,排序等&quot;&gt;wordpress标签云文字大小,数量,排序等&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/844.html&quot; title=&quot;wordpress博客seo优化指南&quot;&gt;wordpress博客seo优化指南&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/836.html&quot; title=&quot;WordPress 3.3正式版新功能&quot;&gt;WordPress 3.3正式版新功能&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/684.html&quot; title=&quot;wordpress后台和登录页面报错&quot;&gt;wordpress后台和登录页面报错&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/678.html&quot; title=&quot;手机管理WordPress博客软件集锦&quot;&gt;手机管理WordPress博客软件集锦&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/625.html&quot; title=&quot;wordpress 采集器插件&quot;&gt;wordpress 采集器插件&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/600.html&quot; title=&quot;一个WordPress一个空间建立多个独立WP博客&quot;&gt;一个WordPress一个空间建立多个独立WP博客&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/506.html&quot; title=&quot;wordpress采集插件—wp-o-matic使用详解&quot;&gt;wordpress采集插件—wp-o-matic使用详解&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/504.html&quot; title=&quot;WordPress后台自定义主题名称信息&quot;&gt;WordPress后台自定义主题名称信息&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/wordpress/499.html&quot; title=&quot;不同分类的详细页定义不同模板&quot;&gt;不同分类的详细页定义不同模板&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;WordPress显示相对日期时间的代码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F232.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19800235.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;WordPress显示相对日期时间的代码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JS 显示当前日期与时间的代码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F315.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799390.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JS 显示当前日期与时间的代码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;WordPress 3.0 beta 1版本 发布&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F421.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;WordPress 3.0 beta 1版本 发布&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;wordpress后台和登录页面报错&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F684.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/09/02/27283982.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;wordpress后台和登录页面报错&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;开启wordpress 3.0多用户的方法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F539.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19798608.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;开启wordpress 3.0多用户的方法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629266981/52shidai/feedsky/s.gif?r=http://www.52shidai.com/wordpress/962.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/wordpress/962.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>这个相当有用，希望自己的文章时间显示格式像微博时间格式一样，它就可以；如果你发文频率很高，这个时间格式很是友好！刚刚发布的文章，时间显示为“1分钟前”，还有“1天前”、“1分钟前”、“1秒前”等等！ 添加方法很简单，把以下代码贴入主题的functions.php，调用方法是wp默认的“the_time()”，不用修改。 //时间显示xx前 add_filter('the_time', 'past_date'); function past_date(){ $suffix='前'; $endtime='2419200'; $day = '天'; $hour = '小时'; $minute = '分钟'; $second = '秒'; if ($_SERVER['REQUEST_TIME']) $now_time = $_SERVER['REQUEST_TIME']; else $now_time = time(); $m = 60; // 一分钟 $h = 3600; //一小时有3600秒 $d = 86400; // 一天有86400秒 $endtime = (int)$endtime; // 结束时间 $post_time = get_post_time('U', true); $past_time = [...]&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;WordPress显示相对日期时间的代码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F232.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19800235.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;WordPress显示相对日期时间的代码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JS 显示当前日期与时间的代码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F315.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799390.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JS 显示当前日期与时间的代码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;WordPress 3.0 beta 1版本 发布&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F421.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;WordPress 3.0 beta 1版本 发布&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;wordpress后台和登录页面报错&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F684.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/09/02/27283982.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;wordpress后台和登录页面报错&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;开启wordpress 3.0多用户的方法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F539.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fwordpress%2F962.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19798608.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;开启wordpress 3.0多用户的方法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629266981/52shidai/feedsky/s.gif?r=http://www.52shidai.com/wordpress/962.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>wordpress</category><category>时间格式</category><category>发布时间</category><pubDate>Thu, 19 Apr 2012 08:52:32 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/wordpress/962.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=962</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/wordpress/962.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/629266981/6261166</fs:itemid></item><item><title>JavaScript编程语言的编码规范</title><link>http://www.52shidai.com/javascript/959.html</link><content:encoded>&lt;p&gt;对于熟悉 C/C++ 或 Java 语言的工程师来说，JavaScript 显得灵活，简单易懂，对代码的格式的要求也相对松散。很容易学习，并运用到自己的代码中。也正因为这样，JavaScript 的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e7%bc%96%e7%a0%81%e8%a7%84%e8%8c%83&quot; title=&quot;查看 编码规范 中的全部文章&quot; target=&quot;_blank&quot;&gt;编码规范&lt;/a&gt;&lt;/span&gt;也往往被轻视，开发过程中修修补补，最终也就演变成为后续维护人员的恶梦。软件存在的长期价值直接与编码的质量成比例。&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e7%bc%96%e7%a0%81%e8%a7%84%e8%8c%83&quot; title=&quot;查看 编码规范 中的全部文章&quot; target=&quot;_blank&quot;&gt;编码规范&lt;/a&gt;&lt;/span&gt;能帮助我们降低编程中不必要的麻烦。而 JavaScript 代码是直接发送给客户浏览器的，直接与客户见面，编码的质量更应该受到关注。&lt;/p&gt;
&lt;p&gt;本文浅谈 JavaScript 编程中关于编码规范的问题，分析其中缘由。希望引起更多 Web 开发人员对 JavaScript 编码规范问题的关注和对软件产品质量问题的重视。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;前言&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;提及 C/C++ 和 Java 编码规范，相信许多工程师并不生疏。但说到 JavaScript 语言的编码规范，也许您会忍俊不禁。JavaScript 不是语法很灵活吗？变量随时用随时可以声明；语句结束符可以不要；字符串和数字也可以相加；参数多一个少一个也不会报错。没错，当您从 C/C++ 和 Java 严格的语法规定之下，转向 JavaScript 语言，会觉得自由了很多，轻松了很多。语法松散是 JavaScript 重要的特征。它灵活易懂，给开发人员带来了很多方便，但如果编写过程中不注意，代码的调试成本和维护成本则会无形地增加。&lt;/p&gt;
&lt;p&gt;JavaScript 编码会随应被直接发送到客户端的浏览器，代码规范不只是代码质量的保证，也影响到产品的长期信誉。希望 JavaScript 编程语言的规范问题也能同样引起更多朋友的关注。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JavaScript 编码规范建议&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;本文就 JavaScript 编码过程中涉及的排版、命名、声明、作用域、及一些特殊符号的使用等方面，根据个人在学习工作中的总结，给出自己的一些建议，并分析其中缘由，以供参考。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JavaScript 文件引用&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;JavaScript 程序应该尽量放在 .js 的文件中，需要调用的时候在 HTML 中以 &amp;lt;script src=”filename.js”&amp;gt; 的形式包含进来。JavaScript 代码若不是该 HTML 文件所专用的，则应尽量避免在 HTML 文件中直接编写 JavaScript 代码。因为这样会大大增加 HTML 文件的大小，无益于代码的压缩和缓存的使用。&lt;/p&gt;
&lt;p&gt;另外，&amp;lt;script src=”filename.js”&amp;gt; 标签应尽量放在文件的后面。这样会降低因加载 JavaScript 代码而影响页面中其它组件的加载时间。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;代码排版&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;行长度&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;每行代码应小于 80 个字符。如果代码较长，应尽量选择换行，下一行代码应缩进 8 个空格。这样可以使代码排版整齐，减轻阅读代码的疲劳感。换行缩进 8 个空格可以和代码段的缩进 4 个空格区分开，以增强代码的可阅读性。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;行结束&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;JavaScript 语句应该以分号结束。但大多数浏览器允许不写分号，只要在本应是分号的地方有一个换行符就行。但是如果代码行较长需要换行的时候，有哪些注意事项呢？换行应选择在操作符和标点符号之后，最好是在逗号&amp;#8217;,'之后，而不要在变量名、字符串、数字、或&amp;#8217;)&amp;#8217; &amp;#8216;]&amp;#8217; &amp;#8216;++&amp;#8217; &amp;#8216;&amp;#8211;&amp;#8217;等符号之后换行。&lt;/p&gt;
&lt;p&gt;这样可以有效的防止拷贝、粘贴而引起的错误，并可有效地增强代码的可阅读性。请见清单 1，代码的输出符合我们的期望。但就写法而言，对 valueB 的赋值语句是在变量 valueA 之后进行的换行，这很容易被误解为 valueB=ValueA，给阅读造成障碍。而对 valueC 的复制语句是在&amp;#8217;+'之后进行的换行，就容易理解的多。这也是本文所提倡的换行方式。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 1. 行结束的位置&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
var valueA = 1;&lt;br /&gt;
var valueB = valueA         ///bad&lt;br /&gt;
+1;&lt;br /&gt;
var valueC = valueB +      ///good&lt;br /&gt;
valueA;&lt;br /&gt;
alert(valueB);              //output: valueB=2&lt;br /&gt;
alert(valueC);//output: valueC=3&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;缩进&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;关于缩进的问题，不只是 JavaScript，几乎所有的语言编写的时候，都会提及缩进的问题。缩进几乎是代码编写规范的第一课，是代码可阅读性判断的直接因素。&lt;/p&gt;
&lt;p&gt;代码缩进的好处是不言而喻的，但是对于如何缩进，则没有标准而言。最受欢迎的是方便使用 TAB 键缩进，也有些喜欢用 2 个、4 个、8 个空格进行缩进。这样缩进风格不一，也同样给代码的阅读带来障碍。&lt;/p&gt;
&lt;p&gt;本文提倡用 4 个空格来进行缩进，并在同一产品中采用同一种缩进标准。不支持用 TAB 键进行缩进。这是因为直到现在还没有统一的标准来定义 TAB 键所代替的空白大小，有些编辑器解析为 4 个空格大小，有些则解析为 8 个。因而用不同的编辑器查看代码，可能造成格式混乱。&lt;/p&gt;
&lt;p&gt;当然 TAB 简单易用，为解决这个问题，建议在设置开发环境时，将编辑器里的 TAB 快捷键重新设置为 4 个空格。据了解 Eclipse, Vi, Nodepad++，Editplus, UltraEdit 等流行的编辑器，均提供了此功能。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;注释&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;代码中的注释很重要，自然也是毋庸置疑的。通常我们会强调代码中注释数量的多少，而轻视了对注释质量的提高。编码是及时添加注释，会给后续代码的维护人员带来很大的便利。但是如果注释不注意更新，或者由于拷贝、粘贴引起的错误的注释，则会误导阅读人员，反而给阅读带来障碍。&lt;/p&gt;
&lt;p&gt;除了注释要 及时更新外，我们还应对注释的内容要特别关注。注释要尽量简单、清晰明了，避免使用含混晦涩的语言，同时着重 注释的意义，对不太直观的部分进行注解。请见清单 2。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 2. 有意义的注释&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
//following section is used to initialize golbal variables             (good)&lt;br /&gt;
var valueA = 0;     //initialize  valueA to be sero                       (bad)&lt;br /&gt;
var valueB = 1;&lt;br /&gt;
&amp;#8230;&lt;br /&gt;
//call f1 function after waiting for 50 seconds.                         (good)&lt;br /&gt;
setTimeout(f1,50000); //set timeout to be 20s                     (copy error)&lt;br /&gt;
&amp;#8230;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;这样的注释方式在 JavaScript 代码中经常见到。”initialize valueA to be sero” 这样的注释有什么用呢？难道阅读程序的工程师从”var valueA = 0;”复制语句中看不出来么？”set timeout to be 20s”这条注释，不只是因拷贝、粘贴引起的时间大小的错误，同时也误导了程序员对这条语句的理解。setTimeout() 函数的作用并非是设置函数执行的超时时间，而是等待一定时间后执行所调用的函数，害人匪浅呀。这样的注释内容宁可删掉。&lt;/p&gt;
&lt;p&gt;此外，JavaScript 的注释有两种”//” 和”/* &amp;#8230;. */”，建议”//”用作代码行注释，”/* &amp;#8230;. */”形式用作对整个代码段的注销，或较正式的声明中，如函数参数、功能、文件功能等的描述中。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;标识符命名&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;JavaScript 中的标识符的命名规则：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;以字母、下划线&amp;#8217;_'或美元符号&amp;#8217;$'开头&lt;/li&gt;
&lt;li&gt;允许名称中包含字母，数字，下划线&amp;#8217;_'和美元符号&amp;#8217;$&amp;#8217;&lt;/li&gt;
&lt;li&gt;区分大小写&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;变量、参数、成员变量、函数等名称均以小写字母开头，构造器的名称以大写字母开头。下划线&amp;#8217;_'开头的变量一般习惯于标识私有 / 局部成员。而美元符号&amp;#8217;$'开头的变量习惯于标识系统相关，比如系统进程等。应避免用下划线&amp;#8217;_'或美元符号&amp;#8217;$'来命名标识符。尽可能地降低代码的阅读负担。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;声明&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;变量的声明&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;尽管 JavaScript 语言并不要求在变量使用前先对变量进行声明。但我们还是应该养成这个好习惯。这样可以比较容易的检测出那些未经声明的变量，避免其变为隐藏的全局变量，造成隐患。&lt;/p&gt;
&lt;p&gt;在函数的开始应先用 var 关键字声明函数中要使用的局部变量，注释变量的功能及代表的含义，且应以字母顺序排序。每个变量单独占一行，以便添加注释。这是因为 JavaScript 中只有函数的 {} 表明作用域，用 var 关键字声明的局部变量只在函数内有效，而未经 var 声明的变量则被视为全局变量。我们来看下清单 3。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 3. 局部变量声明&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
var valueA  = “a”;&lt;br /&gt;
var valueB  = “b”;&lt;br /&gt;
function f1() {&lt;br /&gt;
var valueA = “c”;&lt;br /&gt;
alert(“valueA=”+valueA);        //output: valueA=c&lt;br /&gt;
valueB = “d”;&lt;br /&gt;
alert(“valueB=”+valueB);        //output: valueB=d&lt;br /&gt;
}&lt;br /&gt;
f1();&lt;br /&gt;
alert(“valueA=”+valueA);            //output: valueA=a&lt;br /&gt;
alert(“valueB=”+valueB);            //output: valueB=d&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;从上例的输出惊奇地发现，用 var 声明过的变量 valueA 和没有声明的变量 valueB 是有区别的。特别需要注意的是，在函数内部用 var 声明的变量为局部变量，这样可以有效地避免因局部变量和全局变量同名而产生的错误。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;函数的声明&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;函数也应在调用前进行声明，内部函数应在 var 声明内部变量的语句之后声明，可以清晰地表明内部变量和内部函数的作用域。&lt;/p&gt;
&lt;p&gt;此外，函数名紧接左括号&amp;#8217;(&amp;#8216;之间，而右括号&amp;#8217;)'和后面的&amp;#8217;{&amp;#8216;之间要有个空格，以清楚地显示函数名以其参数部分，和函数体的开始。若函数为匿名 / 无名函数，则 function 关键字和左括号&amp;#8217;(&amp;#8216;之间要留空格，否则可能误认为该函数的函数名为 function。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 4. 内部函数声明&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
var innerA = 1;&lt;br /&gt;
function outF() {&lt;br /&gt;
var innerA = 2;&lt;br /&gt;
function _inF() {&lt;br /&gt;
alert(“valueA=”+innerA);&lt;br /&gt;
}&lt;br /&gt;
_inF();&lt;br /&gt;
}&lt;br /&gt;
outF();                         //output: valueA=2&lt;br /&gt;
_inF();                         //error: innerF is not defined&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;从清单 4 的输出可以看出，inF() 函数仅在 outF() 函数的内部生效，局部变量 innerA 对内部函数的作用域生效。这样的编码方式使得变量和函数的作用域变得清晰。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;语句&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;对于简单语句而言，需要提及的仍然是分号必要性，同时，一行最多有一个语句。如果一个赋值语句是用函数和对象来赋值，可能需要跨多行，一定切记要在赋值语句末加上分号。&lt;/p&gt;
&lt;p&gt;这是因为 JavaScript 中，所有表达式都可以当语句，遇换行符时会解析为表达式的结束，此时不规范的换行和分号的丢失，可能引入新的错误。&lt;/p&gt;
&lt;p&gt;对于复合语句，if, for, while, do, switch, try … catch 等代码体，函数定义的函数体，对象的定义等都需要放在花括号&amp;#8217;{}&amp;#8217;里面。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;#8216;{&amp;#8216; 应在行末，标志代码块的开始。&lt;/li&gt;
&lt;li&gt;&amp;#8216;}&amp;#8217; 应在一行开头，标志代码块的结束，同时需要和&amp;#8217;{&amp;#8216;所在行的开始对齐，以表明一个完整的复合语句段。这样可以极大地提高代码的可阅读性，控制逻辑能清晰地表现出来。&lt;/li&gt;
&lt;li&gt;被包含的代码段应该再缩进 4 个空格。&lt;/li&gt;
&lt;li&gt;即使被包含的代码段只有一句，也应该用花括号&amp;#8217;{}&amp;#8217;包含。尽管不用花括号代码也不会错，但如若需要增加语句的话，则较容易因花括号遗漏而引起的编译错误或逻辑错误。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;return语句在使用时也需慎重，如果用表达式的执行作为返回值，请把表达式和 return 放在同一行中，以免换行符被误解析为语句的结束而引起返回错误。return 关键字后若没有返回表达式，则返回 undefined。构造器的默认返回值为 this。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 5. return 表达式&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
function F1() {&lt;br /&gt;
var valueA  = 1;&lt;br /&gt;
var valueB  = 2;&lt;br /&gt;
return valueA + valueB;&lt;br /&gt;
}&lt;br /&gt;
function F2() {&lt;br /&gt;
var valueA  = 1;&lt;br /&gt;
var valueB  = 2;&lt;br /&gt;
return&lt;br /&gt;
valueA + valueB;&lt;br /&gt;
}&lt;br /&gt;
alert( F1() );  //output: 3&lt;br /&gt;
alert( F2() );  //ouput: undefined&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;在清单 5 中显示了因返回表达式没有和 return 关键字放在同一行而引起的返回错误，需重视。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;特殊符号&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;空白符&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;适当的空白行可以大大提高代码的可阅读性，可以使代码逻辑更清晰易懂。同时，在表达式中适当的留空白，也会给代码的阅读带来方便。&lt;/p&gt;
&lt;p&gt;关键字的后面如有括号，则最好在关键字和左括号&amp;#8217;(&amp;#8216;之间留空白，如 for, if, while 等。而函数名和括号之间则不宜留空白，但若是匿名函数，则必须在 function 和左括号&amp;#8217;(&amp;#8216;之间留空白，否则，编辑器会误认为函数名为 function。&lt;/p&gt;
&lt;p&gt;在表达式中，二元运算符 ( 除左括号&amp;#8217;(&amp;#8216;，左方括号&amp;#8217;['，作用域点'.') 和两个操作数之间最好留空白。一元运算符（若不是词 typeof 等）和其操作数之间不宜留空白。&lt;/p&gt;
&lt;p&gt;逗号','的后面需要留空白，以显示明确的参数间隔，变量间隔等。&lt;/p&gt;
&lt;p&gt;分号';'之后通常表明表达语句的结束，而应空行。在 for 的条件语句中，分号之后则应该留空白。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;{ } 和 [ ]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;在 JavaScript 中，如需定义空对象和空数组，通常很自然地想到用 new Object() 和 new Array() 的方法。其实花括号&amp;#8217;{}&amp;#8217;和方括号&amp;#8217;[]&amp;#8216;可以直接用来定义一个空对象和一个空数组。这种书写方法可以使代码看起来简单易懂。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;== 和 ===&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;判断”逻辑等”在代码里太平常的不过事情了，但 JavaScript 与其他熟知的编程语言不同的是，除了可以使用两个等号&amp;#8217;==&amp;#8217;来作判断以为，还可以使用三个等号&amp;#8217;===&amp;#8217;来进行逻辑等判断。两者的不同是&amp;#8217;==&amp;#8217;作逻辑等判断时，会先进行类型转换后再进行比较。&amp;#8217;===&amp;#8217;则不会。因而，&amp;#8217;==&amp;#8217;进行的判断结果可能产生偏差。&amp;#8217;!=&amp;#8217;与&amp;#8217;!==&amp;#8217;的区别亦是如此。本文提倡尽量使用&amp;#8217;===&amp;#8217;来进行逻辑等的判断，用&amp;#8217;!==&amp;#8217;进行逻辑不等的判断。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 6. === 的使用&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
var valueA = “1&amp;#8243;;&lt;br /&gt;
var valueB = 1;&lt;br /&gt;
if ( valueA == valueB) {&lt;br /&gt;
alert(“Equal”);&lt;br /&gt;
}&lt;br /&gt;
else {&lt;br /&gt;
alert(“Not equal”)&lt;br /&gt;
}&lt;br /&gt;
//output: “Equal”&lt;br /&gt;
if ( valueA === valueB) {&lt;br /&gt;
alert(“Equal”);&lt;br /&gt;
}&lt;br /&gt;
else {&lt;br /&gt;
alert(“Not equal”)&lt;br /&gt;
}&lt;br /&gt;
//output: “Not equal”&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;清单 6 中，valueA 和 valueB 两个变量的值显然是不相等的，起码 valueA 是个字符串，而 valueB 是一个数字。但用&amp;#8217;==&amp;#8217;进行判断是，程序却输出相等的字样。这是因为编译器对两个变量进行比较时，因为他们的类型不同，而自动地将 valueB 转换成字符串，而后再和 valueA 进行比较的。用&amp;#8217;===&amp;#8217;得到的判断结果正和预期的结果相符。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;+&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;加号&amp;#8217;+'也同样是程序员所熟知的操作符之一。JavaScript 和其他编程语言不同的是，在 JavaScript 中，&amp;#8217;+'除了表示数字值相加，字符串相连接以外，还可以作一元运算符用，把字符串转换为数字。因而如果使用不当，则可能与自增符&amp;#8217;++&amp;#8217;混淆而引起计算错误。这一点，在清单 7 中可以清楚地看出。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;清单 7. 巧用 + 号&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;script language=”javascript”&amp;gt;&lt;br /&gt;
var valueA = 20;&lt;br /&gt;
var valueB = “10&amp;#8243;;&lt;br /&gt;
alert( valueA + valueB);     //ouput: 2010&lt;br /&gt;
alert( valueA + (+valueB)); //output: 30&lt;br /&gt;
alert( valueA + +valueB);    //output:30&lt;br /&gt;
alert( valueA ++valueB);     //Compile error&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;总结&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;本文就 JavaScript 代码的排版、命名、声明、语句、和一些特殊字符的使用等方面，谈了自己对 JavaScript 编程规范的建议。此外，还有许多方面需要深入了解研究，如 with, eval 语句和 this 对象的使用等等。我们在认识其普遍性的同时也需要注意其特殊性，在编写代码时多用心留意，以创造更多更优质的程序代码。&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;随机日志推荐&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;31个Javascript的实用工具&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F759.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/16/23034883.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;31个Javascript的实用工具&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JavaScript trim函数的十二种实现&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F56.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19801992.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JavaScript trim函数的十二种实现&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript中的107个基础知识收集整理&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F323.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799261.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript中的107个基础知识收集整理&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JavaScript操作iframe里的dom&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F556.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799788.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JavaScript操作iframe里的dom&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript 正则表达式-替换&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F661.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19804153.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript 正则表达式-替换&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629266982/52shidai/feedsky/s.gif?r=http://www.52shidai.com/javascript/959.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/javascript/959.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>对于熟悉 C/C++ 或 Java 语言的工程师来说，JavaScript 显得灵活，简单易懂，对代码的格式的要求也相对松散。很容易学习，并运用到自己的代码中。也正因为这样，JavaScript 的编码规范也往往被轻视，开发过程中修修补补，最终也就演变成为后续维护人员的恶梦。软件存在的长期价值直接与编码的质量成比例。编码规范能帮助我们降低编程中不必要的麻烦。而 JavaScript 代码是直接发送给客户浏览器的，直接与客户见面，编码的质量更应该受到关注。 本文浅谈 JavaScript 编程中关于编码规范的问题，分析其中缘由。希望引起更多 Web 开发人员对 JavaScript 编码规范问题的关注和对软件产品质量问题的重视。 前言 提及 C/C++ 和 Java 编码规范，相信许多工程师并不生疏。但说到 JavaScript 语言的编码规范，也许您会忍俊不禁。JavaScript 不是语法很灵活吗？变量随时用随时可以声明；语句结束符可以不要；字符串和数字也可以相加；参数多一个少一个也不会报错。没错，当您从 C/C++ 和 Java 严格的语法规定之下，转向 JavaScript 语言，会觉得自由了很多，轻松了很多。语法松散是 JavaScript 重要的特征。它灵活易懂，给开发人员带来了很多方便，但如果编写过程中不注意，代码的调试成本和维护成本则会无形地增加。 JavaScript 编码会随应被直接发送到客户端的浏览器，代码规范不只是代码质量的保证，也影响到产品的长期信誉。希望 JavaScript 编程语言的规范问题也能同样引起更多朋友的关注。 JavaScript 编码规范建议 本文就 JavaScript 编码过程中涉及的排版、命名、声明、作用域、及一些特殊符号的使用等方面，根据个人在学习工作中的总结，给出自己的一些建议，并分析其中缘由，以供参考。 JavaScript 文件引用 JavaScript 程序应该尽量放在 .js 的文件中，需要调用的时候在 HTML 中以 &amp;#60;script src=”filename.js”&amp;#62; 的形式包含进来。JavaScript 代码若不是该 HTML [...]&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;31个Javascript的实用工具&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F759.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/16/23034883.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;31个Javascript的实用工具&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JavaScript trim函数的十二种实现&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F56.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19801992.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JavaScript trim函数的十二种实现&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript中的107个基础知识收集整理&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F323.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799261.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript中的107个基础知识收集整理&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JavaScript操作iframe里的dom&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F556.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799788.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JavaScript操作iframe里的dom&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript 正则表达式-替换&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F661.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F959.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19804153.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript 正则表达式-替换&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629266982/52shidai/feedsky/s.gif?r=http://www.52shidai.com/javascript/959.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>编码规范</category><category>JavaScript</category><pubDate>Thu, 19 Apr 2012 08:26:17 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/javascript/959.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=959</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/javascript/959.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/629266982/6261166</fs:itemid></item><item><title>解决Firefox下input button内文字垂直居中</title><link>http://www.52shidai.com/css-2/957.html</link><content:encoded>&lt;p&gt;众所周知，在Firefox下input type=”&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/button&quot; title=&quot;查看 button 中的全部文章&quot; target=&quot;_blank&quot;&gt;button&lt;/a&gt;&lt;/span&gt;”的文字是不好居中的，原因在于Firefox自己比较二，弄了个私有属性，导致以下问题的出现：&lt;/p&gt;
&lt;p&gt;按钮左右本身有2px的间距（FF私有属性写了padding:0 2px所致）；&lt;br /&gt;
按钮文字居中是不行的（此时设置padding-bottom是没用的） ；&lt;br /&gt;
等等…&lt;/p&gt;
&lt;p&gt;那我们就用其人之道还治其人之心，看下面代码：&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
input[type=&quot;reset&quot;]::-moz-focus-inner,&lt;br /&gt;
input[type=&quot;&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/button&quot; title=&quot;查看 button 中的全部文章&quot; target=&quot;_blank&quot;&gt;button&lt;/a&gt;&lt;/span&gt;&quot;]::-moz-focus-inner,&lt;br /&gt;
input[type=&quot;submit&quot;]::-moz-focus-inner,&lt;br /&gt;
input[type=&quot;file&quot;] &gt; input[type=&quot;&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/button&quot; title=&quot;查看 button 中的全部文章&quot; target=&quot;_blank&quot;&gt;button&lt;/a&gt;&lt;/span&gt;&quot;]::-moz-focus-inner{&lt;br /&gt;
	border:none;padding:0;&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;您可能感兴趣的文章&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/css-2/864.html&quot; title=&quot;兼容性很好的div、图片上下居中的css写法&quot;&gt;兼容性很好的div、图片上下居中的css写法&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/javascript/jquery/546.html&quot; title=&quot;12个用jQuery插件改变Button按钮的漂亮特效&quot;&gt;12个用jQuery插件改变Button按钮的漂亮特效&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/191.html&quot; title=&quot;简单实现圆角不固定长度的button样式&quot;&gt;简单实现圆角不固定长度的button样式&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;div中用css让图片垂直居中&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/09/03/27685721.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;div中用css让图片垂直居中&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;12个用jQuery插件改变Button按钮的漂亮特效&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F546.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19798596.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;12个用jQuery插件改变Button按钮的漂亮特效&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;简单实现圆角不固定长度的button样式&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F191.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799176.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;简单实现圆角不固定长度的button样式&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Firefox 9正式版可下载，提升JavaScript性能20-30%&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F852.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19800922.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Firefox 9正式版可下载，提升JavaScript性能20-30%&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;用JavaScript 控制input的值&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F439.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;用JavaScript 控制input的值&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629167746/52shidai/feedsky/s.gif?r=http://www.52shidai.com/css-2/957.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/css-2/957.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>众所周知，在Firefox下input type=”button”的文字是不好居中的，原因在于Firefox自己比较二，弄了个私有属性，导致以下问题的出现： 按钮左右本身有2px的间距（FF私有属性写了padding:0 2px所致）； 按钮文字居中是不行的（此时设置padding-bottom是没用的） ； 等等… 那我们就用其人之道还治其人之心，看下面代码： input[type=&quot;reset&quot;]::-moz-focus-inner, input[type=&quot;button&quot;]::-moz-focus-inner, input[type=&quot;submit&quot;]::-moz-focus-inner, input[type=&quot;file&quot;] &gt; input[type=&quot;button&quot;]::-moz-focus-inner{ border:none;padding:0; } 您可能感兴趣的文章兼容性很好的div、图片上下居中的css写法12个用jQuery插件改变Button按钮的漂亮特效简单实现圆角不固定长度的button样式&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;div中用css让图片垂直居中&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/09/03/27685721.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;div中用css让图片垂直居中&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;12个用jQuery插件改变Button按钮的漂亮特效&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2Fjquery%2F546.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19798596.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;12个用jQuery插件改变Button按钮的漂亮特效&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;简单实现圆角不固定长度的button样式&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F191.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799176.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;简单实现圆角不固定长度的button样式&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Firefox 9正式版可下载，提升JavaScript性能20-30%&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F852.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19800922.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Firefox 9正式版可下载，提升JavaScript性能20-30%&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;用JavaScript 控制input的值&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F439.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;用JavaScript 控制input的值&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629167746/52shidai/feedsky/s.gif?r=http://www.52shidai.com/css-2/957.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>button</category><category>上下居中</category><category>css样式</category><pubDate>Wed, 18 Apr 2012 22:59:35 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/css-2/957.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=957</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/css-2/957.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/629167746/6261166</fs:itemid></item><item><title>微软最新的服务器版操作系统叫Windows Server 2012</title><link>http://www.52shidai.com/web-front/955.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.52shidai.com/wp-content/uploads/2012/04/windows8_conew1.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;windows8_conew1&quot; border=&quot;0&quot; alt=&quot;windows8_conew1&quot; src=&quot;http://www.52shidai.com/wp-content/uploads/2012/04/windows8_conew1_thumb.jpg&quot; width=&quot;392&quot; height=&quot;355&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;在拉斯维加斯举行的2012微软管理峰会（MMS）上，微软官员&lt;a href=&quot;http://www.computerworld.com/s/article/print/9226279/Microsoft_names_Windows_Server_2012_commits_to_launch_this_year&quot;&gt;透露&lt;/a&gt;了其最新的服务器软件的名字为Windows Server 2012，这个跟预期的“Windows Server 8”这个名字有出入，该&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f&quot; title=&quot;查看 操作系统 中的全部文章&quot; target=&quot;_blank&quot;&gt;操作系统&lt;/a&gt;&lt;/span&gt;将于今年推出。&lt;/p&gt;
&lt;p&gt;不过微软并未透露确切的发布日期。根据预测，微软有可能效仿Windows 7发布时的做法，把时间定在假日销售季的10月。&lt;/p&gt;
&lt;p&gt;微软还推出了System Center 2012，这是一组客户端与服务器端的管理套件，微软称该工具对于企业管理包括有物理和虚拟服务器的私有云至关重要。可在微软网站处&lt;a href=&quot;http://technet.microsoft.com/en-us/evalcenter/hh505660.aspx?ocid;otc-f-corp-jtc-DPR&amp;amp;wt.mc_id;TEC_103_1_33&quot;&gt;下载&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;会上微软还透露了其他产品的名字。IntelPC桌面版&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f&quot; title=&quot;查看 操作系统 中的全部文章&quot; target=&quot;_blank&quot;&gt;操作系统&lt;/a&gt;&lt;/span&gt;叫“Windows 8”，正式销售只有两个版本，普通版和专业版。企业版仅提供给加入了软件保证计划的客户。此前面向平板电脑的“Windows on ARM（WOA）”改名为“Windows RT”。&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;随机日志推荐&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;2012年14个HTML5的大胆预言&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F873.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19801225.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;2012年14个HTML5的大胆预言&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web 前端优化最佳实践之 Server 篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F795.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19805812.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web 前端优化最佳实践之 Server 篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不是必须资深站长才能写好软文的&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F478.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799416.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不是必须资深站长才能写好软文的&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;基于Nginx的Web服务器引擎淘宝Tengine正式开源&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F838.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19804789.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;基于Nginx的Web服务器引擎淘宝Tengine正式开源&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;微软必应挑战谷歌搜索引擎&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F682.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19806568.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;微软必应挑战谷歌搜索引擎&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629056987/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/955.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/web-front/955.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>在拉斯维加斯举行的2012微软管理峰会（MMS）上，微软官员透露了其最新的服务器软件的名字为Windows Server 2012，这个跟预期的“Windows Server 8”这个名字有出入，该操作系统将于今年推出。 不过微软并未透露确切的发布日期。根据预测，微软有可能效仿Windows 7发布时的做法，把时间定在假日销售季的10月。 微软还推出了System Center 2012，这是一组客户端与服务器端的管理套件，微软称该工具对于企业管理包括有物理和虚拟服务器的私有云至关重要。可在微软网站处下载。 会上微软还透露了其他产品的名字。IntelPC桌面版操作系统叫“Windows 8”，正式销售只有两个版本，普通版和专业版。企业版仅提供给加入了软件保证计划的客户。此前面向平板电脑的“Windows on ARM（WOA）”改名为“Windows RT”。 随机日志推荐&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;2012年14个HTML5的大胆预言&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F873.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19801225.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;2012年14个HTML5的大胆预言&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web 前端优化最佳实践之 Server 篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F795.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19805812.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web 前端优化最佳实践之 Server 篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不是必须资深站长才能写好软文的&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F478.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799416.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不是必须资深站长才能写好软文的&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;基于Nginx的Web服务器引擎淘宝Tengine正式开源&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F838.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19804789.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;基于Nginx的Web服务器引擎淘宝Tengine正式开源&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;微软必应挑战谷歌搜索引擎&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F682.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F955.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19806568.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;微软必应挑战谷歌搜索引擎&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/629056987/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/955.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>操作系统</category><category>前端优化</category><category>Windows2012</category><pubDate>Wed, 18 Apr 2012 14:39:28 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/web-front/955.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=955</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/web-front/955.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/629056987/6261166</fs:itemid></item><item><title>苹果让不懂编程的人也可以做APP开发</title><link>http://www.52shidai.com/web-front/951.html</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://www.52shidai.com/wp-content/uploads/2012/04/apple-app-builder.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;apple-app-builder&quot; border=&quot;0&quot; alt=&quot;apple-app-builder&quot; src=&quot;http://www.52shidai.com/wp-content/uploads/2012/04/apple-app-builder_thumb.jpg&quot; width=&quot;481&quot; height=&quot;272&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;据外媒报道，苹果本周向美国专利商标具提交了一份专利申请，该专利将使得苹果的iOS应用开发变得更加简单，大大降低开发者的准入门槛，即使你不懂编程你也可以自己开发出一些应用。&lt;/p&gt;
&lt;p&gt;该专利的名称叫做&amp;lt;&lt;a href=&quot;http://www.freepatentsonline.com/y2012/0089933.html&quot;&gt;Content Configuration for Device Platforms&lt;/a&gt;&amp;gt;(《设备平台上的内容配置》),这是苹果即将推出的一种新编写工具，用户可以直接创建App而不需要理解或编写繁杂的程序代码。&lt;/p&gt;
&lt;p&gt;60万的应用已经使得苹果应用生态系统足够庞大了，那么可想而知当苹果这项专利技术正式通过之后，很难想象苹果的应用数量将会成长到多么恐怖的程度。目前还无法得知苹果是否会将该项专利整合到即将出现的苹果操作平台中，该项专利中指出计算机编程语言是阻止用户进行DIY创造的主要因素，并不是每个人都具备专业技术背景，更别说复杂的计算机编程了。&lt;/p&gt;
&lt;p&gt;苹果这项即将带来的专利技术使得用户创建应用的过程会更加简单，用户只需要简单的选择一个模板并在模板中加入相应的功能就可以创建自己的iOS应用、网页或者广告乃至更多的iOS内容。&lt;/p&gt;
&lt;p&gt;在有些需要创作的领域 “所见即所得”软件既可以解决一些创作问题，比如说网页开发设计中的Dreamweaver，这是一种可以开发设计网页的图形用户界面工具。苹果表示，尽管这些工具可以帮助用户进行内容创作，但是它们的功能毕竟有限，有时候还需要用户亲自动手编写类似于CSS这样的代码。&lt;/p&gt;
&lt;p&gt;除此之外苹果还在这个专利申请中指出目前业界现有的一些编写工具对于没有编程基础的用户而言也非常困难，他们编写出来的内容往往很难在不同分辨率的屏幕上完美展现。虽然大多数iOS应用可以在iPhone或iPad上运行或者同时兼容两种设备，但是苹果此次的专利申请中还谈到了在不同分辨率的屏幕（比如说电视和电脑）上呈现这些内容的可能性，这也意味着将来用户甚至可以自己开发Mac乃至Apple TV的应用供大家使用。&lt;/p&gt;
&lt;p&gt;苹果表示目前业界针对这一问题只是采用一种所谓“最小公分母”的办法，通过对内容进行相应的转换来使之适用于所有移动设备。尽管依靠这种方法，移动设备上内容的呈现效果得到了一定的增强，但是远远没有达到最理想的效果。&lt;/p&gt;
&lt;p&gt;鉴于iOS应用的已经拥有庞大的DIY开发者基础，苹果该项技术的推出将会在更大程度上加剧了用户DIY应用的热潮，为当前同谷歌、亚马逊等在应用市场特别是免费应用上的竞争添加了一个重要的筹码。&lt;/p&gt;
&lt;p&gt;针对苹果的这项即将推出的新专利技术，目前我们好奇的就是苹果将会给新研发的或者也已存在的iOS设备提供一种怎样的全新用户界面，苹果会不会为这项新技术单独开发新的iOS平台还是直接整合到现有的iOS平台中，种种一切就让我们拭目以待吧。苹果在2011年底之前已经售出了3.16亿部移动设备，因此苹果的移动设备产品的应用需求量也是在不断增长的，这项新专利的推出应该会缓解这高速增长的需求。&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;随机日志推荐&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;HTML5将推动Web App发展&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F867.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798236.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;HTML5将推动Web App发展&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端工程师必备的前端开发手册&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端工程师必备的前端开发手册&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发的一些必备工具信息&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F611.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803946.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发的一些必备工具信息&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不写代码也能开发HTML5游戏-可视化开发工具&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F825.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798250.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不写代码也能开发HTML5游戏-可视化开发工具&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发经验小结&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F184.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799512.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发经验小结&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/628345870/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/951.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/web-front/951.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>据外媒报道，苹果本周向美国专利商标具提交了一份专利申请，该专利将使得苹果的iOS应用开发变得更加简单，大大降低开发者的准入门槛，即使你不懂编程你也可以自己开发出一些应用。 该专利的名称叫做&amp;#60;Content Configuration for Device Platforms&amp;#62;(《设备平台上的内容配置》),这是苹果即将推出的一种新编写工具，用户可以直接创建App而不需要理解或编写繁杂的程序代码。 60万的应用已经使得苹果应用生态系统足够庞大了，那么可想而知当苹果这项专利技术正式通过之后，很难想象苹果的应用数量将会成长到多么恐怖的程度。目前还无法得知苹果是否会将该项专利整合到即将出现的苹果操作平台中，该项专利中指出计算机编程语言是阻止用户进行DIY创造的主要因素，并不是每个人都具备专业技术背景，更别说复杂的计算机编程了。 苹果这项即将带来的专利技术使得用户创建应用的过程会更加简单，用户只需要简单的选择一个模板并在模板中加入相应的功能就可以创建自己的iOS应用、网页或者广告乃至更多的iOS内容。 在有些需要创作的领域 “所见即所得”软件既可以解决一些创作问题，比如说网页开发设计中的Dreamweaver，这是一种可以开发设计网页的图形用户界面工具。苹果表示，尽管这些工具可以帮助用户进行内容创作，但是它们的功能毕竟有限，有时候还需要用户亲自动手编写类似于CSS这样的代码。 除此之外苹果还在这个专利申请中指出目前业界现有的一些编写工具对于没有编程基础的用户而言也非常困难，他们编写出来的内容往往很难在不同分辨率的屏幕上完美展现。虽然大多数iOS应用可以在iPhone或iPad上运行或者同时兼容两种设备，但是苹果此次的专利申请中还谈到了在不同分辨率的屏幕（比如说电视和电脑）上呈现这些内容的可能性，这也意味着将来用户甚至可以自己开发Mac乃至Apple TV的应用供大家使用。 苹果表示目前业界针对这一问题只是采用一种所谓“最小公分母”的办法，通过对内容进行相应的转换来使之适用于所有移动设备。尽管依靠这种方法，移动设备上内容的呈现效果得到了一定的增强，但是远远没有达到最理想的效果。 鉴于iOS应用的已经拥有庞大的DIY开发者基础，苹果该项技术的推出将会在更大程度上加剧了用户DIY应用的热潮，为当前同谷歌、亚马逊等在应用市场特别是免费应用上的竞争添加了一个重要的筹码。 针对苹果的这项即将推出的新专利技术，目前我们好奇的就是苹果将会给新研发的或者也已存在的iOS设备提供一种怎样的全新用户界面，苹果会不会为这项新技术单独开发新的iOS平台还是直接整合到现有的iOS平台中，种种一切就让我们拭目以待吧。苹果在2011年底之前已经售出了3.16亿部移动设备，因此苹果的移动设备产品的应用需求量也是在不断增长的，这项新专利的推出应该会缓解这高速增长的需求。 随机日志推荐&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;HTML5将推动Web App发展&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F867.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798236.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;HTML5将推动Web App发展&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端工程师必备的前端开发手册&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端工程师必备的前端开发手册&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发的一些必备工具信息&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F611.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803946.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发的一些必备工具信息&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不写代码也能开发HTML5游戏-可视化开发工具&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F825.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798250.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不写代码也能开发HTML5游戏-可视化开发工具&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发经验小结&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F184.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799512.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发经验小结&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/628345870/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/951.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>app开发</category><category>前端优化</category><category>app</category><pubDate>Mon, 16 Apr 2012 12:59:51 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/web-front/951.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=951</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/web-front/951.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/628345870/6261166</fs:itemid></item><item><title>div中用css让图片垂直居中</title><link>http://www.52shidai.com/css-2/946.html</link><content:encoded>&lt;p&gt;不像table那么容易，直接就可以让内容上线&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%b1%85%e4%b8%ad&quot; title=&quot;查看 居中 中的全部文章&quot; target=&quot;_blank&quot;&gt;居中&lt;/a&gt;&lt;/span&gt;，在div中怎么简单实现了，当然实现起来有很多方法，目前先看一下我认为很简单的写法。&lt;/p&gt;
&lt;p&gt;难点在于两点：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;垂直&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%b1%85%e4%b8%ad&quot; title=&quot;查看 居中 中的全部文章&quot; target=&quot;_blank&quot;&gt;居中&lt;/a&gt;&lt;/span&gt;；&lt;/li&gt;
&lt;li&gt;图片是个置换元素，有些特殊的特性。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;至于如何解决，下面是一个权衡的相对结构干净，CSS简单的解决方法：&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;css部分&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;.box {
        /*非IE的主流浏览器识别的垂直居中的方法*/
        display: table-cell;
        vertical-align:middle;

        /*设置水平居中*/
        text-align:center;

        /* 针对IE的Hack */
        *display: block;
        *font-size: 175px;/*约为高度的0.873，200*0.873 约为175*/
        *font-family:Arial;/*防止非utf-8引起的hack失效问题，如gbk编码*/

        width:200px;
        height:200px;
        border: 1px solid #eee;
}
.box img {
        /*设置&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%9b%be%e7%89%87%e5%9e%82%e7%9b%b4%e5%b1%85%e4%b8%ad&quot; title=&quot;查看 图片垂直居中 中的全部文章&quot; target=&quot;_blank&quot;&gt;图片垂直居中&lt;/a&gt;&lt;/span&gt;*/
        vertical-align:middle;
}&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;strong&gt;HTML结构&lt;/strong&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;
 &amp;lt;img src=&quot;taoscars_180x95_071112_sr.jpg&quot; /&amp;gt;
&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;利用浏览器本身属性加上hack，简单的搞定。&lt;/code&gt;&lt;/pre&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;随机日志推荐&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;解决Firefox下input button内文字垂直居中&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799317.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;解决Firefox下input button内文字垂直居中&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;兼容性很好的div、图片上下居中的css写法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F864.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19798701.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;兼容性很好的div、图片上下居中的css写法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;封装好的javascript图片滑动效果&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F338.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19804047.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;封装好的javascript图片滑动效果&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript 实现的完全兼容鼠标滚轴缩放图片的代码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F72.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799108.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript 实现的完全兼容鼠标滚轴缩放图片的代码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript图片预加载技术&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F696.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19802570.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript图片预加载技术&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627249334/52shidai/feedsky/s.gif?r=http://www.52shidai.com/css-2/946.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/css-2/946.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>不像table那么容易，直接就可以让内容上线居中，在div中怎么简单实现了，当然实现起来有很多方法，目前先看一下我认为很简单的写法。 难点在于两点： 垂直居中； 图片是个置换元素，有些特殊的特性。 至于如何解决，下面是一个权衡的相对结构干净，CSS简单的解决方法： css部分 .box {         /*非IE的主流浏览器识别的垂直居中的方法*/         display: table-cell;         vertical-align:middle;         /*设置水平居中*/         text-align:center;         /* 针对IE的Hack */         *display: block;         *font-size: 175px;/*约为高度的0.873，200*0.873 约为175*/   [...]&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;解决Firefox下input button内文字垂直居中&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F957.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799317.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;解决Firefox下input button内文字垂直居中&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;兼容性很好的div、图片上下居中的css写法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F864.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19798701.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;兼容性很好的div、图片上下居中的css写法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;封装好的javascript图片滑动效果&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F338.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19804047.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;封装好的javascript图片滑动效果&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript 实现的完全兼容鼠标滚轴缩放图片的代码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F72.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799108.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript 实现的完全兼容鼠标滚轴缩放图片的代码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;javascript图片预加载技术&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fjavascript%2F696.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fcss-2%2F946.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19802570.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;javascript图片预加载技术&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627249334/52shidai/feedsky/s.gif?r=http://www.52shidai.com/css-2/946.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>居中</category><category>图片垂直居中</category><category>css样式</category><pubDate>Fri, 13 Apr 2012 12:58:40 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/css-2/946.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=946</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/css-2/946.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/627249334/6261166</fs:itemid></item><item><title>web前端工程师入门及发展方向</title><link>http://www.52shidai.com/web-front/944.html</link><content:encoded>&lt;p&gt;本文是写给那些想要入门web&lt;span class='wp_keywordlink'&gt;&lt;a href=&quot;http://www.52shidai.com&quot; title=&quot;时代前端&quot; target=&quot;_blank&quot;&gt;前端&lt;/a&gt;&lt;/span&gt;工程的初学者，高手请路过，也欢迎高手们拍砖。&lt;/p&gt;
&lt;p&gt;先说下web&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%89%8d%e7%ab%af%e5%b7%a5%e7%a8%8b%e5%b8%88&quot; title=&quot;查看 前端工程师 中的全部文章&quot; target=&quot;_blank&quot;&gt;前端工程师&lt;/a&gt;&lt;/span&gt;的价值，目前web产品交互越来越复杂，用户使用体验和网站前端性能优化这些都得靠web&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%89%8d%e7%ab%af%e5%b7%a5%e7%a8%8b%e5%b8%88&quot; title=&quot;查看 前端工程师 中的全部文章&quot; target=&quot;_blank&quot;&gt;前端工程师&lt;/a&gt;&lt;/span&gt;去做web&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.52shidai.com/tag/%e5%89%8d%e7%ab%af%e5%b7%a5%e7%a8%8b%e5%b8%88&quot; title=&quot;查看 前端工程师 中的全部文章&quot; target=&quot;_blank&quot;&gt;前端工程师&lt;/a&gt;&lt;/span&gt;是设计加开发的综合体，web前端工程师是在开发人员中最直接面向产品，面向用户的设计人员，一个开发团队的成果是要靠web前端工程师去展现，因为用户不会去关心后台的处理有多么强大 ；在设计人员中web前端工程师是直接面向开发人员的设计人员，向开发人员以一种计算机语言的方式传递其设计理念，web前端工程师在整个团队中是很关键的。&lt;/p&gt;
&lt;p&gt;在我眼中一名合格的web前端工程师必须得掌握HTML、CSS和JavaScript。只懂其中一个或两个还不行，你必须对这三门语言都很熟悉。也不是说必须对这三门语言都非常精通，但你至少要能够运用它们完成大多数任务，而无需地频繁地寻求别人的帮助。&lt;/p&gt;
&lt;p&gt;下面说下我眼中web前端工程师要掌握的基础知识和技能：&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;1 网页的基本结构（HTML + CSS）&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;HTML是一种标记语言，而不是编程语言，最基本是标签是&amp;lt;html&amp;gt;和&amp;lt;body&amp;gt;，CSS是用来定义如何显示HTML元素的。对HTML+CSS很容易入门，但很多人不够深入，举几个例子：&amp;lt;meta&amp;gt; 标签是作什么用的？margin-left与left有什么区别，应该在什么情况下使用？再出个DIV+CSS布局问题：一个宽度不确定的DIV里面放三个水平对齐的DIV，左右两个DIV宽度固定为150px，中间那个DIV充满剩余的宽度。如果这些问题你目前还不知道，对那个布局问题几分钟内不能解决，说明你对HTML+CSS还不够深入。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;2 浏览器是怎么展现网页的&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;不同内核的浏览器对网页的渲染是不一样的，目前浏览器都有客户端调试工具，&lt;/p&gt;
&lt;p&gt;在做web性能优化时，对浏览器渲染及细节要进一步了解。说个比较有用的知识点：目前浏览器并行加载的上限是6，老版本的浏览器会有所不同。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;3 网页的生命周期&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;不同的web框架下，页面的生命周期会有所不同，大体还是一样：客户端发送GET请求，服务器返回相应页面，客户端完成操作及数据，然后POST给服务器。一定要对数据的传递(前台与后台,页面之间)的细节了然于心。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;4 DHTML DOM BOM  Javascript AJAX&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;这是Web前端开发的重中之中，大多数时候我们都在和他们打交道。说几个注意点：javascript是单线程编程，所谓的javascript异步编程只不过是计划在未来的某个时间上执行相应事件而已；详细了解DOM事件机制；客户端存储（HTML5中增加了localStorage和sessionStorage）；javascript不像服务器端语言那样严谨，调试不是很方便，所以一开始要养成严谨的javascript编辑习惯；javascript很强大很灵活，不要幻想短时间内熟练（更别说精通）它，并写些框架、类库，初始阶段还是先用熟练已成熟的框架（比如jquery）当入门；一定要熟练使用客户端调试工具。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;6 服务器端语言开发经验，PS切图技术&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Web前端开发介于设计与开发中间，所以两端的东西都得懂点。编辑语言是相通的，之前编写过服务器语言，对学习javascript是十分有益的，从图片转成静态HTML页面，少不了PS切图技术。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;5 浏览器的兼容性&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;由于历史原因 ，浏览器的兼容性一直都折磨web前端工程师的地方，虽然有W3组织，并制定了一些规范，虽然浏览器产商都正在努力改进并接近其规范，但现实网络环境中各种内核、各种版本的浏览器都有一席之地。解决浏览器兼容性靠经验积累，可喜的事这方面资料网上有很多。&lt;a title=&quot;http://www.w3help.org/zh-cn/&quot; href=&quot;http://www.w3help.org/zh-cn/&quot;&gt;http://www.w3help.org/zh-cn/&lt;/a&gt;这是个很好的参考网站。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;6 快速学习能力和主动学习意愿&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;web前端的发展很快，从事这一行业一定要有快速学习能力和主动学习意愿，这样才能适应web产品的要求。在web前端领域没有绝对的是与非,解决一个问题的方法有很多，但我们要找到一个更合适的方法，找到一个更合适的方法需要经验作积累，总之web前端入门容易，想熟练很难，需要更多的主动学习意愿。&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #9b00d3;&quot;&gt;7 良好的沟通能力&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;优秀的前端工程师需要具备良好的沟通能力，因为你的工作与很多人的工作息息相关，比如项目经理、设计师、最终用户、开发工程师，前端工程师位于这几类人的交汇点上，这些角色的要求你都得照顾好，平衡这四类人的需求，拿出一个比较合适的方案。由此可见沟通能力对前端工程师要求更高。大家可以看看下面这篇博文：&lt;a title=&quot;http://www.cnblogs.com/trance/archive/2011/08/31/2160617.html&quot; href=&quot;http://www.cnblogs.com/trance/archive/2011/08/31/2160617.html&quot;&gt;http://www.cnblogs.com/trance/archive/2011/08/31/2160617.html&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;最后提供一些好的学习资料：&lt;/p&gt;
&lt;p&gt;1. W3C学习网站（&lt;a href=&quot;http://www.w3school.com.cn/&quot;&gt;http://www.w3school.com.cn/&lt;/a&gt;），上面的资料很全，很实用，是最好的入门资料。&lt;/p&gt;
&lt;p&gt;2. 《javascript权威指南》&lt;/p&gt;
&lt;p&gt;3. 《javascript+DOM编程艺术》&lt;/p&gt;
&lt;p&gt;4. 《javascript高级程序设计》&lt;/p&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;您可能感兴趣的文章&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/web-front/917.html&quot; title=&quot;前端工程师前途的路该怎么走&quot;&gt;前端工程师前途的路该怎么走&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端工程师前途的路该怎么走&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F917.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端工程师前途的路该怎么走&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端工程师必备的前端开发手册&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端工程师必备的前端开发手册&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web前端优化最佳实践：Content篇+图片篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F746.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19806004.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web前端优化最佳实践：Content篇+图片篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web 前端优化最佳实践之 CSS 篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F799.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19805386.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web 前端优化最佳实践之 CSS 篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web 前端优化最佳实践之 Cookie 篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F797.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19805727.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web 前端优化最佳实践之 Cookie 篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627249335/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/944.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/web-front/944.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>本文是写给那些想要入门web前端工程的初学者，高手请路过，也欢迎高手们拍砖。 先说下web前端工程师的价值，目前web产品交互越来越复杂，用户使用体验和网站前端性能优化这些都得靠web前端工程师去做web前端工程师是设计加开发的综合体，web前端工程师是在开发人员中最直接面向产品，面向用户的设计人员，一个开发团队的成果是要靠web前端工程师去展现，因为用户不会去关心后台的处理有多么强大 ；在设计人员中web前端工程师是直接面向开发人员的设计人员，向开发人员以一种计算机语言的方式传递其设计理念，web前端工程师在整个团队中是很关键的。 在我眼中一名合格的web前端工程师必须得掌握HTML、CSS和JavaScript。只懂其中一个或两个还不行，你必须对这三门语言都很熟悉。也不是说必须对这三门语言都非常精通，但你至少要能够运用它们完成大多数任务，而无需地频繁地寻求别人的帮助。 下面说下我眼中web前端工程师要掌握的基础知识和技能： 1 网页的基本结构（HTML + CSS） HTML是一种标记语言，而不是编程语言，最基本是标签是&amp;#60;html&amp;#62;和&amp;#60;body&amp;#62;，CSS是用来定义如何显示HTML元素的。对HTML+CSS很容易入门，但很多人不够深入，举几个例子：&amp;#60;meta&amp;#62; 标签是作什么用的？margin-left与left有什么区别，应该在什么情况下使用？再出个DIV+CSS布局问题：一个宽度不确定的DIV里面放三个水平对齐的DIV，左右两个DIV宽度固定为150px，中间那个DIV充满剩余的宽度。如果这些问题你目前还不知道，对那个布局问题几分钟内不能解决，说明你对HTML+CSS还不够深入。 2 浏览器是怎么展现网页的 不同内核的浏览器对网页的渲染是不一样的，目前浏览器都有客户端调试工具， 在做web性能优化时，对浏览器渲染及细节要进一步了解。说个比较有用的知识点：目前浏览器并行加载的上限是6，老版本的浏览器会有所不同。 3 网页的生命周期 不同的web框架下，页面的生命周期会有所不同，大体还是一样：客户端发送GET请求，服务器返回相应页面，客户端完成操作及数据，然后POST给服务器。一定要对数据的传递(前台与后台,页面之间)的细节了然于心。 4 DHTML DOM BOM  Javascript AJAX 这是Web前端开发的重中之中，大多数时候我们都在和他们打交道。说几个注意点：javascript是单线程编程，所谓的javascript异步编程只不过是计划在未来的某个时间上执行相应事件而已；详细了解DOM事件机制；客户端存储（HTML5中增加了localStorage和sessionStorage）；javascript不像服务器端语言那样严谨，调试不是很方便，所以一开始要养成严谨的javascript编辑习惯；javascript很强大很灵活，不要幻想短时间内熟练（更别说精通）它，并写些框架、类库，初始阶段还是先用熟练已成熟的框架（比如jquery）当入门；一定要熟练使用客户端调试工具。 6 服务器端语言开发经验，PS切图技术 Web前端开发介于设计与开发中间，所以两端的东西都得懂点。编辑语言是相通的，之前编写过服务器语言，对学习javascript是十分有益的，从图片转成静态HTML页面，少不了PS切图技术。 5 浏览器的兼容性 由于历史原因 ，浏览器的兼容性一直都折磨web前端工程师的地方，虽然有W3组织，并制定了一些规范，虽然浏览器产商都正在努力改进并接近其规范，但现实网络环境中各种内核、各种版本的浏览器都有一席之地。解决浏览器兼容性靠经验积累，可喜的事这方面资料网上有很多。http://www.w3help.org/zh-cn/这是个很好的参考网站。 6 快速学习能力和主动学习意愿 web前端的发展很快，从事这一行业一定要有快速学习能力和主动学习意愿，这样才能适应web产品的要求。在web前端领域没有绝对的是与非,解决一个问题的方法有很多，但我们要找到一个更合适的方法，找到一个更合适的方法需要经验作积累，总之web前端入门容易，想熟练很难，需要更多的主动学习意愿。 7 良好的沟通能力 优秀的前端工程师需要具备良好的沟通能力，因为你的工作与很多人的工作息息相关，比如项目经理、设计师、最终用户、开发工程师，前端工程师位于这几类人的交汇点上，这些角色的要求你都得照顾好，平衡这四类人的需求，拿出一个比较合适的方案。由此可见沟通能力对前端工程师要求更高。大家可以看看下面这篇博文：http://www.cnblogs.com/trance/archive/2011/08/31/2160617.html。 最后提供一些好的学习资料： 1. W3C学习网站（http://www.w3school.com.cn/），上面的资料很全，很实用，是最好的入门资料。 2. 《javascript权威指南》 3. 《javascript+DOM编程艺术》 4. 《javascript高级程序设计》 您可能感兴趣的文章前端工程师前途的路该怎么走&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端工程师前途的路该怎么走&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F917.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端工程师前途的路该怎么走&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端工程师必备的前端开发手册&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端工程师必备的前端开发手册&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web前端优化最佳实践：Content篇+图片篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F746.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19806004.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web前端优化最佳实践：Content篇+图片篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web 前端优化最佳实践之 CSS 篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F799.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19805386.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web 前端优化最佳实践之 CSS 篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Web 前端优化最佳实践之 Cookie 篇&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F797.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19805727.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Web 前端优化最佳实践之 Cookie 篇&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627249335/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/944.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>前端工程师</category><category>前端优化</category><pubDate>Thu, 12 Apr 2012 22:55:55 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/web-front/944.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=944</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/web-front/944.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/627249335/6261166</fs:itemid></item><item><title>前端工程师必备的前端开发手册</title><link>http://www.52shidai.com/web-front/941.html</link><content:encoded>&lt;p&gt;&lt;strong&gt;快捷导航：&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#001&quot;&gt;在线工具集&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#002&quot;&gt;常用Firefox插件&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#003&quot;&gt;IE下的调试工具&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#004&quot;&gt;参考手册&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#005&quot;&gt;批处理工具&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#006&quot;&gt;IDE及其他工具&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#007&quot;&gt;Bookmarklet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#008&quot;&gt;前端开发者社区及权威网站&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://snap.oncoding.cn/rebuild/revolution/article200903/19.html#009&quot;&gt;推荐订阅的博客和网站&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;另外还搞了个Firefox插件《&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/9385&quot;&gt;&lt;strong&gt;&lt;span class='wp_keywordlink'&gt;&lt;a href=&quot;http://www.52shidai.com&quot; title=&quot;时代前端&quot; target=&quot;_blank&quot;&gt;前端&lt;/a&gt;&lt;/span&gt;开发工具集&lt;/strong&gt;&lt;/a&gt;》，把资源整合到一个菜单下，方便查询。数据放在线上(Google AppEngine)，速度应该会有保证，更新也会比较方便。&lt;/p&gt;
&lt;h5&gt;&lt;a name=&quot;001&quot;&gt;&lt;/a&gt;在线工具集&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;书籍类：
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://book.mvnsearch.org/&quot;&gt;Book Shelf 2.0 beta&lt;/a&gt; —— 荐，分类很清晰，下载很方便 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.bookgo.org/&quot;&gt;Book Go!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cnshare.org/&quot;&gt;原版图书免费下载链接收集站&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.51cnnet.net/&quot;&gt;51CNNET.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;JavaScript类：
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://elfz.laacz.lv/beautify/&quot;&gt;Beautify JavaScript&lt;/a&gt; —— JavaScript格式化工具，效果很理想 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://code.google.com/apis/ajaxlibs/&quot;&gt;AJAX Libraries API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://regexpal.com/&quot;&gt;Regex Tester&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dean.edwards.name/packer/&quot;&gt;Compressor Packer&lt;/a&gt; —— 以前一直用这个压JS，自从有了TBCompressor，就放弃他了&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;CSS类：
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://mootools.net/slickspeed/&quot;&gt;CSS选择器性能测试&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.osxcn.com/csstidy/&quot;&gt;CSSTidy&lt;/a&gt; —— CSS格式化工具 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com/index.php/main/csscompressor/&quot;&gt;CSS Compressor&lt;/a&gt; —— CSS压缩&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;其他：
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.guidgen.com/&quot;&gt;GUID 生成器&lt;/a&gt; —— 做某些东西(Firefox插件)时需要唯一资源标志符时用 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.w3counter.com/globalstats.php&quot;&gt;W3Counter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://webwait.com/&quot;&gt;WebWait – Benchmark Your Website&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;002&quot;&gt;&lt;/a&gt;常用Firefox插件&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/6707&quot;&gt;支付宝安全控件&lt;/a&gt; 和 &lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/8625&quot;&gt;旺旺协议&lt;/a&gt; —— 网购专用，Firefox+浦发网银，无敌了 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/1843&quot;&gt;Firebug&lt;/a&gt; —— 这个不用介绍了吧，附空帏的&lt;a href=&quot;http://www.quchao.com/entry/fix-encoding-bug-with-open-with-editor-in-firebug/&quot;&gt;外部编辑器乱码修正版&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/6683&quot;&gt;Firecooike&lt;/a&gt; —— 支持Cookie的查看和编辑 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/7613&quot;&gt;Jiffy&lt;/a&gt; —— 调试性能的，用起来比较麻烦，没试过 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/5369&quot;&gt;YSlow&lt;/a&gt; —— Why Slow? YUI出品 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/7943&quot;&gt;Pixel Perfect&lt;/a&gt; —— 把设计稿直接拖到Firefox里进行对比 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/7575&quot;&gt;Rainbow for Firebug&lt;/a&gt; —— JS高亮，性能不是很理想&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/9373&quot;&gt;Fiddler 开关&lt;/a&gt; —— 简化在Firefox里切换Fiddler的操作，感谢Taobao UED的空帏同学 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/60&quot;&gt;Web Developer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/1673&quot;&gt;DevBoi&lt;/a&gt; —— 把Html, Dom, JavaScript等手册放在侧栏里，可以自定义增加，快捷键Ctrl+F9。可以在&lt;a href=&quot;http://www.martincohen.info/products/devboi/packages/&quot;&gt;这里&lt;/a&gt;找到更多的Package。 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/953&quot;&gt;RefControl&lt;/a&gt; —— 针对每个站点发送想要的HTTP Referer &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/748&quot;&gt;GreaseMonkey&lt;/a&gt; —— 看某个网站不爽，写个小脚本来优化下还是不错的 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/6647&quot;&gt;HttpFox&lt;/a&gt; —— 查看当前Http链接状态，类似IE下的HttpWatch &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/59&quot;&gt;User Agent Switcher&lt;/a&gt; —— 切换User-Agent，同时开发iphone和web版本的时候很方便 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/2464&quot;&gt;FoxyProxy&lt;/a&gt; —— 穿墙工具，配合&lt;a href=&quot;http://www.8558.org/&quot;&gt;专业代理公布器&lt;/a&gt;使用很和谐&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;003&quot;&gt;&lt;/a&gt;IE下的调试工具&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.fiddler2.com/&quot;&gt;Fiddle2&lt;/a&gt; —— 非常强悍的一款http流查看工具，默认支持IE，其他浏览器可以设置将{Document}\Scripts\BrowserPAC.js设为代理进行使用。Firefox下可用上述”Fiddler 开关”进行快速切换。支持&lt;a href=&quot;http://www.fiddler2.com/Fiddler2/extensions.asp&quot;&gt;插件&lt;/a&gt;。 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;amp;displaylang=en&quot;&gt;IE Developer Toolbar&lt;/a&gt; —— 查看元素、禁用缓存、禁用CSS\JS、Outline元素、查看生成的源码等功能，IE8自带了一个加强版的。 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;amp;displaylang=en&quot;&gt;Microsoft Script Debugger&lt;/a&gt; + &lt;a href=&quot;http://www.my-debugbar.com/wiki/CompanionJS/HomePage&quot;&gt;Companion.JS&lt;/a&gt; —— 调试JS用，虽然报错还是有误差，但是我已经满足了。安装顺序是：Microsoft Script Debugger，Companion.JS，在”IE选项-高级”里&lt;strong&gt;取消&lt;/strong&gt;禁用脚本调试。 &lt;/li&gt;
&lt;li&gt;多版本IE共存两种方案：
&lt;ul&gt;
&lt;li&gt;IE7/8 + &lt;a href=&quot;http://www.my-debugbar.com/wiki/IETester/HomePage&quot;&gt;IE Tester&lt;/a&gt; —— 大众型配置，可以基本满足日常需要。 &lt;/li&gt;
&lt;li&gt;IE6 + &lt;a href=&quot;http://finalbuilds.edskes.net/iecollection.htm&quot;&gt;Internet Explorer Collection&lt;/a&gt; —— 在IE 6用户占绝对优势以及IE 6神奇bug满天飞的时代，我还是推荐这种方案，因为只有神奇的原装IE 6，才能抵挡运营神奇的问题。另外如果还有其他机器可供支配的话，建议再装个IE 8 + IE Tester，因为IE 8下的Developer Toolbar还是有很大改进的，调试起来会方便一些。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;以下三个软件相对不重要些：
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/i9ipe3nxh2&quot;&gt;HttpWatch&lt;/a&gt; —— http流查看 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/qtdje57m5d&quot;&gt;Instant Source&lt;/a&gt; —— 可查看JS生成的源码 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/d361kjx8r8&quot;&gt;NetLimiterPro&lt;/a&gt; —— 网速限制&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;004&quot;&gt;&lt;/a&gt;参考手册&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/botkpkrscf&quot;&gt;XHTML、CSS &amp;amp; DOM W3C 手册&lt;/a&gt; —— &lt;a href=&quot;http://lifesinger.org/&quot;&gt;玉伯&lt;/a&gt;整理的版本，包含了W3C手册以及其他有用的资料。 &lt;/li&gt;
&lt;li&gt;苏昱的&lt;a href=&quot;http://assets.chencheng.org/resources/manual/css.chm&quot;&gt;CSS中文手册&lt;/a&gt;和&lt;a href=&quot;http://assets.chencheng.org/resources/manual/dom.chm&quot;&gt;Dom中文手册&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/manual/js.chm&quot;&gt;JScript语言参考&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/manual/xml.chm&quot;&gt;XML指南&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/manual/xmlhttp.chm&quot;&gt;XMLHTTP参考手册&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/manual/jquery-126-api.chm&quot;&gt;jQuery 1.2.6 API&lt;/a&gt;和&lt;a href=&quot;http://assets.chencheng.org/resources/manual/jQuery-and-jQuery-UI-Reference-1.2.chm&quot;&gt;jQuery and jQuery UI Reference 1.2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/manual/apache_manual_2.2/index.html&quot;&gt;Apache 2.2 中文版参考手册在线版&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/dujtrpyf65&quot;&gt;MySQL 5.1 参考手册&lt;/a&gt; (&lt;a href=&quot;http://assets.chencheng.org/resources/manual/mysql-manual-5.1-zh/index.html&quot;&gt;在线版&lt;/a&gt;) &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/aaif34xiz7&quot;&gt;PHP手册&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://developer.yahoo.com/yui/docs/assets/cheatsheets.zip&quot;&gt;YUI Cheatsheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.petefreitag.com/item/455.cfm&quot;&gt;Cheat Sheet Roundup – Over 30 Cheatsheets for developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/30n9e5z3pf&quot;&gt;23个Cheatsheet打包下载&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;005&quot;&gt;&lt;/a&gt;批处理工具&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://lifesinger.org/blog/wp-content/uploads/2008/10/TBCompressor_v2.4.zip&quot;&gt;TBCompressor&lt;/a&gt; —— 淘宝UED的JS/CSS压缩工具，详见&lt;a href=&quot;http://lifesinger.org/blog/?p=464&quot;&gt;玉伯的介绍&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/bat/pngOptimizer.zip&quot;&gt;pngOptimizer&lt;/a&gt; —— png优化工具 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://assets.chencheng.org/resources/bat/jpegTran.zip&quot;&gt;jpegTran&lt;/a&gt; —— jpeg去冗余meta工具&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;006&quot;&gt;&lt;/a&gt;IDE及其他工具&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/utgl7vyl0u&quot;&gt;Editplus v301 汉化版&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://bbs.iusesvn.com/forum-7-1.html&quot;&gt;Tortoise SVN&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.box.net/shared/lnlr2yjbgj&quot;&gt;移动版本的 Apache + PHP&lt;/a&gt; —— 灰常灰常好用，灰常灰常移动，见&lt;a href=&quot;http://www.gracecode.com/Archive/Display/2235&quot;&gt;明城的说明&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;…&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;007&quot;&gt;&lt;/a&gt;Bookmarklet(右键另存)&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a&gt;Firebug Lite&lt;/a&gt; —— &lt;a href=&quot;http://getfirebug.com/lite.html&quot;&gt;官方介绍&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a&gt;Xray&lt;/a&gt; —— &lt;a href=&quot;http://www.westciv.com/xray/index.html&quot;&gt;官方介绍&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a&gt;MRI&lt;/a&gt; —— &lt;a href=&quot;http://www.westciv.com/mri/&quot;&gt;官方介绍&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a&gt;‘+ window.document.documentElement.outerHTML+ ””&amp;gt;查看生成的源码&lt;/a&gt;，&lt;a&gt;‘+ window.document.documentElement.outerHTML+ ”);})()”&amp;gt;打开新窗口查看生成的源码&lt;/a&gt;—— for IE&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;008&quot;&gt;&lt;/a&gt;开发者社区及权威网站&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://developer.mozilla.org/En&quot;&gt;Mozilla Developer Center (MDC)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://developer.yahoo.com/&quot;&gt;YAHOO! Developer Network (YDN)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dev.opera.com/&quot;&gt;Dev.Opera&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://developer.apple.com/&quot;&gt;Apple Developer Connection&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-cn/default.aspx&quot;&gt;MSDN&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ibm.com/developerworks/cn/web/&quot;&gt;IBM Developers中国&lt;/a&gt; (&lt;a href=&quot;http://www.ibm.com/developerworks/cn/web/wa-front/&quot;&gt;Web 前端开发技术专题&lt;/a&gt;) &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;WebKit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dev.aol.com/&quot;&gt;AOL Developer Network&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.slideshare.net/&quot;&gt;SlideShare – Share PPT&lt;/a&gt; —— 在线PPT分享，资源丰富 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://code.google.com/doctype/&quot;&gt;Google Doctype&lt;/a&gt; —— Web开发人员的百科全书 &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.w3.org/&quot;&gt;W3C&lt;/a&gt; (&lt;a href=&quot;http://www.w3c.org.hk/&quot;&gt;香港&lt;/a&gt;，&lt;a href=&quot;http://www.chinaw3c.org/&quot;&gt;中国)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.positioniseverything.net/&quot;&gt;Position Is Everything&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.htmldog.com/&quot;&gt;HTML Dog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://zh.wikipedia.org/wiki/%E9%A6%96%E9%A1%B5&quot;&gt;维基百科&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a name=&quot;009&quot;&gt;&lt;/a&gt;推荐订阅的博客和网站(排名不分先后)&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;国外
&lt;ul&gt;
&lt;li&gt;内容聚合：&lt;a href=&quot;http://www.alistapart.com/&quot;&gt;A List Apart&lt;/a&gt;，&lt;a href=&quot;http://ajaxian.com/&quot;&gt;Ajaxian&lt;/a&gt;，&lt;a href=&quot;http://www.smashingmagazine.com/&quot;&gt;Smashing Magazine&lt;/a&gt;，&lt;a href=&quot;http://www.456bereastreet.com/&quot;&gt;456 berea street&lt;/a&gt;，&lt;a href=&quot;http://scriptandstyle.com/&quot;&gt;Script &amp;amp; Style&lt;/a&gt;，&lt;a href=&quot;http://www.cssglobe.com/&quot;&gt;CSS Globe&lt;/a&gt;，&lt;a href=&quot;http://css-tricks.com/&quot;&gt;CSS-Tricks&lt;/a&gt;，&lt;a href=&quot;http://www.sitepoint.com/&quot;&gt;SitePoint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;团队Blog：&lt;a href=&quot;http://developer.yahoo.com/yui/&quot;&gt;Yahoo! User Interface Library (YUI)&lt;/a&gt;，&lt;a href=&quot;http://blogs.msdn.com/ie/default.aspx&quot;&gt;IEBlog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;个人Blog：&lt;a href=&quot;http://ejohn.org/&quot;&gt;John Resig&lt;/a&gt;，&lt;a href=&quot;http://www.quirksmode.org/&quot;&gt;PPK: QuirksMode&lt;/a&gt;，&lt;a href=&quot;http://www.crockford.com/&quot;&gt;Douglas Crockford&lt;/a&gt;，&lt;a href=&quot;http://dean.edwards.name/&quot;&gt;Dean Edwards&lt;/a&gt;，&lt;a href=&quot;http://nate.koechley.com/blog/&quot;&gt;Nate Koechley&lt;/a&gt;，&lt;a href=&quot;http://www.julienlecomte.net/blog/&quot;&gt;Julien Lecomte&lt;/a&gt;，&lt;a href=&quot;http://meyerweb.com/&quot;&gt;Eric A. Meyer&lt;/a&gt;，&lt;a href=&quot;http://www.andybudd.com/&quot;&gt;Andy Budd&lt;/a&gt;，&lt;a href=&quot;http://blog.stevenlevithan.com/&quot;&gt;Steven Levithan&lt;/a&gt;，&lt;a href=&quot;http://blog.hedgerwow.com/&quot;&gt;HedgerWow&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;国内
&lt;ul&gt;
&lt;li&gt;内容聚合：&lt;a href=&quot;http://www.blueidea.com/&quot;&gt;Blueidea&lt;/a&gt;，&lt;a href=&quot;http://bbs.51js.com/&quot;&gt;无忧脚本&lt;/a&gt;，&lt;a href=&quot;http://www.w3cn.org/&quot;&gt;网页设计师(W3CN)&lt;/a&gt;，&lt;a href=&quot;http://www.ijavascript.cn/&quot;&gt;JavaScript教程网&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;团队Blog：&lt;a href=&quot;http://ued.taobao.com/&quot;&gt;淘宝&lt;/a&gt;，&lt;a href=&quot;http://ued.koubei.com/&quot;&gt;口碑&lt;/a&gt;，&lt;a href=&quot;http://www.aliued.com/&quot;&gt;阿里巴巴国际站&lt;/a&gt;，&lt;a href=&quot;http://www.aliued.cn/&quot;&gt;阿里巴巴中文站&lt;/a&gt;，&lt;a href=&quot;http://www.f-dev.com/&quot;&gt;阿里巴巴中文站前端开发团队(方凳)&lt;/a&gt;，&lt;a href=&quot;http://ued.alimama.com/&quot;&gt;阿里妈妈&lt;/a&gt;，&lt;a href=&quot;http://ued.alipay.com/&quot;&gt;支付宝&lt;/a&gt;，&lt;a href=&quot;http://www.alisoftued.com/&quot;&gt;阿里软件&lt;/a&gt;，&lt;a href=&quot;http://blog.19lou.com/?uid-10143366&quot;&gt;19楼&lt;/a&gt;，&lt;a href=&quot;http://www.9skyucd.com/&quot;&gt;九天音乐&lt;/a&gt;，&lt;a href=&quot;http://www.kdued.com/&quot;&gt;金蝶与友商网&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;个人Blog，这里列出的是原创并更新相对频繁的博客，如有遗漏，请告之(sorrycc#gmail.com)：&lt;a href=&quot;http://www.planabc.net/&quot;&gt;怿飞&lt;/a&gt;，&lt;a href=&quot;http://www.gracecode.com/&quot;&gt;手气不错&lt;/a&gt;，&lt;a href=&quot;http://realazy.org/&quot;&gt;Realazy&lt;/a&gt;，&lt;a href=&quot;http://old9.blogsome.com/&quot;&gt;old9&lt;/a&gt;(需穿墙术)，&lt;a href=&quot;http://quchao.com/&quot;&gt;沙滩凉鞋(空帏)&lt;/a&gt;，&lt;a href=&quot;http://lifesinger.org/&quot;&gt;射雕(玉伯)&lt;/a&gt;，&lt;a href=&quot;http://woooh.com/&quot;&gt;Aether&lt;/a&gt;，&lt;a href=&quot;http://andymao.com/andy/&quot;&gt;振之&lt;/a&gt;，&lt;a href=&quot;http://www.aoao.org.cn/&quot;&gt;嗷嗷&lt;/a&gt;，&lt;a href=&quot;http://www.junchenwu.com/&quot;&gt;JunChen&lt;/a&gt;，&lt;a href=&quot;http://yuntian.cnblogs.com/&quot;&gt;爆牙齿&lt;/a&gt;，&lt;a href=&quot;http://dancewithnet.com/&quot;&gt;秦歌&lt;/a&gt;，&lt;a href=&quot;http://blog.360.yahoo.com/blog-sOW1QOA9crUyOdXFxOeK4xc-?cq=1&quot;&gt;克军&lt;/a&gt;，&lt;a href=&quot;http://5key.net/blog/&quot;&gt;5key&lt;/a&gt;，&lt;a href=&quot;http://www.chencheng.org/blog/2008/10/25/f2e-manual/www.linxz.cn&quot;&gt;小志&lt;/a&gt;，&lt;a href=&quot;http://www.htmlcssjs.com/blog/&quot;&gt;Rage(正淳)&lt;/a&gt;，&lt;a href=&quot;http://www.macji.com/&quot;&gt;麦鸡&lt;/a&gt;，&lt;a href=&quot;http://yy.mylovings.net/&quot;&gt;云烈&lt;/a&gt;，&lt;a href=&quot;http://robertmao.com/&quot;&gt;老冒&lt;/a&gt;，&lt;a href=&quot;http://www.tblog.com.cn/&quot;&gt;番茄红了&lt;/a&gt;，&lt;a href=&quot;http://www.joyqi.com/&quot;&gt;Joyqi&lt;/a&gt;，&lt;a href=&quot;http://www.v-sky.com/blog/&quot;&gt;卢力&lt;/a&gt;，&lt;a href=&quot;http://www.cssforest.org/blog/&quot;&gt;CSS森林(Ghost)&lt;/a&gt;，&lt;a href=&quot;http://www.twinsenliang.net/&quot;&gt;Twinsen&lt;/a&gt;，&lt;a href=&quot;http://blog.gulu77.com/&quot;&gt;Gulu77&lt;/a&gt;，&lt;a href=&quot;http://rlog.cn/&quot;&gt;Rlog&lt;/a&gt;，&lt;a href=&quot;http://dlog.org/&quot;&gt;Dlog&lt;/a&gt;，&lt;a href=&quot;http://www.zishu.cn/&quot;&gt;子鼠&lt;/a&gt;，&lt;a href=&quot;http://www.space007.com/&quot;&gt;西风坊&lt;/a&gt; …&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2  class=&quot;related_post_title&quot;&gt;您可能感兴趣的文章&lt;/h2&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.52shidai.com/seo/611.html&quot; title=&quot;前端开发的一些必备工具信息&quot;&gt;前端开发的一些必备工具信息&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发的一些必备工具信息&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F611.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803946.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发的一些必备工具信息&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;苹果让不懂编程的人也可以做APP开发&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798192.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;苹果让不懂编程的人也可以做APP开发&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;web前端工程师入门及发展方向&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;web前端工程师入门及发展方向&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发经验小结&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F184.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799512.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发经验小结&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不写代码也能开发HTML5游戏-可视化开发工具&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F825.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798250.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不写代码也能开发HTML5游戏-可视化开发工具&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627249336/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/941.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.52shidai.com/web-front/941.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>快捷导航： 在线工具集 常用Firefox插件 IE下的调试工具 参考手册 批处理工具 IDE及其他工具 Bookmarklet 前端开发者社区及权威网站 推荐订阅的博客和网站 另外还搞了个Firefox插件《前端开发工具集》，把资源整合到一个菜单下，方便查询。数据放在线上(Google AppEngine)，速度应该会有保证，更新也会比较方便。 在线工具集 书籍类： Book Shelf 2.0 beta —— 荐，分类很清晰，下载很方便 Book Go! 原版图书免费下载链接收集站 51CNNET.NET JavaScript类： Beautify JavaScript —— JavaScript格式化工具，效果很理想 AJAX Libraries API Regex Tester Compressor Packer —— 以前一直用这个压JS，自从有了TBCompressor，就放弃他了 CSS类： CSS选择器性能测试 CSSTidy —— CSS格式化工具 CSS Compressor —— CSS压缩 其他： GUID 生成器 —— 做某些东西(Firefox插件)时需要唯一资源标志符时用 W3Counter WebWait – [...]&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发的一些必备工具信息&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F611.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19803946.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发的一些必备工具信息&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;苹果让不懂编程的人也可以做APP开发&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F951.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798192.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;苹果让不懂编程的人也可以做APP开发&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;web前端工程师入门及发展方向&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F944.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;web前端工程师入门及发展方向&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;前端开发经验小结&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fseo%2F184.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/19/19799512.jpg&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;前端开发经验小结&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;116&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;不写代码也能开发HTML5游戏-可视化开发工具&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.52shidai.com%2Fhtml5-css3%2F825.html&amp;from=http%3A%2F%2Fwww.52shidai.com%2Fweb-front%2F941.html&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;&quot; src=&quot;http://static.wumii.com/site_images/2012/04/18/19798250.png&quot; width=&quot;110px&quot; height=&quot;110px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;不写代码也能开发HTML5游戏-可视化开发工具&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627249336/52shidai/feedsky/s.gif?r=http://www.52shidai.com/web-front/941.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>开发手册</category><category>前端开发</category><category>前端优化</category><pubDate>Thu, 12 Apr 2012 13:10:47 +0800</pubDate><author>admin</author><comments>http://www.52shidai.com/web-front/941.html#comments</comments><guid isPermaLink="false">http://www.52shidai.com/?p=941</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.52shidai.com/web-front/941.html</fs:srclink><fs:srcfeed>http://www.52shidai.com/feed</fs:srcfeed><fs:itemid>feedsky/52shidai/~8157488/627249336/6261166</fs:itemid></item></channel></rss>
