<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>权记 &#187; 浏览器</title>
	<atom:link href="http://www.quanlei.com/tag/%e6%b5%8f%e8%a7%88%e5%99%a8/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quanlei.com</link>
	<description>一个关于我们生活点滴的网站，一个记录我们酸甜苦辣的日志。</description>
	<lastBuildDate>Thu, 02 Feb 2012 06:37:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>在Swing中做更多web的事情</title>
		<link>http://www.quanlei.com/2011/09/swing-web-browser/</link>
		<comments>http://www.quanlei.com/2011/09/swing-web-browser/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 12:37:37 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Swing]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2754</guid>
		<description><![CDATA[在Swing客户端中有时候想加载网页，Flash，甚至需要一个很不错的富文本编辑器，这些需求Swing本身没有，或者很弱，比如富文本的支持。 接下来给你介绍一个第三方的Library &#8211; DJNativeSwing 支持什么呢？ web浏览器支持，HTML、Javascript和Swing交互支持 常见的JS富文本编辑器，比如FCKeditor,Ckeditor,TinyMCE,Dirty indicator等 嵌套Flash 语法高亮 mediaPlay(Win32) 其他&#8230;<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Swing Nixieclock（原子钟）效果" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fswing-nixieclock%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258436.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Swing Nixieclock（原子钟）效果</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Swing Table上的常用技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2Fswing-table%25E4%25B8%258A%25E7%259A%2584%25E5%25B8%25B8%25E7%2594%25A8%25E6%258A%2580%25E5%25B7%25A7%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Swing Table上的常用技巧</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Swing窗口Linux下不支持最大化问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F06%2Fswing%25E7%25AA%2597%25E5%258F%25A3linux%25E4%25B8%258B%25E4%25B8%258D%25E6%2594%25AF%25E6%258C%2581%25E6%259C%2580%25E5%25A4%25A7%25E5%258C%2596%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Swing窗口Linux下不支持最大化问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[09/49周主题] – Swing Tips" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2F0949-week-subject-swing%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[09/49周主题] – Swing Tips</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在Swing客户端中有时候想加载网页，Flash，甚至需要一个很不错的富文本编辑器，这些需求Swing本身没有，或者很弱，比如富文本的支持。</p>
<p>接下来给你介绍一个第三方的Library &#8211; DJNativeSwing</p>
<p class="btitle">支持什么呢？</p>
<ul>
<li>web浏览器支持，HTML、Javascript和Swing交互支持</li>
<li>常见的JS富文本编辑器，比如FCKeditor,Ckeditor,TinyMCE,Dirty indicator等</li>
<li>嵌套Flash</li>
<li>语法高亮</li>
<li>mediaPlay(Win32)</li>
<li>其他&#8230;</li>
</ul>
<p><img src="http://dl.dbank.com/p0ri7z8un7" alt="DJNativeSwing" /><br />
<span id="more-2754"></span><br />
<img src="http://dl.dbank.com/p0lsc5hsma" alt="DJNativeSwing" /></p>
<p><img src="http://dl.dbank.com/p0l6b3b9ba" alt="DJNativeSwing" /></p>
<p><img src="http://dl.dbank.com/p0i92lgfqx" alt="DJNativeSwing" /></p>
<p><img src="http://dl.dbank.com/p0zm2a25vo" alt="DJNativeSwing" /></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F&title=%E5%9C%A8Swing%E4%B8%AD%E5%81%9A%E6%9B%B4%E5%A4%9Aweb%E7%9A%84%E4%BA%8B%E6%83%85" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Swing Nixieclock（原子钟）效果" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fswing-nixieclock%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258436.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Swing Nixieclock（原子钟）效果</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Swing Table上的常用技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2Fswing-table%25E4%25B8%258A%25E7%259A%2584%25E5%25B8%25B8%25E7%2594%25A8%25E6%258A%2580%25E5%25B7%25A7%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Swing Table上的常用技巧</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Swing窗口Linux下不支持最大化问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F06%2Fswing%25E7%25AA%2597%25E5%258F%25A3linux%25E4%25B8%258B%25E4%25B8%258D%25E6%2594%25AF%25E6%258C%2581%25E6%259C%2580%25E5%25A4%25A7%25E5%258C%2596%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Swing窗口Linux下不支持最大化问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[09/49周主题] – Swing Tips" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2F0949-week-subject-swing%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[09/49周主题] – Swing Tips</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/09/swing-web-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5检测技术</title>
		<link>http://www.quanlei.com/2011/02/html5%e6%a3%80%e6%b5%8b%e6%8a%80%e6%9c%af/</link>
		<comments>http://www.quanlei.com/2011/02/html5%e6%a3%80%e6%b5%8b%e6%8a%80%e6%9c%af/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 13:34:26 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2142</guid>
		<description><![CDATA[有四种基本技术可以用于检测浏览器是否支持某种HTML5特性： 1、检测全局对象（诸如window或者navigator）是否拥有特定的属性； 2、创建一个元素，然后检测该元素的 DOM 对象是否拥有特定的属性。 3、创建一个元素，然后检测这个元素的 DOM 对象是否拥有特定的方法，同时调用这个方法并检查它的返回值。 4、创建一个元素，给这个元素的 DOM 对象设定特定的属性值， 然后检查浏览器是否保留了该属性值。 这是常见的自主检测的方法，不过现在没必要如此麻烦了，Moderniz是一个基于MIT许可证书发布的开源 Javascript 类库，用于检测浏览器是否支持 HTML5 及 CCS3特性。 加载后，直接使用可以检测你想检测的方法是否被浏览器所支持： 画布 检测： 画布文字 检测： 视频 检测： 视频格式 检测： 本地存储 检测： Web Workers 检测： 是否离线 Web 应用 检测： 地理位置 检测： 地理位置 检测： 输入框检测： HTML5新增了很多语义输入框标签，具体使用哪个就自己加，这里以date为例，常见的还有email，time，datetime，url，tel，range等 占位文字 检测： 自动聚焦 检测：<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5 Geolocation</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>有四种基本技术可以用于检测浏览器是否支持某种HTML5特性：</p>
<p>1、检测全局对象（诸如window或者navigator）是否拥有特定的属性；</p>
<p>2、创建一个元素，然后检测该元素的 DOM 对象是否拥有特定的属性。</p>
<p>3、创建一个元素，然后检测这个元素的 DOM 对象是否拥有特定的方法，同时调用这个方法并检查它的返回值。</p>
<p>4、创建一个元素，给这个元素的 DOM 对象设定特定的属性值， 然后检查浏览器是否保留了该属性值。</p>
<p>这是常见的自主检测的方法，不过现在没必要如此麻烦了，Moderniz是一个基于MIT许可证书发布的开源 Javascript 类库，用于检测浏览器是否支持 HTML5 及 CCS3特性。<span id="more-2142"></span></p>
<p>加载后，直接使用可以检测你想检测的方法是否被浏览器所支持：</p>
<p><strong>画布 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.canvas) {
   // 哇塞，支持，好吧，那就画点儿啥吧。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>画布文字 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.canvastext) {
   // 哇塞，支持，好吧，那就画点儿文字啥的。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>视频 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.video) {
   // 哇塞，支持，好吧，那就播放个视频吧。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>视频格式 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.video) {
   // 可以播放视频，但是播放哪一种格式呢？
   if (Moderniz.video.ogg) {
   // 尝试在Ogg容器中使用Ogg Theora+Vorbis
   else{
   //尝试在MP4容器中使用H.264视频+AAC音频
   }
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>本地存储 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.localstorage) {
   // 哇塞，支持window.localStorge。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>Web Workers 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.webworkers) {
   // 哇塞，支持window.Worker。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>是否离线 Web 应用 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.applicationcache) {
   // 哇塞，支持window.applicationCache。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>地理位置 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.geolocation) {
   // 哇塞，支持navigator.geolocation。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>地理位置 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.geolocation) {
   // 哇塞，支持navigator.geolocation。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>输入框检测：</strong><br />
HTML5新增了很多语义输入框标签，具体使用哪个就自己加，这里以date为例，常见的还有email，time，datetime，url，tel，range等</p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.inputtypes.date) {
   // 哇塞，支持type=date。
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>占位文字 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.input.placeholder) {
   // 哇塞，这下search框的占位提示方便多了
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><strong>自动聚焦 检测：</strong></p>
<pre class="brush: plain; title: ; notranslate">
if (Moderniz.input.autofocus) {
   // 哇塞，不需要脚本实现了
} else {
  // 晕，不支持，那只能想别的方法了。
}
</pre>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25e6%25a3%2580%25e6%25b5%258b%25e6%258a%2580%25e6%259c%25af%2F&title=HTML5%E6%A3%80%E6%B5%8B%E6%8A%80%E6%9C%AF" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5 Geolocation</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/02/html5%e6%a3%80%e6%b5%8b%e6%8a%80%e6%9c%af/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>跨浏览器的HTML5 placeholder 实现</title>
		<link>http://www.quanlei.com/2010/09/%e8%b7%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e7%9a%84html5-placeholder-%e5%ae%9e%e7%8e%b0/</link>
		<comments>http://www.quanlei.com/2010/09/%e8%b7%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e7%9a%84html5-placeholder-%e5%ae%9e%e7%8e%b0/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 09:44:58 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=1673</guid>
		<description><![CDATA[HTML 5的input元素引入了placeholder的属性，就是为了实现input提示的，但是在不支持HTML5的浏览器下就要考虑兼容问题，下面的这个实现就很好的解决了兼容问题： 原文出处：http://www.ued163.com/?p=1468 另有不使用placeholder的常规做法，比直接通过js操作input value要好： 原文出处：http://www.zhoumingzhi.com/2009/12/17/inline-form-labels/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5 Geolocation</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5检测技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5检测技术</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>HTML 5的input元素引入了placeholder的属性，就是为了实现input提示的，但是在不支持HTML5的浏览器下就要考虑兼容问题，下面的这个实现就很好的解决了兼容问题：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;style&gt;
.placeholder {
	color: #a9a9a9;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;input type=&quot;text&quot; placeholder=&quot;请输入一些文字&quot; /&gt;
&lt;/div&gt;
&lt;script&gt;

(function() {
	var tmp = document.createElement(&quot;input&quot;);
	window.supports = {
		// 检测input是否支持placeholder特性
		placeholder: &quot;placeholder&quot; in tmp
	}
})();

// 绑定input的placeholder
function bindPlaceholder(input) {
	if(!window.supports.placeholder) {
		var jqInput = $(input),
			placeholder = jqInput.attr(&quot;placeholder&quot;);

		if(placeholder) {
			if(input.value == &quot;&quot;) {
				input.value = placeholder;
				$(input).addClass(&quot;placeholder&quot;);
			}
			jqInput.focus(function() {
				if(this.value == placeholder) {
					$(this).removeClass(&quot;placeholder&quot;);
					this.value = &quot;&quot;;
				}
			}).blur(function() {
				if(this.value == &quot;&quot;) {
					$(this).addClass(&quot;placeholder&quot;);
					this.value = placeholder;
				}
			});
		}
	}
}
$(&quot;input[placeholder]&quot;).each(function() {
	bindPlaceholder(this);
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><span id="more-1673"></span></p>
<p>原文出处：http://www.ued163.com/?p=1468</p>
<p>另有不使用placeholder的常规做法，比直接通过js操作input value要好：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;

&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;

&lt;style&gt;
.row {
  position: relative;
  padding: 1px;
}
.row .hint{
  opacity: 0.4;
  filter:alpha(opacity=40);
  padding: 2px 0 0 6px;
  position: absolute;
}
.row .textbox {
  height: 22px;
  outline: none;
  border: 1px solid Gray;
  padding: 4px 3px 2px;
  -webkit-border-radius: 2px
  -moz-border-radius: 2px;
}
.focus {
  padding: 0;
}
.focus .textbox {
  border: 2px solid #7B8AAC;
}

&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;row&quot;&gt;
  &lt;label class=&quot;hint&quot; for=&quot;textbox_name&quot;&gt;
    &lt;span&gt;请输入查询内容？&lt;/span&gt;
  &lt;/label&gt;
  &lt;input class=&quot;textbox&quot; type=&quot;text&quot; id=&quot;textbox_name&quot; /&gt;
&lt;/div&gt;
&lt;script&gt;
$(function() {
  $(&quot;.textbox&quot;).focus(function() {
    var self = $(this);
    self.closest(&quot;.row&quot;).addClass(&quot;focus&quot;);
    self.prev().css(&quot;display&quot;, &quot;none&quot;);
  }).blur(function() {
    var self = $(this);
    self.closest(&quot;.row&quot;).removeClass(&quot;focus&quot;);
    if(self.val() == &quot;&quot;) {
      self.prev().css(&quot;display&quot;, &quot;inline&quot;);
    }
  });
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>原文出处：http://www.zhoumingzhi.com/2009/12/17/inline-form-labels/</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25e8%25b7%25a8%25e6%25b5%258f%25e8%25a7%2588%25e5%2599%25a8%25e7%259a%2584html5-placeholder-%25e5%25ae%259e%25e7%258e%25b0%2F&title=%E8%B7%A8%E6%B5%8F%E8%A7%88%E5%99%A8%E7%9A%84HTML5+placeholder+%E5%AE%9E%E7%8E%B0" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5 Geolocation</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5检测技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">HTML5检测技术</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2010/09/%e8%b7%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e7%9a%84html5-placeholder-%e5%ae%9e%e7%8e%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>转载：支付宝浏览器与操作系统统计报告(2010.04)</title>
		<link>http://www.quanlei.com/2010/05/%e8%bd%ac%e8%bd%bd%ef%bc%9a%e6%94%af%e4%bb%98%e5%ae%9d%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%8e%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e7%bb%9f%e8%ae%a1%e6%8a%a5%e5%91%8a2010-04/</link>
		<comments>http://www.quanlei.com/2010/05/%e8%bd%ac%e8%bd%bd%ef%bc%9a%e6%94%af%e4%bb%98%e5%ae%9d%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%8e%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e7%bb%9f%e8%ae%a1%e6%8a%a5%e5%91%8a2010-04/#comments</comments>
		<pubDate>Tue, 11 May 2010 05:54:56 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[前端]]></category>
		<category><![CDATA[支付宝]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[系统]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=1552</guid>
		<description><![CDATA[支付宝注册用户已经突破 3 亿，2009 年网购交易额达到 2670 亿元 (via)，支付宝用户特征在一定程度上反映了中国电子商务用户的普遍情况。 基于支付宝网站流量统计数据，支付宝前端开发组最近发布了浏览器与操作系统统计报告。这份报告对电子支付行业以及所有互联网电子商务网站都具有现实意义。 &#62;更大阅读窗口 原文：http://ued.alipay.com/2010/04/alipay-client-data-report/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Notes: 银联手机支付" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fnotes-dnapay%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/31/20210915.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Notes: 银联手机支付</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="为不同大小的浏览器视窗使用不同的样式表" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258462.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">为不同大小的浏览器视窗使用不同的样式表</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>支付宝注册用户已经突破 3 亿，2009 年网购交易额达到 2670 亿元 (via)，支付宝用户特征在一定程度上反映了中国电子商务用户的普遍情况。<br />
基于支付宝网站流量统计数据，支付宝前端开发组最近发布了浏览器与操作系统统计报告。这份报告对电子支付行业以及所有互联网电子商务网站都具有现实意义。</p>
<div id="__ss_3742998" style="width:600px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="606" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=alipay-client-data-100416004018-phpapp02&amp;stripped_title=alipay-clientdata" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="600" height="500" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=alipay-client-data-100416004018-phpapp02&amp;stripped_title=alipay-clientdata" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0pt 12px;"><a href="http://www.slideshare.net/janlay/alipay-clientdata" target="_blank">&gt;更大阅读窗口</a></div>
</div>
<p>原文：http://ued.alipay.com/2010/04/alipay-client-data-report/</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25e8%25bd%25ac%25e8%25bd%25bd%25ef%25bc%259a%25e6%2594%25af%25e4%25bb%2598%25e5%25ae%259d%25e6%25b5%258f%25e8%25a7%2588%25e5%2599%25a8%25e4%25b8%258e%25e6%2593%258d%25e4%25bd%259c%25e7%25b3%25bb%25e7%25bb%259f%25e7%25bb%259f%25e8%25ae%25a1%25e6%258a%25a5%25e5%2591%258a2010-04%2F&title=%E8%BD%AC%E8%BD%BD%EF%BC%9A%E6%94%AF%E4%BB%98%E5%AE%9D%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%8E%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%BB%9F%E8%AE%A1%E6%8A%A5%E5%91%8A%282010.04%29" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Notes: 银联手机支付" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fnotes-dnapay%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/31/20210915.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Notes: 银联手机支付</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="为不同大小的浏览器视窗使用不同的样式表" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258462.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">为不同大小的浏览器视窗使用不同的样式表</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2594%25AF%25E4%25BB%2598%25E5%25AE%259D%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E4%25B8%258E%25E6%2593%258D%25E4%25BD%259C%25E7%25B3%25BB%25E7%25BB%259F%25E7%25BB%259F%25E8%25AE%25A1%25E6%258A%25A5%25E5%2591%258A2010-04%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2010/05/%e8%bd%ac%e8%bd%bd%ef%bc%9a%e6%94%af%e4%bb%98%e5%ae%9d%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%8e%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e7%bb%9f%e8%ae%a1%e6%8a%a5%e5%91%8a2010-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为不同大小的浏览器视窗使用不同的样式表</title>
		<link>http://www.quanlei.com/2010/04/different-stylesheets-for-differently-sized-browser-windows/</link>
		<comments>http://www.quanlei.com/2010/04/different-stylesheets-for-differently-sized-browser-windows/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 11:26:12 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=1473</guid>
		<description><![CDATA[同一个网站，访问它的浏览器可能会是不同的宽度，常见的有320px，480px，800px，1024px，1280px，1920px等，为不同大小的浏览器视窗提供不同的访问效果，提高用户的使用体验，同时网站本身也可以为不同受众提供不同的资源。 下面提供两种解决方案： 一、通过 W3C standard 来定义，例如： 上面的代码表示：当访问网站的设备浏览器宽度大于等于800px时，将使用800.css这个样式。 又如： 上面的代码表示：当访问网站的设备浏览器宽度在701px和900px之间时，将使用medium.css这个样式。 目前Mozilla， Opera和WebKit等浏览器的当前版本都支持这个标准，不幸的是IE浏览器并不支持此标准，包括IE8，以及IE9 Previous。 不要着急，方案二将解决此问题。 二、通过JQuery来动态调整页面样式 1、首先定义两个link，当然你也可以是一个，第二个是要更改的css 2、下面的JavaScript代码将根据不同的浏览器大小，更改css 查看例子： 例子1 例子2 例子3 下载所有例子 英文原址：http://css-tricks.com/resolution-specific-stylesheets/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[翻译] Simple Tooltip with jQuery &amp; CSS" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2Fsimple-tooltip-with-jquery-css%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258223.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[翻译] Simple Tooltip with jQuery &amp; CSS</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：CSS3渐变按钮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2Fshare-multiple-gradient-buttons-with-css3%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/08/18/23386672.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">分享：CSS3渐变按钮</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="jQuery图像剪裁插件 – Jcrop" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fjquery-plugh-jcrop%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258473.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">jQuery图像剪裁插件 – Jcrop</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>同一个网站，访问它的浏览器可能会是不同的宽度，常见的有320px，480px，800px，1024px，1280px，1920px等，为不同大小的浏览器视窗提供不同的访问效果，提高用户的使用体验，同时网站本身也可以为不同受众提供不同的资源。</p>
<p><a href="http://www.quanlei.com/wp-content/uploads/2010/04/resolutiondeplayouts.jpg" rel="lightbox[1473]"><img class="aligncenter size-full wp-image-1474" title="resolutiondeplayouts" src="http://www.quanlei.com/wp-content/uploads/2010/04/resolutiondeplayouts.jpg" alt="" width="570" height="533" /></a></p>
<p>下面提供两种解决方案：</p>
<p>一、通过 <a href="http://www.w3.org/TR/css3-mediaqueries/">W3C standard</a> 来定义，例如：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; media=&quot;screen and (min-device-width: 800px)&quot; href=&quot;800.css&quot; /&gt;
</pre>
<p>上面的代码表示：当访问网站的设备浏览器宽度大于等于800px时，将使用800.css这个样式。</p>
<p>又如：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel='stylesheet' media='screen and (min-width: 701px) and (max-width: 900px)' href='css/medium.css' /&gt;
</pre>
<p>上面的代码表示：当访问网站的设备浏览器宽度在701px和900px之间时，将使用medium.css这个样式。</p>
<p>目前Mozilla， Opera和WebKit等浏览器的当前版本都支持这个标准，不幸的是IE浏览器并不支持此标准，包括IE8，以及IE9 Previous。</p>
<p>不要着急，方案二将解决此问题。</p>
<p><span id="more-1473"></span></p>
<p>二、通过JQuery来动态调整页面样式<br />
1、首先定义两个link，当然你也可以是一个，第二个是要更改的css</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;main.css&quot; /&gt;
&lt;link id=&quot;size-stylesheet&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;narrow.css&quot; /&gt;
</pre>
<p>2、下面的JavaScript代码将根据不同的浏览器大小，更改css</p>
<pre class="brush: jscript; title: ; notranslate">
unction adjustStyle(width) {
    width = parseInt(width);
    if (width &lt; 701) {
        $(&quot;#size-stylesheet&quot;).attr(&quot;href&quot;, &quot;css/narrow.css&quot;);
    } else if ((width &gt;= 701) &amp;&amp; (width &lt; 900)) {
        $(&quot;#size-stylesheet&quot;).attr(&quot;href&quot;, &quot;css/medium.css&quot;);
    } else {
       $(&quot;#size-stylesheet&quot;).attr(&quot;href&quot;, &quot;css/wide.css&quot;);
    }
}

$(function() {
    adjustStyle($(this).width());
    $(window).resize(function() {
        adjustStyle($(this).width());
    });
});
</pre>
<p>查看例子：</p>
<div class="demobtns"><a href="http://css-tricks.com/examples/ResolutionDependantLayout/example-one.php">例子1</a> <a href="http://css-tricks.com/examples/ResolutionDependantLayout/example-two.php">例子2</a> <a href="http://css-tricks.com/examples/ResolutionDependantLayout/example-three.php">例子3</a> <a href="http://css-tricks.com/examples/ResolutionDependantLayout.zip">下载所有例子</a></div>
<p>英文原址：http://css-tricks.com/resolution-specific-stylesheets/</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F&title=%E4%B8%BA%E4%B8%8D%E5%90%8C%E5%A4%A7%E5%B0%8F%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8%E8%A7%86%E7%AA%97%E4%BD%BF%E7%94%A8%E4%B8%8D%E5%90%8C%E7%9A%84%E6%A0%B7%E5%BC%8F%E8%A1%A8" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[翻译] Simple Tooltip with jQuery &amp; CSS" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2Fsimple-tooltip-with-jquery-css%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258223.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[翻译] Simple Tooltip with jQuery &amp; CSS</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：CSS3渐变按钮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2Fshare-multiple-gradient-buttons-with-css3%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/08/18/23386672.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">分享：CSS3渐变按钮</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="jQuery图像剪裁插件 – Jcrop" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fjquery-plugh-jcrop%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fdifferent-stylesheets-for-differently-sized-browser-windows%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258473.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">jQuery图像剪裁插件 – Jcrop</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2010/04/different-stylesheets-for-differently-sized-browser-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>本地图片预览(支持IE6，IE7，IE8， Firefox3)</title>
		<link>http://www.quanlei.com/2010/01/view-picture-on-local-machine/</link>
		<comments>http://www.quanlei.com/2010/01/view-picture-on-local-machine/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:11:09 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[Demo]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[本地图片预览]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=1162</guid>
		<description><![CDATA[最近在Web项目开发过程中遇到的本地图片预览的需求，虽然最后因为其他原因没能使用，但是也算有些了解，整理出来。 这里我们按浏览器分，主要包括IE6，IE7/8 和Firefox3， 不包含Opera，Safari和Chrome，这三个基本上需求很小，没有研究。 总结一下就是： IE6下可以直接从file的value获取图片路径来显示预览。 IE7和IE8下通过select获取file的图片路径，再用滤镜来显示预览。 FireFox下调用file的getAsDataURL方法获取Data URI数据来显示预览。 下面是一个完整的Demo： &#60;html&#62; &#60;head&#62; &#60;script src=&#34;http://deepliquid.com/projects/Jcrop/js/jquery.min.js&#34;&#62;&#60;/script&#62; &#60;/head&#62; &#60;body&#62; &#60;input type=&#34;file&#34; id=&#34;picture&#34; name=&#34;picture&#34; size=&#34;35&#34; value=&#34;&#34; onchange=&#34;setImg(this)&#34;/&#62; &#60;div id=&#34;preview_fake&#34; style=&#34;margin-left: 50px&#34;&#62; &#60;/div&#62; &#60;img id=&#34;preview_size_fake&#34;/&#62; &#60;style type=&#34;text/css&#34;&#62; #preview_fake{ /* 该对象用于在IE下显示预览图片 */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale); } #preview_size_fake{ /* 该对象只用来在IE下获得图片的原始尺寸，无其它用途 */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image); visibility:hidden; } &#60;/style&#62; &#60;script type=&#34;text/javascript&#34;&#62; function setImg(obj){ if( !obj.value.match( /.jpg&#124;.gif&#124;.png&#124;.bmp/i ) ){ [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="IE6 window.location 跳转问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F01%2Fie6-windowlocation-%25E8%25B7%25B3%25E8%25BD%25AC%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">IE6 window.location 跳转问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="XP下 IE6 英文系统 Date 问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2Fxp%25E4%25B8%258B-ie6-%25E8%258B%25B1%25E6%2596%2587%25E7%25B3%25BB%25E7%25BB%259F-date-%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">XP下 IE6 英文系统 Date 问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/14周主题] – IE6 hacks" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fweek-subject-1014-ie6-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258336.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[10/14周主题] – IE6 hacks</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IE6 IE7 FF的区别" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Fie6-ie7-ff%25E7%259A%2584%25E5%258C%25BA%25E5%2588%25AB%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">IE6 IE7 FF的区别</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IE and firefox comflict in web design" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F03%2Fie-and-firefox-comflict-in-web-design%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">IE and firefox comflict in web design</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近在Web项目开发过程中遇到的本地图片预览的需求，虽然最后因为其他原因没能使用，但是也算有些了解，整理出来。</p>
<p>这里我们按浏览器分，主要包括IE6，IE7/8 和Firefox3， 不包含Opera，Safari和Chrome，这三个基本上需求很小，没有研究。</p>
<h3>总结一下就是：</h3>
<blockquote><p>IE6下可以直接从file的value获取图片路径来显示预览。<br />
IE7和IE8下通过select获取file的图片路径，再用滤镜来显示预览。<br />
FireFox下调用file的getAsDataURL方法获取Data URI数据来显示预览。</p></blockquote>
<h3>下面是一个完整的Demo：</h3>
<div class="runcode">
<p><textarea name="runcode" style="overflow-y:visible;width:610px;font-size:12px" class="runcode_text" id="runcode_ZjDqCq">
&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;http://deepliquid.com/projects/Jcrop/js/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type=&quot;file&quot; id=&quot;picture&quot; name=&quot;picture&quot; size=&quot;35&quot; value=&quot;&quot; onchange=&quot;setImg(this)&quot;/&gt;
&lt;div id=&quot;preview_fake&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;/div&gt;
&lt;img id=&quot;preview_size_fake&quot;/&gt;
&lt;style type=&quot;text/css&quot;&gt;
        #preview_fake{
            /* 该对象用于在IE下显示预览图片
            */
            filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
        }
        #preview_size_fake{
            /* 该对象只用来在IE下获得图片的原始尺寸，无其它用途
            */
            filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);
            visibility:hidden;
        }
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    function setImg(obj){
        if( !obj.value.match( /.jpg|.gif|.png|.bmp/i ) ){
            alert('图片格式无效！');
            return false;
        }
        $(&quot;#preview_fake&quot;).empty();
        var img = document.createElement(&quot;img&quot;);
        img.setAttribute(&quot;src&quot;, &quot;&quot;);
        img.setAttribute(&quot;id&quot;, &quot;preview&quot;);
        document.getElementById(&quot;preview_fake&quot;).appendChild(img);
        if($.browser.msie){
           if($.browser.version == 6.0){
              $(&quot;#preview&quot;).attr(&quot;src&quot;,obj.value);
           }else{
              var objPreview = document.getElementById('preview' );
              var objPreviewFake = document.getElementById('preview_fake' );
              var objPreviewSizeFake = document.getElementById('preview_size_fake' );
              obj.select();
              var imgSrc =document.selection.createRange().text;
              objPreviewFake.filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src= imgSrc;
              objPreviewSizeFake.filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src= imgSrc;
              autoSizePreview(objPreviewFake,objPreviewSizeFake.offsetWidth,objPreviewSizeFake.offsetHeight );
              objPreview.style.display ='none';
           }
        }
        if($.browser.mozilla){
            $(&quot;#preview&quot;).attr(&quot;src&quot;,obj.files[0].getAsDataURL());
        }
        if($.browser.opera){
            alert(&quot;暂时不支持Opera浏览器&quot;);
        }
        if($.browser.safari){
            alert(&quot;暂时不支持Safari浏览器&quot;);
        }
    }
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<script type="text/javascript">function changeTsize(){document.getElementById("runcode_ZjDqCq").style.height = document.getElementById("runcode_ZjDqCq").scrollHeight + "px";}window.setTimeout(changeTsize,0);</script><p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_ZjDqCq');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_ZjDqCq');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_ZjDqCq','runcode_ZjDqCq');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F&title=%E6%9C%AC%E5%9C%B0%E5%9B%BE%E7%89%87%E9%A2%84%E8%A7%88%28%E6%94%AF%E6%8C%81IE6%EF%BC%8CIE7%EF%BC%8CIE8%EF%BC%8C+Firefox3%29" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="IE6 window.location 跳转问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F01%2Fie6-windowlocation-%25E8%25B7%25B3%25E8%25BD%25AC%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">IE6 window.location 跳转问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="XP下 IE6 英文系统 Date 问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2Fxp%25E4%25B8%258B-ie6-%25E8%258B%25B1%25E6%2596%2587%25E7%25B3%25BB%25E7%25BB%259F-date-%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">XP下 IE6 英文系统 Date 问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/14周主题] – IE6 hacks" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fweek-subject-1014-ie6-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258336.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[10/14周主题] – IE6 hacks</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IE6 IE7 FF的区别" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Fie6-ie7-ff%25E7%259A%2584%25E5%258C%25BA%25E5%2588%25AB%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">IE6 IE7 FF的区别</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IE and firefox comflict in web design" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F03%2Fie-and-firefox-comflict-in-web-design%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">IE and firefox comflict in web design</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2010/01/view-picture-on-local-machine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[10/01周主题] – Web 项目开发中的常见问题</title>
		<link>http://www.quanlei.com/2010/01/1001-week-subject-web-project-problems/</link>
		<comments>http://www.quanlei.com/2010/01/1001-week-subject-web-project-problems/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 08:32:40 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[周主题]]></category>
		<category><![CDATA[编程相关]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JDBC]]></category>
		<category><![CDATA[JPA]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[乱码]]></category>
		<category><![CDATA[测试]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[表单]]></category>
		<category><![CDATA[项目]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=1149</guid>
		<description><![CDATA[这周来一直在赶一个Web项目，没多少时间focus到其他上面，于是这周的主题就干脆做个整理，整理下web项目开发时遇到的一些问题和解决办法。 本周主题：Web 项目开发中的常见问题 一、中文乱码 建议统一使用UTF8，或者全局做个filter处理。 二、表单校验 使用第三方校验框架， 而非自己去写，可以减少很多工作量。 三、Ajax的使用 首页尽量少用ajax，页面初次加载时常会加载不上来，尤其多个Ajax实例同时运行。 四、UI 规范 UI最好是出Demo，跟客户确认，定终稿，然后开发按最终效果图实现页面最好，否则没有页面或者效果图，即使有统一的规范，还是会浪费很多时间去调UI问题。 五、浏览器的兼容问题 虽然IE6基本上淘汰了，可老机器上使用IE6的还是不少的，Css 在处理兼容问题时，建议分开处理，在页面进行浏览器version判断，读取不同的css，这样管理和调整起来都方便。 六、比较完整的测试数据 页面框架搭完了，看着效果不错，可是填完数据后会发现和想象的不太一样。 七、用JPA Or JDBC 与数据库交互 JPA与JDBC相比之下，使用JPA大大减少了编程人员的工作量，因此还是偏向使用JPA，特殊环境下再选择JDBC<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[10/17 周主题] – Axure入项目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F1017-week-subject-axure-quick-start%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258330.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[10/17 周主题] – Axure入项目</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[09/48周主题] – JPA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F0948-week-subject-jpa%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258991.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[09/48周主题] – JPA</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在Swing中做更多web的事情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/09/20/32283483.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">在Swing中做更多web的事情</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在web页面中提供打印功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F01%2Fweb-print%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">在web页面中提供打印功能</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：web标准化交流会第二十期北京站总结" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fshare-w3ctech-beijing-20th%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">分享：web标准化交流会第二十期北京站总结</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这周来一直在赶一个Web项目，没多少时间focus到其他上面，于是这周的主题就干脆做个整理，整理下web项目开发时遇到的一些问题和解决办法。</p>
<h1>本周主题：Web 项目开发中的常见问题</h1>
<h3>一、中文乱码</h3>
<blockquote><p>建议统一使用UTF8，或者全局做个filter处理。</p></blockquote>
<h3>二、表单校验</h3>
<blockquote><p>使用第三方校验框架， 而非自己去写，可以减少很多工作量。</p></blockquote>
<h3>三、Ajax的使用</h3>
<blockquote><p>首页尽量少用ajax，页面初次加载时常会加载不上来，尤其多个Ajax实例同时运行。</p></blockquote>
<h3>四、UI 规范</h3>
<blockquote><p>UI最好是出Demo，跟客户确认，定终稿，然后开发按最终效果图实现页面最好，否则没有页面或者效果图，即使有统一的规范，还是会浪费很多时间去调UI问题。</p></blockquote>
<h3>五、浏览器的兼容问题</h3>
<blockquote><p>虽然IE6基本上淘汰了，可老机器上使用IE6的还是不少的，Css 在处理兼容问题时，建议分开处理，在页面进行浏览器version判断，读取不同的css，这样管理和调整起来都方便。</p></blockquote>
<h3>六、比较完整的测试数据</h3>
<blockquote><p>页面框架搭完了，看着效果不错，可是填完数据后会发现和想象的不太一样。</p></blockquote>
<h3>七、用JPA Or JDBC 与数据库交互</h3>
<blockquote><p>JPA与JDBC相比之下，使用JPA大大减少了编程人员的工作量，因此还是偏向使用JPA，特殊环境下再选择JDBC</p></blockquote>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F&title=%5B10%2F01%E5%91%A8%E4%B8%BB%E9%A2%98%5D+%E2%80%93+Web+%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E4%B8%AD%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[10/17 周主题] – Axure入项目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F1017-week-subject-axure-quick-start%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258330.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[10/17 周主题] – Axure入项目</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[09/48周主题] – JPA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F0948-week-subject-jpa%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258991.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">[09/48周主题] – JPA</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在Swing中做更多web的事情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fswing-web-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/09/20/32283483.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">在Swing中做更多web的事情</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在web页面中提供打印功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F01%2Fweb-print%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">在web页面中提供打印功能</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：web标准化交流会第二十期北京站总结" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fshare-w3ctech-beijing-20th%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">分享：web标准化交流会第二十期北京站总结</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2010/01/1001-week-subject-web-project-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>中国移动的网站能不能再做的烂点呢？</title>
		<link>http://www.quanlei.com/2009/11/the-web-of-cmcc-so-bad/</link>
		<comments>http://www.quanlei.com/2009/11/the-web-of-cmcc-so-bad/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 04:42:27 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[随记]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[中国]]></category>
		<category><![CDATA[北京]]></category>
		<category><![CDATA[服务]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[满意]]></category>
		<category><![CDATA[移动]]></category>
		<category><![CDATA[网站]]></category>
		<category><![CDATA[银行]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=937</guid>
		<description><![CDATA[我这里谈到的是中国移动北京分公司的网站，其他省市的网站没有去深入测试，估计是大同小异。 1、网站打开速度特别慢 不知道为什么中移动的网站打开超级慢，按理说中移动网站的带宽应该是没有问题的，但是不知为什么每次打开都特别慢，而且经常中断了，在不同的电脑上，不同的网络环境差不多，原因未知。相比之下看看人家中国银行的网站www.boc.cn(没有做广告的嫌疑，只是做个比较)，基本上瞬间打开，可能你会说静态网页和动态网页的区别，但是我觉得这不是根本问题，因为速度已经不是一个数量级上的差距了。有时接通10086，话务员查询时打开网站也很慢，让我听了很久音乐，可见中移动内部也是很慢的。下图是打开网站时的一个截图，四个页面有一个是中国银行的，其他三个都是中移动的，截图时间是打开后2分钟左右的样子，点击可看大图： 2、网站对浏览器的兼容性 说到这个，那是超级烂，由于很久没有使用IE5.5和IE6了，不知道中移动的网站到底对哪个浏览器的兼容性好，反正我在IE7，IE8，Firefox3.5，Google Chrome上访问都有问题，IE7和IE8好在还凑合能使用，Firefox3.5和Google Chrome简直就没法用，就连一个小小的个人网站都知道去解决网站对浏览器兼容性的问题，试想中国最大的运营商和全球最大用户群体的电信企业，网站对浏览器的兼容性做到如此之烂，过去几年了还不去优化，实在是没话可说了，只能尽量少去使用或者不用。 3、“满意100” 忘记了中移动什么时候开始喊这个口号的，但是这几个月来，中移动的服务别说100分了，60分都达不到，10086打过去，客服90%的时间全席忙，网站的在线客服也是90%以上时间满员，处于等待状态，等待就等待吧，还经常断线，再进去前面又插进去几个客户了，继续等待继续断线，无语了，我昨天为了体验这个“满意100”，花了半个多小时打10086，没有打进去，花了20多分钟进行网站客服的咨询没能成功，客户有问题，但是却无法联系中移动客服，这样的服务如何做到“满意100”呢？ 4、可能你会说，中移动服务这么烂，你为啥还用啊？ 我有选择吗？ 前几年就中移动一家独大，其他运营商的服务比移动还烂，从最近几年开始，状况好些了，其他运营商也发展起来了，可我的号码用了N年了，换个号码多不方便大家又不是不知道，要是可以携号转运营商，我立马转。 ==欢迎发表意见，欢迎转载==<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="做网站看起来很简单" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F%25E5%2581%259A%25E7%25BD%2591%25E7%25AB%2599%25E7%259C%258B%25E8%25B5%25B7%25E6%259D%25A5%25E5%25BE%2588%25E7%25AE%2580%25E5%258D%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258214.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">做网站看起来很简单</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="本地图片预览(支持IE6，IE7，IE8， Firefox3)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">本地图片预览(支持IE6，IE7，IE8， Firefox3)</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="将网站的Theme和其他资源进行了项目托管" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E5%25B0%2586%25E7%25BD%2591%25E7%25AB%2599%25E7%259A%2584theme%25E5%2592%258C%25E5%2585%25B6%25E4%25BB%2596%25E8%25B5%2584%25E6%25BA%2590%25E8%25BF%259B%25E8%25A1%258C%25E4%25BA%2586%25E9%25A1%25B9%25E7%259B%25AE%25E6%2589%2598%25E7%25AE%25A1%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">将网站的Theme和其他资源进行了项目托管</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="浦发的手机银行从来就没打开过" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F09%2F%25E6%25B5%25A6%25E5%258F%2591%25E7%259A%2584%25E6%2589%258B%25E6%259C%25BA%25E9%2593%25B6%25E8%25A1%258C%25E4%25BB%258E%25E6%259D%25A5%25E5%25B0%25B1%25E6%25B2%25A1%25E6%2589%2593%25E5%25BC%2580%25E8%25BF%2587%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258370.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">浦发的手机银行从来就没打开过</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="转载：每个中国人必须知道的国学常识" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%25AF%258F%25E4%25B8%25AA%25E4%25B8%25AD%25E5%259B%25BD%25E4%25BA%25BA%25E5%25BF%2585%25E9%25A1%25BB%25E7%259F%25A5%25E9%2581%2593%25E7%259A%2584%25E5%259B%25BD%25E5%25AD%25A6%25E5%25B8%25B8%25E8%25AF%2586%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">转载：每个中国人必须知道的国学常识</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #800000;"><span style="font-size: xx-large;">我</span></span>这里谈到的是<a href="http://www.bj.chinamobile.com/" target="_blank"><span style="color: #800000;"><strong><span style="font-size: large;">中国移动北京分公司</span></strong></span></a>的网站，其他省市的网站没有去深入测试，估计是大同小异。</p>
<h3>1、<strong>网站打开速度特别慢</strong></h3>
<blockquote><p>不知道为什么中移动的网站打开超级慢，按理说中移动网站的带宽应该是没有问题的，但是不知为什么每次打开都特别慢，而且经常中断了，在不同的电脑上，不同的网络环境差不多，原因未知。相比之下看看人家中国银行的网站www.boc.cn(没有做广告的嫌疑，只是做个比较)，基本上瞬间打开，可能你会说静态网页和动态网页的区别，但是我觉得这不是根本问题，因为速度已经不是一个数量级上的差距了。有时接通10086，话务员查询时打开网站也很慢，让我听了很久音乐，可见中移动内部也是很慢的。下图是打开网站时的一个截图，四个页面有一个是中国银行的，其他三个都是中移动的，截图时间是打开后2分钟左右的样子，点击可看大图：</p></blockquote>
<h3><a href="http://farm3.static.flickr.com/2595/4148489473_e18feff1e3_b.jpg" rel="lightbox[937]"><img class="aligncenter size-full wp-image-938" title="screenshot_003" src="http://farm3.static.flickr.com/2595/4148489473_e18feff1e3_b.jpg" alt="screenshot_003" width="620" height="300" /></a></h3>
<h3>2、<strong>网站对浏览器的兼容性</strong></h3>
<blockquote><p>说到这个，那是超级烂，由于很久没有使用IE5.5和IE6了，不知道中移动的网站到底对哪个浏览器的兼容性好，反正我在IE7，IE8，Firefox3.5，Google Chrome上访问都有问题，IE7和IE8好在还凑合能使用，Firefox3.5和Google Chrome简直就没法用，就连一个小小的个人网站都知道去解决网站对浏览器兼容性的问题，试想中国最大的运营商和全球最大用户群体的电信企业，网站对浏览器的兼容性做到如此之烂，过去几年了还不去优化，实在是没话可说了，只能尽量少去使用或者不用。</p></blockquote>
<h3>3、<strong>“满意100” </strong></h3>
<blockquote><p>忘记了中移动什么时候开始喊这个口号的，但是这几个月来，中移动的服务别说100分了，60分都达不到，10086打过去，客服90%的时间全席忙，网站的在线客服也是90%以上时间满员，处于等待状态，等待就等待吧，还经常断线，再进去前面又插进去几个客户了，继续等待继续断线，无语了，我昨天为了体验这个“满意100”，花了半个多小时打10086，没有打进去，花了20多分钟进行网站客服的咨询没能成功，客户有问题，但是却无法联系中移动客服，这样的服务如何做到“满意100”呢？</p></blockquote>
<h3>4、可能你会说，中移动服务这么烂，你为啥还用啊？</h3>
<blockquote><p>我有选择吗？ 前几年就中移动一家独大，其他运营商的服务比移动还烂，从最近几年开始，状况好些了，其他运营商也发展起来了，可我的号码用了N年了，换个号码多不方便大家又不是不知道，要是可以携号转运营商，我立马转。</p></blockquote>
<p><span style="color: #800000;">==欢迎发表意见，欢迎转载==</span></p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.quanlei.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=6&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F&title=%E4%B8%AD%E5%9B%BD%E7%A7%BB%E5%8A%A8%E7%9A%84%E7%BD%91%E7%AB%99%E8%83%BD%E4%B8%8D%E8%83%BD%E5%86%8D%E5%81%9A%E7%9A%84%E7%83%82%E7%82%B9%E5%91%A2%EF%BC%9F" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="做网站看起来很简单" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F%25E5%2581%259A%25E7%25BD%2591%25E7%25AB%2599%25E7%259C%258B%25E8%25B5%25B7%25E6%259D%25A5%25E5%25BE%2588%25E7%25AE%2580%25E5%258D%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258214.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">做网站看起来很简单</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="本地图片预览(支持IE6，IE7，IE8， Firefox3)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fview-picture-on-local-machine%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">本地图片预览(支持IE6，IE7，IE8， Firefox3)</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="将网站的Theme和其他资源进行了项目托管" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E5%25B0%2586%25E7%25BD%2591%25E7%25AB%2599%25E7%259A%2584theme%25E5%2592%258C%25E5%2585%25B6%25E4%25BB%2596%25E8%25B5%2584%25E6%25BA%2590%25E8%25BF%259B%25E8%25A1%258C%25E4%25BA%2586%25E9%25A1%25B9%25E7%259B%25AE%25E6%2589%2598%25E7%25AE%25A1%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">将网站的Theme和其他资源进行了项目托管</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="浦发的手机银行从来就没打开过" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F09%2F%25E6%25B5%25A6%25E5%258F%2591%25E7%259A%2584%25E6%2589%258B%25E6%259C%25BA%25E9%2593%25B6%25E8%25A1%258C%25E4%25BB%258E%25E6%259D%25A5%25E5%25B0%25B1%25E6%25B2%25A1%25E6%2589%2593%25E5%25BC%2580%25E8%25BF%2587%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258370.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">浦发的手机银行从来就没打开过</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="转载：每个中国人必须知道的国学常识" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%25AF%258F%25E4%25B8%25AA%25E4%25B8%25AD%25E5%259B%25BD%25E4%25BA%25BA%25E5%25BF%2585%25E9%25A1%25BB%25E7%259F%25A5%25E9%2581%2593%25E7%259A%2584%25E5%259B%25BD%25E5%25AD%25A6%25E5%25B8%25B8%25E8%25AF%2586%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fthe-web-of-cmcc-so-bad%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="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;">转载：每个中国人必须知道的国学常识</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2009/11/the-web-of-cmcc-so-bad/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

