<?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; Browser</title>
	<atom:link href="http://www.iwanna.cn/topics/ui/browser-ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iwanna.cn</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 15:12:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>各浏览器的默认CSS</title>
		<link>http://www.iwanna.cn/archives/2010/07/29/4791/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/29/4791/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 14:12:27 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4791</guid>
		<description><![CDATA[在丸子主编的帮助下终于找到了各浏览器的默认CSS。只要是由于今天解决了一个特殊的问题，依靠的就是看各浏览器的默认CSS，然后重置它，所以很 多时候浏览器的默认css还是很有用的。
各浏览器的默认CSS可以在这里http://www.iecss.com/找 到，贪心一下，把这些样式都保存了一份：


IE6(下载)
IE7(下载)
IE8(下载)
IE9(下载)
Firefox  3.6.3(下载)
Webkit  (r57042) (下载)
Opera  10.51(下载)

当然我们还可以找到更老的一些浏览器默认样式：

Firebird  0.7
Firefox  0.8
Firefox  0.9
Firefox  2.0.0.6
Firefox  2.0.0.12
Firefox  3.0b3
Firefox  3.0.1
Firefox  3.0.8
Flock  0.9.0.2
Flock  1.2.4
Flock  1.2.7
Konqueror  3.2.0
Mozilla  1.0.1
Mozilla  1.5
Navigator  6.1
Navigator  7.1
Navigator  8.1
Navigator  9.0b3
Safari  3.0.4
Safari x
Safari  3.1.2
SeaMonkey  1.1.2


© 我想网 Akon [...]]]></description>
			<content:encoded><![CDATA[<p>在丸子主编的帮助下终于找到了各浏览器的默认<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>。只要是由于今天解决了一个特殊的问题，依靠的就是看各浏览器的默认<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>，然后重置它，所以很 多时候浏览器的默认<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>还是很有用的。</p>
<p>各浏览器的默认<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>可以在这里<a href="http://www.iecss.com/" target="_blank">http://www.iecss.com/</a>找 到，贪心一下，把这些样式都保存了一份：<br />
<span id="more-4791"></span></p>
<ol>
<li><a title="Download the IE6 UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/ie-6.css">IE6(下载)</a></li>
<li><a title="Download the IE7 UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/ie-7.css">IE7(下载)</a></li>
<li><a title="Download the IE8 UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/ie-8.css">IE8(下载)</a></li>
<li><a title="Download the IE9 UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/ie-9.css">IE9(下载)</a></li>
<li><a title="Download the Firefox 3.6.3 UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/firefox-3.6.3.css">Firefox  3.6.3(下载)</a></li>
<li><a title="Webkit (r57042) UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/webkit-r61376.css">Webkit  (r57042) (下载)</a></li>
<li><a title="Opera 10.51 UA Style Sheet" href="http://www.iwanna.cn/tools/css/init-set-of-browsers/opera-10.51.css">Opera  10.51(下载)</a></li>
</ol>
<p>当然我们还可以找到更老的一些浏览器默认样式：</p>
<ul>
<li><a href="http://hell.meiert.org/core/css/firebird-0.7.css">Firebird  0.7</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-0.8.css">Firefox  0.8</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-0.9.css">Firefox  0.9</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-2.0.0.6.css">Firefox  2.0.0.6</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-2.0.0.12.css">Firefox  2.0.0.12</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-3.0b3.css">Firefox  3.0b3</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-3.0.1.css">Firefox  3.0.1</a></li>
<li><a href="http://hell.meiert.org/core/css/firefox-3.0.8.css">Firefox  3.0.8</a></li>
<li><a href="http://hell.meiert.org/core/css/flock-0.9.0.2.css">Flock  0.9.0.2</a></li>
<li><a href="http://hell.meiert.org/core/css/flock-1.2.4.css">Flock  1.2.4</a></li>
<li><a href="http://hell.meiert.org/core/css/flock-1.2.7.css">Flock  1.2.7</a></li>
<li><a href="http://hell.meiert.org/core/css/konqueror-3.2.0.css">Konqueror  3.2.0</a></li>
<li><a href="http://hell.meiert.org/core/css/mozilla-1.0.1.css">Mozilla  1.0.1</a></li>
<li><a href="http://hell.meiert.org/core/css/mozilla-1.5.css">Mozilla  1.5</a></li>
<li><a href="http://hell.meiert.org/core/css/navigator-6.1.css">Navigator  6.1</a></li>
<li><a href="http://hell.meiert.org/core/css/navigator-7.1.css">Navigator  7.1</a></li>
<li><a href="http://hell.meiert.org/core/css/navigator-8.1.css">Navigator  8.1</a></li>
<li><a href="http://hell.meiert.org/core/css/navigator-9.0b3.css">Navigator  9.0b3</a></li>
<li><a href="http://hell.meiert.org/core/css/safari-3.0.4.css">Safari  3.0.4</a></li>
<li><a href="http://hell.meiert.org/core/css/safari-x.css">Safari <var>x</var></a></li>
<li><a href="http://hell.meiert.org/core/css/safari-3.1.2.css">Safari  3.1.2</a></li>
<li><a href="http://hell.meiert.org/core/css/seamonkey-1.1.2.css">SeaMonkey  1.1.2</a></li>
</ul>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/29/4791/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/29/4791/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/29/4791/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/29/4791/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/29/4791/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/css/" title="CSS" rel="tag nofollow">CSS</a>, <a href="http://www.iwanna.cn/tags/css/" title="CSS" rel="tag nofollow">CSS</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4780/" title="打败 IE 的葵花宝典：CSS Bug Table (2010年07月29日)">打败 IE 的葵花宝典：CSS Bug Table</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/28/4224/" title="小议使用“完整”的CSS的缺点 (2010年06月28日)">小议使用“完整”的CSS的缺点</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/10/3872/" title="PNG透明兼容IE6的几种方法 (2010年06月10日)">PNG透明兼容IE6的几种方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/22/1113/" title="IE不支持的10个非常有用的CSS属性 (2009年05月22日)">IE不支持的10个非常有用的CSS属性</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/09/07/2228/" title="IE8面向Web开发人员的功能改进 (2009年09月7日)">IE8面向Web开发人员的功能改进</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/07/986/" title="CSS在IE6中的bug修正技巧 (2009年05月7日)">CSS在IE6中的bug修正技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/29/894/" title="页面输出时一些常用的小技巧 (2009年04月29日)">页面输出时一些常用的小技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/16/2019/" title="面向对象的CSS (2009年07月16日)">面向对象的CSS</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/07/981/" title="针对IE8正式版的CSS hack (2009年05月7日)">针对IE8正式版的CSS hack</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/29/4791/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>打败 IE 的葵花宝典：CSS Bug Table</title>
		<link>http://www.iwanna.cn/archives/2010/07/29/4780/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/29/4780/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 04:47:50 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4780</guid>
		<description><![CDATA[作为一名前端，我们通常要做的就是让页面在各系统A-Grade浏览器，甚至网站浏览份额0.1%以上的浏览器上良好显示。当然，还有性能问题。不 过，今天要说的是样式的兼容问题。在IE/Mozilla/Webkit/Opera四分天下的今天，IE6-9/Mozilla（Gecko）系列 /Chrome/Safari/Opera etc.  这些浏览器的兼容，无不让前端们头痛。而在这之中，最让人头痛的当数IE，特别是IE6。搞定了IE6，基本也就能称霸半个江山了。搞定了IE，也相当于 占领了7、80%的领地。你想做一个统治页面兼容的主么？反正我是想的。


今天，趁着想完美公司的内部样式框架，把HasLayout.net的IE  CSS  Bug过了一遍。整理中收获了不少东西，一些官方的不足，也根据自己的知识升级了一下。当然，也顺利地升级了框架的一些内容，感觉甚爽。随后，便将一些值 得去看的Bug整理成一个列表，基于Alipay前端伟大的分享精神，分享出来以供团队工友们和大家参考。
同时，由于整理仓促，有些理解和表达不当和其他纰漏在所难免，还请大家帮忙更正。谢谢。




问题
浏览器
DEMO
解决方法


Hacking Rules: 
property:all-ie\9; property:gte-ie8\0;*property:lte-ie7; +property:ie7; _property:ie6;




1
input[button &#124; submit] 不能用 margin:0 auto; 居中
IE8
bug &#124; fixed
为input添加width


2
body{overflow:hidden;}没有去掉滚动条
IE6/7
bug &#124; fixed
设置html{overflow:hidden;}


3
hasLayout的标签拥有高度
IE6/7
bug &#124; fixed
*height:0;
_overflow:hidden;


4
form&#62;[hasLayout]元素有margin-left时，子元素中的[input &#124; textarea] 出现2×margin-left
IE6/7
bug &#124; fixed
form &#62; [hasLayout 元素]{margin-left:宽度;}
form div{*margin-left:宽度÷2;}


5
当border-width有1条&#60;边3条时被设置成dotted时，1px的边dotted显示成dashed
IE7
bug &#124; fixed
不在同一个元素上使用不同宽度的 dotted


6
当子元素有position:relative的时候，父元素设置overflow:[hidden&#124;auto]相当于给子元素设置了position:visible;
IE6/7
bug &#124; fixed
给父元素设置position:relative;


7
:hover伪类不能改变有position:absolute的子级元素的left/top值
IE7
bug &#124; fixed
把top/left的值设置成除0%外的所有百分值；或添加一个margin-[所有方向]除0外的所有值，包括0%


8
:focus + selector {} 选择器失效
IE8
bug &#124; fixed
在失效选择器后面添加一个空选择器, :focus{}


9
列表中混乱的浮动：在list中浮动图片时，图片出现溢出正常位置；或没有list-style
IE8
bug &#124; fixed
用背景图片替换list-style


10
th 不会自动继承上级元素的 [...]]]></description>
			<content:encoded><![CDATA[<p>作为一名前端，我们通常要做的就是让页面在各系统A-Grade浏览器，甚至网站浏览份额0.1%以上的浏览器上良好显示。当然，还有性能问题。不 过，今天要说的是样式的兼容问题。在IE/Mozilla/Webkit/Opera四分天下的今天，<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-9/Mozilla（Gecko）系列 /<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>/Safari/Opera etc.  这些浏览器的兼容，无不让前端们头痛。而在这之中，最让人头痛的当数IE，特别是<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>。搞定了<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>，基本也就能称霸半个江山了。搞定了IE，也相当于 占领了7、80%的领地。你想做一个统治页面兼容的主么？反正我是想的。</p>
<p><a href="http://images.uheed.com/iwanna/2010/07/29/ie_bug_table.jpg" target="_blank"><img title="ie_bug_table" src="http://images.uheed.com/iwanna/2010/07/29/ie_bug_table.jpg" alt="打败 IE 的葵花宝典：CSS Bug Table | iwanna.cn 我想网" width="500" height="163" /></a><br />
<span id="more-4780"></span><br />
今天，趁着想完美公司的内部样式框架，把<a rel="nofollow" href="http://haslayout.net/" target="_blank">HasLayout.net</a>的IE  <a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>  Bug过了一遍。整理中收获了不少东西，一些官方的不足，也根据自己的知识升级了一下。当然，也顺利地升级了框架的一些内容，感觉甚爽。随后，便将一些值 得去看的Bug整理成一个列表，基于Alipay前端伟大的分享精神，分享出来以供团队工友们和大家参考。</p>
<p>同时，由于整理仓促，有些理解和表达不当和其他纰漏在所难免，还请大家帮忙更正。谢谢。</p>
<table width="520">
<thead>
<tr>
<th width="30"></th>
<th width="120">问题</th>
<th width="60">浏览器</th>
<th width="90">DEMO</th>
<th width="120">解决方法</th>
</tr>
<tr>
<td colspan="5"><strong>Hacking Rules: </strong><br />
property:all-ie\9; property:gte-ie8\0;*property:lte-ie7; +property:ie7; _property:<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">ie6</a>;</td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>input[button | submit] 不能用 margin:0 auto; 居中</td>
<td>IE8</td>
<td><a href="http://haslayout.net/demos/No-Auto-Margin-Center-on-Buttons-Inconsistency-Demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/No-Auto-Margin-Center-on-Buttons-Inconsistency-Fixed-Demo-CS.html" target="_blank">fixed</a></td>
<td>为input添加width</td>
</tr>
<tr>
<td>2</td>
<td>body{overflow:hidden;}没有去掉滚动条</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/Document-Scrollbars-Overflow-Inconsistency-Demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/Document-Scrollbars-Overflow-Inconsistency-Fixed-Demo.html" target="_blank">fixed</a></td>
<td>设置html{overflow:hidden;}</td>
</tr>
<tr>
<td>3</td>
<td>hasLayout的标签拥有高度</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/Empty-Element-Height-Bug-Demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/Empty-Element-Height-Bug-Fixed-Demo.html" target="_blank">fixed</a></td>
<td>*height:0;<br />
_overflow:hidden;</td>
</tr>
<tr>
<td>4</td>
<td>form&gt;[hasLayout]元素有margin-left时，子元素中的[input | textarea] 出现2×margin-left</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/Form-Control-Double-Margin-Bug-Demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/Form-Control-Double-Margin-Bug-Fixed-Demo.html" target="_blank">fixed</a></td>
<td>form &gt; [hasLayout 元素]{margin-left:宽度;}<br />
form div{*margin-left:宽度÷2;}</td>
</tr>
<tr>
<td>5</td>
<td>当border-width有1条&lt;边3条时被设置成dotted时，1px的边dotted显示成dashed</td>
<td>IE7</td>
<td><a href="http://haslayout.net/demos/IE7-1px-Dotted-Border-Appears-As-Dashed-Bug-Demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/IE7-1px-Dotted-Border-Appears-As-Dashed-Bug-Fixed-Demo.html" target="_blank">fixed</a></td>
<td>不在同一个元素上使用不同宽度的 dotted</td>
</tr>
<tr>
<td>6</td>
<td>当子元素有position:relative的时候，父元素设置overflow:[hidden|auto]相当于给子元素设置了position:visible;</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/relative-overflow-failure-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/relative-overflow-failure-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>给父元素设置position:relative;</td>
</tr>
<tr>
<td>7</td>
<td>:hover伪类不能改变有position:absolute的子级元素的left/top值</td>
<td>IE7</td>
<td><a href="http://haslayout.net/demos/ie7-broken-hover-absolute-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/ie7-broken-hover-absolute-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>把top/left的值设置成除0%外的所有百分值；或添加一个margin-[所有方向]除0外的所有值，包括0%</td>
</tr>
<tr>
<td>8</td>
<td>:focus + selector {} 选择器失效</td>
<td>IE8</td>
<td><a href="http://haslayout.net/demos/ignored-focus-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/ignored-focus-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>在失效选择器后面添加一个空选择器, :focus{}</td>
</tr>
<tr>
<td>9</td>
<td>列表中混乱的浮动：在list中浮动图片时，图片出现溢出正常位置；或没有list-style</td>
<td>IE8</td>
<td><a href="http://haslayout.net/demos/image-float-bullet-chaos-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/image-float-bullet-chaos-demo-fixed.html" target="_blank">fixed</a></td>
<td>用背景图片替换list-style</td>
</tr>
<tr>
<td>10</td>
<td>th 不会自动继承上级元素的 text-align</td>
<td>IE8</td>
<td><a href="http://haslayout.net/demos/non-inherited-th-text-align-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/non-inherited-th-text-align-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>给th添加text-align:inherit; (base.<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>中已包含)</td>
</tr>
<tr>
<td>11</td>
<td>样式(包括link/style/@import(link)) 最多允许个为是：32</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-8</td>
<td>─ 常识</td>
<td>99.99%的情况下，不会遇到</td>
</tr>
<tr>
<td>12</td>
<td>:hover 时若background-color为#fff, 失效</td>
<td>IE7</td>
<td><a href="http://haslayout.net/demos/hover-white-background-ignore-bug.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/hover-white-background-ignore-bug-fixed-demo.html" target="_blank">fixed</a></td>
<td>把background-color改成background。或者，非#fff || #ffffff</td>
</tr>
<tr>
<td>13</td>
<td>忽略’&gt;’后有注释的选择器：selector&gt; /**/ selector{}</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/demos/ie7-child-selector-comment-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/ie7-child-selector-comment-bug-demo.html" target="_blank">fixed</a></td>
<td>[<a href="http://haslayout.net/css/IE7-Child-Selector-Comment-Bug" target="_blank">官方误判</a>] 这个bug是<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> BUG</td>
</tr>
<tr>
<td>14</td>
<td>* html</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td>─ HACK</td>
<td>只对<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>有效</td>
</tr>
<tr>
<td>15</td>
<td>PNG图片中的颜色和背景颜色的值相同，但显示不同</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-7</td>
<td><a href="http://haslayout.net/demos/png-color-mismatch-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/png-color-mismatch-demo-fixed.html" target="_blank">fixed</a></td>
<td>利用 <a href="http://pmt.sourceforge.net/pngcrush/" target="_blank">pngcrush</a> 去除图片中的 Gamma profiles</td>
</tr>
<tr>
<td>16</td>
<td>margin:0 auto; 不能让block元素水平居中</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-8</td>
<td><a href="http://haslayout.net/demos/no-auto-margin-center-pseudo-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/no-auto-margin-center-pseudo-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>给block元素添加一个width</td>
</tr>
<tr>
<td>17</td>
<td>使用伪类 :first-line | :first-letter, 属性的值中出现!important 会使属性失效</td>
<td>IE8</td>
<td><a href="http://haslayout.net/demos/ie8-first-line-important-bug.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/ie8-first-line-important-bug-fixed.html" target="_blank">fixed</a></td>
<td>!important is evil, don’t use it anymore</td>
</tr>
<tr>
<td>18</td>
<td>:first-letter 失效</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/demos/ie6-first-letter-ignore-bug.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/ie6-first-letter-ignore-bug-fixed.html" target="_blank">fixed</a></td>
<td>把 :first-letter 移到离{}最近的地方，如 h1, p:first-letter{}，而非 p:first-letter h1{}</td>
</tr>
<tr>
<td>19</td>
<td>Position:absolute元素中，a display:block, 在非:hover时只有文本可点击</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/partial-click-v2-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/partial-click-v2-demo-fixed.html" target="_blank">fixed</a></td>
<td>给a添加background, 如果背景透明，使用background:url(‘任何页面中已经缓存的文件链接’)，不推荐background：url(#)[<a href="http://haslayout.net/css/Partial-Click-Bug-v2" target="_blank">官方的解决方法</a>]，因为会增加一下HTTP请求</td>
</tr>
<tr>
<td>20</td>
<td>float列表元素不水平对齐：li不设置float，a设置display:block;float:[方向]，li不水平对齐</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/staircase-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/staircase-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>给li设置display:inline 或 float:[方向]</td>
</tr>
<tr>
<td>21</td>
<td>dt, dd, li 背景失效</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/demos/disappearing-list-background-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/disappearing-list-background-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>dt, dd, li{position:relative;} (base.<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>中已包含)</td>
</tr>
<tr>
<td>22</td>
<td>&lt;noscript /&gt;元素的样式在启用javascript的情况下显示了样式</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-8</td>
<td><a href="http://haslayout.net/demos/noscript-ghost-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/noscript-ghost-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>利用js给&lt;noscript /&gt;添加display:none;</td>
</tr>
<tr>
<td>23</td>
<td>使用filter处理的透明背景图片的透明部分不可点</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-8</td>
<td><a href="http://haslayout.net/demos/no-transparency-click-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/no-transparency-click-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>把background:none变成background:url(‘链接’)，链接到本身和图片之外的任何文件</td>
</tr>
<tr>
<td>24</td>
<td>li内元素偏离 baseline 向下拉</td>
<td>IE8</td>
<td><a href="http://haslayout.net/demos/list-drop-shift-bug-demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/list-drop-shift-bug-demo-fixed.html" target="_blank">fixed</a></td>
<td>给li设置display:inline 或 float:[方向]</td>
</tr>
<tr>
<td>25</td>
<td>列表中li的list-style不显示</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/demos/no_li_ol_bullets_demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/no_li_ol_bullets_demo_fixed.html" target="_blank">fixed</a></td>
<td>给li添加margin-left，留空间来显示（不要加在ul上）</td>
</tr>
<tr>
<td>26</td>
<td>图片不能垂直居中</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/css/No-line-height-Vertical-Center-on-Images-Bug" target="_blank">bug/fixed</a></td>
<td>添加一个空标签，并赋给”Layout”, 比如display:inline-block;</td>
</tr>
<tr>
<td>27</td>
<td>不能自定义指针样式</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>-8</td>
<td><a href="http://haslayout.net/demos/cursor/a/demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/cursor/a/demo_fixed.html" target="_blank">fixed</a></td>
<td>给指针文件设置绝对路径</td>
</tr>
<tr>
<td>28</td>
<td>背景溢出，拖动滚动条后显示正常</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/demos/backgroundleak_demo.html" target="_blank">bug</a> | <a href="http://haslayout.net/demos/backgroundleak_demo_ls_fixed.html" target="_blank">fixed</a></td>
<td>给父元素添加overflow:hidden防止溢出，并赋予hasLayout,如果添加_zoom:1;</td>
</tr>
<tr>
<td>29</td>
<td>高度超过height定义的高</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/css/Expanding-Height-Bug" target="_blank">bug/fixed</a></td>
<td>添加_overflow:hidden;(推荐)或者_font-size:0;</td>
</tr>
<tr>
<td>30</td>
<td>宽度超过width定义的宽</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/css/Expanding-Width-Bug" target="_blank">bug/fixed</a></td>
<td>添加_overflow:hidden; 或使用alice v3 中的 .sl-word-break 类（table用.sl-table-break）</td>
</tr>
<tr>
<td>31</td>
<td>双倍边距</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td>─ 常识</td>
<td>添加display:inline到float元素中</td>
</tr>
<tr>
<td>32</td>
<td>margin负值隐藏：hasLayout的父元素内的非hasLayout元素，使用负边距时，超出父元素部分不可见</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/css/Negative-Margin-Bug" target="_blank">bug/fixed</a></td>
<td>去掉父元素的hasLayout；或者赋hasLayout给子元素,并添加position:relative;</td>
</tr>
<tr>
<td>33</td>
<td>给两个浮动元素的某中一个的文字设定为斜体，另一个元素下拉在有斜体文字元素的下面</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/css/Italics-Float-Bug" target="_blank">bug/fixed</a></td>
<td>给有斜体文字的元素添加overflow:hidden;</td>
</tr>
<tr>
<td>35</td>
<td>3px 间隔：在float元素后的元素，会有3px间隔</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></td>
<td><a href="http://haslayout.net/css/3px-Gap-Bug-aka-Text-Jog-Bug" target="_blank">bug/fixed</a></td>
<td>因为是确切的3px，所以，用“暴力破解”吧，比如_margin-left:-3px;</td>
</tr>
<tr>
<td>35</td>
<td>text-align 影响块级元素</td>
<td><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7</td>
<td><a href="http://haslayout.net/css/Text-Align-Bug" target="_blank">bug/fixed</a></td>
<td>整理你的float；或者分开设置text-align</td>
</tr>
</tbody>
</table>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/29/4780/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/29/4780/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/29/4780/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/29/4780/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/29/4780/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/css/" title="CSS" rel="tag nofollow">CSS</a>, <a href="http://www.iwanna.cn/tags/css/" title="CSS" rel="tag nofollow">CSS</a>, <a href="http://www.iwanna.cn/tags/ie/" title="IE" rel="tag nofollow">IE</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/28/4224/" title="小议使用“完整”的CSS的缺点 (2010年06月28日)">小议使用“完整”的CSS的缺点</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/23/4676/" title="如何高效在多个浏览器之间同步使用的5个工具技巧 (2010年07月23日)">如何高效在多个浏览器之间同步使用的5个工具技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4791/" title="各浏览器的默认CSS (2010年07月29日)">各浏览器的默认CSS</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/10/3872/" title="PNG透明兼容IE6的几种方法 (2010年06月10日)">PNG透明兼容IE6的几种方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1706/" title="JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera (2009年06月4日)">JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/22/1113/" title="IE不支持的10个非常有用的CSS属性 (2009年05月22日)">IE不支持的10个非常有用的CSS属性</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/29/4780/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最绚丽的网页浏览器——Conimige2 Lux</title>
		<link>http://www.iwanna.cn/archives/2010/07/27/4750/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/27/4750/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 13:35:37 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4750</guid>
		<description><![CDATA[今天，一款独特的网页浏览器从众多的网页浏览器的旧面孔中脱颖而出——Conimige2 Lux！
拥有独特的划屏特效，使Conimige2豪华版网页浏览器拥有更加独特的上网视觉体验，淡化显示也让Conimige2豪华版更加华 丽，Conimige2豪华版也当之无愧的成为最炫丽的网页浏览器。
每次打开Conimige2豪华版都会有新的面孔——新的背景颜色，新的主题图片，让使用者拥有一种美的享受。Conimige2   Lux，中文名“第二代N氧化碳浏览器豪华版”，属于myzchh.cn旗下Conimige网页浏览器家族中第三大成员，从历史版本  起，Conimige2 Lux一直追求最绚丽的浏览体验和最舒适的浏览方式，这也使Conimige2   Lux更加引人瞩目。同样的，其他功能也都非常完善，快速链接、缩略图最近浏览历史记录等应有尽有。Conimige2   Lux也拥有丰富的扩展及应用，方便使用者对浏览器进行功能的添加。

下边是官网给出的预览图：

官网地址：http://www.myzchh.cn/CbLux.htm

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser

	您可能会感兴趣的其他文章
	
	跨浏览器兼容性检查完全指南 
	让IE8兼容IE7 
	解决IE6背景图片不缓存的BUG 
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	网页浏览器的发展简史 
	火狐浏览器：浏览数据新方式（附模拟图） 
	浏览器测试：家谱 
	浏览器中样式的高度自适应 
	未来的Firefox 
	搞笑漫画图解几大浏览器的区别 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>今天，一款独特的网页浏览器从众多的网页浏览器的旧面孔中脱颖而出——<strong><a title="最绚丽的网页浏览器——Conimige2 Lux" href="http://www.iwanna.cn/archives/2010/07/27/4750/">Conimige2 Lux</a></strong>！<br />
拥有独特的划屏特效，使Conimige2豪华版网页浏览器拥有更加独特的上网视觉体验，淡化显示也让Conimige2豪华版更加华 丽，Conimige2豪华版也当之无愧的成为最炫丽的网页浏览器。</p>
<p>每次打开Conimige2豪华版都会有新的面孔——新的背景颜色，新的主题图片，让使用者拥有一种美的享受。Conimige2   Lux，中文名“第二代N氧化碳浏览器豪华版”，属于myzchh.cn旗下Conimige网页浏览器家族中第三大成员，从历史版本  起，Conimige2 Lux一直追求最绚丽的浏览体验和最舒适的浏览方式，这也使Conimige2   Lux更加引人瞩目。同样的，其他功能也都非常完善，快速链接、缩略图最近浏览历史记录等应有尽有。Conimige2   Lux也拥有丰富的扩展及应用，方便使用者对浏览器进行功能的添加。<br />
<span id="more-4750"></span><br />
下边是官网给出的预览图：</p>
<p><a href="http://www.iwanna.cn/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/27/Conimige2_Lux.jpg" alt="最绚丽的网页浏览器——Conimige2 Lux | iwanna.cn 我想网" height="300" /></a></p>
<p>官网地址：<a href="http://www.myzchh.cn/CbLux.htm">http://www.myzchh.cn/CbLux.htm</a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/27/4750/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/27/4750/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/27/4750/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/27/4750/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/27/4750/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/04/3673/" title="搞笑漫画图解几大浏览器的区别 (2010年06月4日)">搞笑漫画图解几大浏览器的区别</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/27/4750/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何高效在多个浏览器之间同步使用的5个工具技巧</title>
		<link>http://www.iwanna.cn/archives/2010/07/23/4676/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/23/4676/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 04:00:34 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Skill]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4676</guid>
		<description><![CDATA[对于网站前端开发者、用户体验设计师、互联网产品工程人员，以及广大站长、博客主、深度用户而言，往往有着一个共同的需求：需要时常在多个浏览器之间切换使用，以检查页面效果、测试产品性能，或是同时用几个账号身份登录相同的页面。


目前国际主流的浏览器主要是以下五个：微软的IE，当年以捆绑方式占据超高市场份额，当之无愧却渐显疲态的老大；Firefox，势头强劲、功能齐全的后起之秀，IE的最大挑战者；Chrome，来自另一位互联网巨头Google的杰作，以轻量级和快捷著称，后来居上；Opera，号称最快的浏览器，在移动终端上也有着不俗表现；Safari，顶着苹果的金字招牌，Mac用户上网必备。
五个浏览器，各有特色，针对不同的需求，具体使用时也各有侧重。这里介绍5个技巧或工具，以最大限度地开发同步使用多个浏览器时的性能效率，让您更轻松自在地游走在它们之间。
一、在多台电脑上同步IE收藏夹
收藏夹同步是基本需求之一，但IE有限的扩展性使之至今仍缺乏一个堪称权威的同步工具领袖。好在通过借助一些第三方的同步工具，我们可以让IE的收藏夹在多台电脑之间同步。
以目前国内用户能正常使用的国产同步工具 DBank 为例（为什么不用 Dropbox 举例？你懂的…原理其实相同）。安装 DBank 后，将会像 Dropbox 一样，生成本地的同步专用文件夹。假设为：E:\我的DBank\ 。

打开注册表编辑器（开始-&#62;运行-&#62;REGEDIT回车），在HKEY_CURRENT_USER\Software \Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders 中，修改  Favorites 的数值为 E:\我的DBank\ 。
这样，IE的收藏夹的保存位置就被指定在了 DBank 的同步文件夹下。
在所有需要同步IE收藏夹的电脑上执行以上操作。则它们将会共享同一个 DBank 账号下的同步档案，实现多台电脑之间的收藏夹同步。该方法适合大部分以文件夹为组织形式的同步软件客户端。
二、在不同浏览器之间同步书签
目前公认最好的工具当属 XMarks 这款浏览器插件（之前曾被关过一阵小黑屋，现在也放出来了）。支持在 IE、Firefox、Chrome、Safari之间同步，且允许在网页上直接访问这些同步的书签。

在使用 XMarks 之前，您需要注册一个用户账号。然后，就让它静静地为您工作吧。（同步控早先对 XMarks 的介绍）
三、快速导入/导出不同浏览器之间的书签
Transmute 是一个支持 IE、Firefox、Chrome、Opera、Safari，以及  Avant、Flock、Konqueror、Chromium，乃至社交网络如 Delicious  的强悍导入导出工具。使用时，简单地指定来源（导出数据）和目标（导入数据），则 Transmute 将会快速地为您进行导入导出操作，很快实现数据交换。

使用该工具可以与他人分享浏览器书签，且无需注册账号，下载直接使用。（国外网站的详尽介绍）
四、同时平铺显示多个浏览器
有时为了比较同一个页面在不同浏览器中的效果，需要同时打开多个浏览器并来回切换前后台。这时，将它们的窗口平铺起来，将更利于对比和发现问题。

当然，最快速的方法是右击任务栏，选择 横向平铺窗口 / 纵向平铺窗口。如果您用的是 Win7，那么又还有另一个方法：使用 Snap 这个功能。将窗口拖拽到页面左侧或右侧，带轮廓出现后松开鼠标，该窗口就被定位在指定位置。对其他窗口同样执行此操作，就实现了多个窗口排排坐吃果果的效果。对多浏览器对比尤其适用。（微软官网介绍及视频演示）
五、快速用其他浏览器打开当前页面
如果您觉得手动复制粘贴URL过于繁琐，那么 Firefox 的这款插件 —— Open With 将成为简化操作的得力助手。全数支持调用 IE、Chrome、Safari、Opera。

安装后，它可以依据设置，在 View 菜单、标签栏或是内容菜单中，增加其他浏览器的对应链接。点击后，就会自动调用其他浏览器打开当前的页面。Web开发人员应该内牛满面了吧？

© 我想网 [...]]]></description>
			<content:encoded><![CDATA[<p>对于网站前端开发者、用户体验设计师、互联网产品工程人员，以及广大站长、博客主、深度用户而言，往往有着一个共同的需求：需要时常在多个浏览器之间切换使用，以检查页面效果、测试产品性能，或是同时用几个账号身份登录相同的页面。</p>
<p><a rel="lightbox[2562]" href="http://images.uheed.com/iwanna/2010/07/23/Browsers01.jpg"><img id="00579689662943198" title="Browsers01" src="http://images.uheed.com/iwanna/2010/07/23/Browsers01.jpg" alt="如何高效在多个浏览器之间同步使用的5个工具技巧 | iwanna.cn 我想网" width="300" height="300" /></a><br />
<span id="more-4676"></span><br />
目前国际主流的浏览器主要是以下五个：微软的IE，当年以捆绑方式占据超高市场份额，当之无愧却渐显疲态的老大；<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>，势头强劲、功能齐全的后起之秀，IE的最大挑战者；<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>，来自另一位互联网巨头Google的杰作，以轻量级和快捷著称，后来居上；Opera，号称最快的浏览器，在移动终端上也有着不俗表现；Safari，顶着苹果的金字招牌，Mac用户上网必备。</p>
<p>五个浏览器，各有特色，针对不同的需求，具体使用时也各有侧重。这里介绍5个技巧或工具，以最大限度地开发同步使用多个浏览器时的性能效率，让您更轻松自在地游走在它们之间。</p>
<p><strong>一、在多台电脑上同步IE收藏夹</strong></p>
<p>收藏夹同步是基本需求之一，但IE有限的扩展性使之至今仍缺乏一个堪称权威的同步工具领袖。好在通过借助一些第三方的同步工具，我们可以让IE的收藏夹在多台电脑之间同步。</p>
<p>以目前国内用户能正常使用的国产同步工具 <a href="http://www.dbank.com/pc/download.jsp" target="_blank">DBank</a> 为例（为什么不用 <a title="Dropbox" rel="nofollow" href="http://www.google.com/cse?cx=002932912210142450661:efmukwgiae8&amp;ie=UTF-8&amp;q=DropBox&amp;sa=%E6%90%9C%E7%B4%A2" target="_blank">Dropbox</a> 举例？你懂的…原理其实相同）。安装 <a href="http://www.dbank.com/pc/download.jsp" target="_blank">DBank</a> 后，将会像 Dropbox 一样，生成本地的同步专用文件夹。假设为：E:\我的<a title="DBank" rel="nofollow" href="http://www.syncoo.com/dbank-1244.htm" target="_blank">DBank</a>\ 。</p>
<p><a rel="lightbox[2562]" href="http://images.uheed.com/iwanna/2010/07/23/banner_5.jpg"><img title="DBank" src="http://images.uheed.com/iwanna/2010/07/23/banner_5.jpg" alt="如何高效在多个浏览器之间同步使用的5个工具技巧 | iwanna.cn 我想网" width="405" height="224" /></a></p>
<p>打开注册表编辑器（开始-&gt;运行-&gt;REGEDIT回车），在HKEY_CURRENT_USER\Software \Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders 中，修改  Favorites 的数值为 E:\我的DBank\ 。</p>
<p>这样，IE的收藏夹的保存位置就被指定在了 DBank 的同步文件夹下。</p>
<p>在所有需要同步IE收藏夹的电脑上执行以上操作。则它们将会共享同一个 DBank 账号下的同步档案，实现多台电脑之间的收藏夹同步。该方法适合大部分以文件夹为组织形式的同步软件客户端。</p>
<p><strong>二、在不同浏览器之间同步书签</strong></p>
<p>目前公认最好的工具当属 <a href="http://www.xmarks.com/" target="_blank">XMarks</a> 这款浏览器插件（之前曾被关过一阵小黑屋，现在也放出来了）。支持在 IE、<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>、<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>、Safari之间同步，且允许在网页上直接访问这些同步的书签。</p>
<p><a rel="lightbox[2562]" href="http://images.uheed.com/iwanna/2010/07/23/multi-browser-sync.jpg"><img title="xmarks" src="http://images.uheed.com/iwanna/2010/07/23/multi-browser-sync.jpg" alt="如何高效在多个浏览器之间同步使用的5个工具技巧 | iwanna.cn 我想网" width="418" height="233" /></a></p>
<p>在使用 <a href="http://www.xmarks.com/" target="_blank">XMarks</a> 之前，您需要注册一个用户账号。然后，就让它静静地为您工作吧。（<a href="http://www.syncoo.com/xmarks-477.htm" target="_blank">同步控早先对 XMarks 的介绍</a>）</p>
<p><strong>三、快速导入/导出不同浏览器之间的书签</strong></p>
<p><a href="http://www.gettransmute.com/" target="_blank">Transmute</a> 是一个支持 IE、<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>、<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>、Opera、Safari，以及  Avant、Flock、Konqueror、Chromium，乃至社交网络如 Delicious  的强悍导入导出工具。使用时，简单地指定来源（导出数据）和目标（导入数据），则 <a href="http://www.gettransmute.com/" target="_blank">Transmute</a> 将会快速地为您进行导入导出操作，很快实现数据交换。</p>
<p><a rel="lightbox[2562]" href="http://images.uheed.com/iwanna/2010/07/23/Browsers.jpg"><img id="07891076768565889" title="Transmute" src="http://images.uheed.com/iwanna/2010/07/23/Browsers.jpg" alt="如何高效在多个浏览器之间同步使用的5个工具技巧 | iwanna.cn 我想网" width="489" height="455" /></a></p>
<p>使用该工具可以与他人分享浏览器书签，且无需注册账号，下载直接使用。（<a href="http://www.makeuseof.com/tag/transmute-%E2%80%93-migrate-bookmarks-between-your-browsers/" target="_blank">国外网站的详尽介绍</a>）</p>
<p><strong>四、同时平铺显示多个浏览器</strong></p>
<p>有时为了比较同一个页面在不同浏览器中的效果，需要同时打开多个浏览器并来回切换前后台。这时，将它们的窗口平铺起来，将更利于对比和发现问题。</p>
<p><a rel="lightbox[2562]" href="http://images.uheed.com/iwanna/2010/07/23/Browsers02.jpg"><img id="07696215396939081" title="Snap" src="http://images.uheed.com/iwanna/2010/07/23/Browsers02.jpg" alt="如何高效在多个浏览器之间同步使用的5个工具技巧 | iwanna.cn 我想网" width="522" height="320" /></a></p>
<p>当然，最快速的方法是右击任务栏，选择 横向平铺窗口 / 纵向平铺窗口。如果您用的是 Win7，那么又还有另一个方法：使用 <a href="http://windows.microsoft.com/en-us/windows7/Arrange-windows-side-by-side-on-the-desktop-using-Snap" target="_blank">Snap</a> 这个功能。将窗口拖拽到页面左侧或右侧，带轮廓出现后松开鼠标，该窗口就被定位在指定位置。对其他窗口同样执行此操作，就实现了多个窗口排排坐吃果果的效果。对多浏览器对比尤其适用。（<a href="http://windows.microsoft.com/en-us/windows7/Arrange-windows-side-by-side-on-the-desktop-using-Snap" target="_blank">微软官网介绍及视频演示</a>）</p>
<p><strong>五、快速用其他浏览器打开当前页面</strong></p>
<p>如果您觉得手动复制粘贴URL过于繁琐，那么 <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a> 的这款插件 —— <a href="https://addons.mozilla.org/en-US/firefox/addon/11097/" target="_blank">Open With</a> 将成为简化操作的得力助手。全数支持调用 IE、<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>、Safari、Opera。</p>
<p><a rel="lightbox[2562]" href="http://images.uheed.com/iwanna/2010/07/23/2010-07-22_011026.jpg"><img title="Open With" src="http://images.uheed.com/iwanna/2010/07/23/2010-07-22_011026.jpg" alt="如何高效在多个浏览器之间同步使用的5个工具技巧 | iwanna.cn 我想网" width="493" height="194" /></a></p>
<p>安装后，它可以依据设置，在 View 菜单、标签栏或是内容菜单中，增加其他浏览器的对应链接。点击后，就会自动调用其他浏览器打开当前的页面。Web开发人员应该内牛满面了吧？</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/23/4676/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/23/4676/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/23/4676/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/23/4676/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/23/4676/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/ie/" title="IE" rel="tag nofollow">IE</a>, <a href="http://www.iwanna.cn/tags/skill/" title="Skill" rel="tag nofollow">Skill</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4780/" title="打败 IE 的葵花宝典：CSS Bug Table (2010年07月29日)">打败 IE 的葵花宝典：CSS Bug Table</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1706/" title="JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera (2009年06月4日)">JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/01/4295/" title="IE9允许前端开发获取到页面性能数据 (2010年07月1日)">IE9允许前端开发获取到页面性能数据</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1703/" title="Firefox跟IE在JavaScript中的七个不同表现 (2009年06月4日)">Firefox跟IE在JavaScript中的七个不同表现</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/07/986/" title="CSS在IE6中的bug修正技巧 (2009年05月7日)">CSS在IE6中的bug修正技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/31/1252/" title="5个加快网页响应时间的方法 (2009年05月31日)">5个加快网页响应时间的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/29/894/" title="页面输出时一些常用的小技巧 (2009年04月29日)">页面输出时一些常用的小技巧</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/23/4676/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xvfb+YSlow+ShowSlow 搭建前端性能测试框架</title>
		<link>http://www.iwanna.cn/archives/2010/07/09/4444/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/09/4444/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:05:40 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Tool]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4444</guid>
		<description><![CDATA[工具介绍
Xvfb:  主要就是通过内存计算模拟出图形界面，没有平常所见的操作界面，分为客户端和服务器
YSlow: 当Firefox浏览网页时，可以分析网站的页面（基于Yahoo 14条评分原则），并指出如何进行优化提高网站性能
ShowSlow:收集YSlow的测试结果并显示出来
Ubuntu：开源的Linux系统，界面越来越向Windows靠近

框架简介
对于前端的童鞋我相信YSlow已经耳熟能详了，基于雅虎的评分规则对页面进行评分的Firefox插件，从中我们可以看出我们页面上的很多不足， 并且可以知道我们如何改进和优化，配合将测试报告发送到本地的ShowSlow平台以提供给开发人员随时查看。在Xvfb的辅助下，这个框架最大的优点就是可以在无显示设备的环境下稳定运行！


环境配置
典型的LAMP配置，网上资料很多，当然你也可以点此围观
搭建本地ShowSlow测试平台
这个我之前在Windows Server 2003搭建过（点此围观），但是这次在Ubuntu下还是有所区别的（所有命令都在终端输入）

sudo mkdir /var/www/showslow  (建立一个空文件夹)
sudo svn checkout http://showslow.googlecode.com/svn/trunk/  /var/www/showslow (将ShowSlow的源代码下载到本地，这一步会报错连接不上http://svn.facebook.com，首先要感谢国家，其次要感谢功夫网，最后我要说的是无视…)
sudo mv config.sample.php config.php (修改文件夹名)
sudo gedit config.php
根据实际情况修改$db,$user,$pass可以根据实际情况修改
按照上一步修改的数据创建相应的Mysql数据库
//以root用户权限进入mysql
 mysql -uroot -p
//创建一个数据库，名字和第二步你填写的保持一致
 create database ‘DBName‘;
//切换到新建的数据库
 use ‘DBName’;
// 将ShowSlow文件夹的tables.sql（数据库表）导入到新建的数据库中，注意无分号
source  /var/www/showslow/tables.sql
//查看下是否导入成功了，貌似有个表名叫ShowSlow2，汗
 show tables;

自动化脚本
这个是我们这个框架最重要的部分，具体请参考Sergey  Chernyshev的博客以及自动化脚本作者Aaron  Kulick ，现在最新的Showslow的子文件夹automation有三个文件——monitor.sh (配置文件) test_harness.pl （自动化脚本） ReadMe（框架说明文件，强烈推荐各位童鞋仔细阅读，因为这关系到后面脚本的修 改问题）
Xvfb
sudo apt-get install xvfb
Xvfb :1 -screen 0 1152×864&#215;24 +extension [...]]]></description>
			<content:encoded><![CDATA[<p><strong>工具介绍</strong></p>
<p><a href="http://en.wikipedia.org/wiki/Xvfb" target="_blank">Xvfb</a>:  主要就是通过内存计算模拟出图形界面，没有平常所见的操作界面，分为客户端和服务器</p>
<p><strong><a href="http://developer.yahoo.com/yslow/" target="_blank">YSlow</a></strong>: 当<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>浏览网页时，可以分析网站的页面（<a href="http://developer.yahoo.com/performance/rules.html">基于Yahoo 14条评分原则</a>），并指出如何进行优化提高网站性能</p>
<p><strong><a href="http://www.showslow.com/" target="_blank">ShowSlow</a>:收集YSlow的测试结果并显示出来</strong></p>
<p><a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>：开源的Linux系统，界面越来越向Windows靠近<br />
<span id="more-4444"></span><br />
<strong>框架简介</strong></p>
<p>对于前端的童鞋我相信YSlow已经耳熟能详了，基于雅虎的评分规则对页面进行评分的<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>插件，从中我们可以看出我们页面上的很多不足， 并且可以知道我们如何改进和优化，配合将测试报告发送到本地的ShowSlow平台以提供给开发人员随时查看。在Xvfb的辅助下，<strong>这个框架最大的优点就是可以在无显示设备的环境下稳定运行</strong><strong>！</strong></p>
<p><strong><br />
</strong></p>
<p><strong>环境配置</strong></p>
<p>典型的LAMP配置，网上资料很多，当然你也可以<a href="http://www.besteric.com/?p=554" target="_blank">点此围观</a></p>
<p><strong>搭建本地ShowSlow测试平台</strong></p>
<p>这个我之前在Windows Server 2003搭建过（<a href="http://www.besteric.com/?p=479" target="_blank">点此围观</a>），但是这次在Ubuntu下还是有所区别的（<strong>所有命令都在终端输入</strong>）</p>
<ol>
<li>sudo mkdir /var/www/showslow  (建立一个空文件夹)</li>
<li>sudo svn checkout http://showslow.googlecode.com/svn/trunk/  /var/www/showslow (将ShowSlow的源代码下载到本地，这一步会报错连接不上http://svn.facebook.com，首先要感谢国家，其次要感谢功夫网，最后我要说的是无视…)</li>
<li>sudo mv config.sample.php config.php (修改文件夹名)</li>
<li>sudo gedit config.php</li>
<li>根据实际情况修改<strong>$db,$user,$pass</strong>可以根据实际情况修改</li>
<li>按照上一步修改的数据创建相应的Mysql数据库</li>
<blockquote><p>//以root用户权限进入mysql<br />
<strong> mysql -uroot -p</strong><br />
//创建一个数据库，名字和第二步你填写的保持一致<br />
<strong> create database ‘DBName‘;</strong><br />
//切换到新建的数据库<br />
<strong> use ‘DBName’;</strong><br />
// 将ShowSlow文件夹的tables.sql（数据库表）导入到新建的数据库中，注意无分号<br />
<strong>source  /var/www/showslow/tables.sql</strong><br />
//查看下是否导入成功了，貌似有个表名叫ShowSlow2，汗<br />
<strong> show tables;</strong></p></blockquote>
</ol>
<p><strong>自动化脚本</strong></p>
<p>这个是我们这个框架最重要的部分，具体请参考<a href="http://www.sergeychernyshev.com/blog/automating-yslow-and-pagespeed-using-xvfb/">Sergey  Chernyshev</a>的博客以及自动化脚本作者<a href="http://www.linkedin.com/in/xiphoidindustries" target="_blank">Aaron  Kulick</a> ，现在最新的Showslow的子文件夹automation有三个文件——<strong>monitor.sh</strong> (配置文件) <strong>test_harness.pl</strong> （自动化脚本） <strong>ReadMe</strong>（<strong>框架说明文件，强烈推荐各位童鞋仔细阅读，因为这关系到后面脚本的修 改问题</strong>）</p>
<p><strong>Xvfb</strong></p>
<p>sudo apt-get install xvfb</p>
<p>Xvfb :1 -screen 0 1152×864&#215;24 +extension RANDR</p>
<blockquote><p>我在此处发现报错：<strong>[dix]  Could not init font path element /usr/share/fonts/X11/cyrillic,  removing from list!</strong></p>
<p>通过Google大神的帮助，解决办法很简单，安装这个需要的字体——<strong>sudo  apt-get </strong><strong>install</strong><strong> xfonts-</strong><strong>cyrillic</strong></p></blockquote>
<p><strong>创建一份测试页面列表</strong></p>
<p>sudo gedit /var/www/URLs （在Apache下新建一个URLs列表，注意每一个链接为单独的一行)</p>
<p><strong>创建一份<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>测试专用的Profiles</strong></p>
<p>/usr/lib/<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">firefox</a>-3.6.3/<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">firefox</a> -profilemanager</p>
<p>首先我们要修改<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>的application.ini文件最后一段，避免<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>崩溃后发送报告</p>
<blockquote>
<div>[Crash Reporter]</div>
<div>Enabled=<strong>0</strong></div>
</blockquote>
<p>其次就是修改测试专用的Profiles的prefs.js，这个很关键，要设置一些<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>属性才能让测试更好的进行下 去，ShowSlow的论坛有推荐配置，（<a href="http://groups.google.com/group/showslow/browse_thread/thread/5a2b19db7dfbefb7" target="_blank">猛击这里</a>）</p>
<blockquote><p>gedit /home/eric/FFProfiles/prefs.js</p>
<p>## PREFS.JS RECOMMENDATIONS (AUTOMATION)</p>
<p><strong>#do not let automated  <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">firefox</a> manipulate the profile extensions (auto </strong></p>
<p><strong>update) </strong></p>
<p>user_pref(“extensions.update.enabled”, false);</p>
<p>user_pref(“extensions.update.notifyUser”, false);</p>
<p><strong>#disable session restore  on crash (do not want stale/old tabs) </strong></p>
<p>user_pref(“browser.sessionstore.resume_from_crash”, false);</p>
<p><strong>#do not let javascript  resize the window </strong></p>
<p>user_pref(“dom.disable_window_move_resize”, true);</p>
<p><strong>#do not let javascript  manipulate context menus (automation) </strong></p>
<p>user_pref(“pref.advanced.javascript.disable_button.advanced”, false);</p>
<p><strong>#do not show me pop-up  block messages (screenshot related) </strong></p>
<p>user_pref(“privacy.popups.showBrowserMessage”, false);</p>
<p><strong>#do not warn for weak  SSL or mixed SSL/HTTP content: </strong></p>
<p>user_pref(“security.warn_entering_weak”, false);</p>
<p>user_pref(“security.warn_viewing_mixed”, false);</p>
<p><strong>#firebug prefs </strong></p>
<p>user_pref(“extensions.firebug.allPagesActivation”, “on”);</p>
<p>user_pref(“extensions.firebug.net.enableSites”, true);</p>
<p>user_pref(“extensions.firebug.defaultPanelName”, “YSlow”);</p>
<p>user_pref(“extensions.firebug.previousPlacement”, 1);</p>
<p><strong>#yslow prefs </strong></p>
<p>user_pref(“extensions.yslow.autorun”, true);</p>
<p>user_pref(“extensions.yslow.beaconInfo”, “grade”);</p>
<p>user_pref(“extensions.yslow.beaconUrl”, “<strong>http://localhost/showslow/beacon/yslow/“); </strong></p>
<p>user_pref(“extensions.yslow.optinBeacon”, true);</p></blockquote>
<p><strong>配置本地YSlow</strong></p>
<ol>
<li>打开<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>输入：about:config（我保证会很小心的）</li>
<li>filter中输入：yslow</li>
<li>修改以下三条数据</li>
<blockquote><p>extensions.yslow.beaconUrl = <strong>http://localhost/showslow/beacon/yslow/</strong></p>
<p>如果测试和服务器不在同一机器上，请将<strong>localhost</strong>改成实际地址</p>
<p><strong>extensions.yslow.beaconInfo  = grade</strong></p>
<p><strong>extensions.yslow.optinBeacon  = true</strong></p></blockquote>
<li>重启<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>，have fun  <img src='http://www.iwanna.cn/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<p>还等什么？开始你的测试之旅吧，查看测试报告的URL是：http://localhost/showslow/</p>
<blockquote><p><strong>在这个地方遇到了一个问题 就是所有配置都是正确的情况下，ShowSlow依然接收不到YSlow发送的测试数据，后来在RedHat的服务器上搭建环境同样遇到了这个问题，经过 SA白非童鞋的帮助查看Apache的报错日志（/var/log/apache2/error.log）发现罪魁祸首是脚本中需要的几个模块必须是 PHP5.2以上的版本，遂升级PHP至最新版本可解决问题。</strong></p></blockquote>
<p><strong>test_harness.pl</strong></p>
<p>这个脚本是用Perl语言写的，我也是刚接触这个语言，但是我还是推荐各位童鞋看看他的文件结构，老外写的代码阅读起来还是比较舒服，附带着大量注 释方便我这样的小白也能轻松理解每个函数的意义。我们主要需要用到的是display，profile，source这三个属性（具体作用ReadMe有 解释），可以参考下我运行这个脚本的方式：</p>
<p>perl test_harness.pl -display=:1 -source http://localhost/URLs  -profile /home/eric/FFProfiles</p>
<blockquote><p>Can’t locate POE.pm in @INC (@INC contains: /etc/perl  /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5  /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10  /usr/local/lib/site_perl .) at test_harness.pl line 100.<br />
BEGIN failed–compilation aborted at test_harness.pl line 100.</p>
<p>这个问题纠结了我好几天，百思不得其解，关键还是我第一次使用Linux和Perl，对于很多报错信息都可以熟视无睹（请鄙视我），最后请教了 Sergey童鞋，才恍然大悟原来是没有安装POE（请再次鄙视我），解决办法参考如下：</p>
<p><strong>sudo perl -MCPAN -e  shell （sudo很关键啊，内牛满面）</strong></p>
<p><strong>cpan&gt; install POE</strong></p>
<p><strong>如果提示YAML没有安装  (类似于XML的数据描述语言)</strong></p>
<p><strong>cpan&gt;install YAML</strong></p>
<p><strong>cpan&gt; exit</strong></p></blockquote>
<p>这个时候自动化脚本已经开始运行了，我们可以通过外部机器访问虚拟机搭建的ShowSlow查看测试结果  (Ubuntu使用ifconfig查看本机IP地址，注意虚拟机网卡要设置成Bridged方式)</p>
<p><strong>monitor.sh</strong></p>
<p>自动调用之前编写test_harness.pl脚本，当我们将调用test_harness的一些参数添加进monitor后使用Linux的 Cron就可以实现自动化测试了：）</p>
<blockquote><p>注意将脚本文件夹的绝对路径赋值给Xvfb_PIDFILE，因为每次执行的时候系统会自动生成一个__xvfb.pid</p></blockquote>
<p>2010-7-1日更新</p>
<p>在Ubuntu和RedHat环境搭建下的Showslow平台点击测试URL进入Detail Page发现“Measurements  over time”和“YSlow measurements  history”两个区域的图形绘制不出，自己找了很久一直没有头绪，只好求助于ShowSlow的作者Sergey…<br />
1 确保config.php文件中的$showslow_base=http://localhost/showslow/<br />
2 查看phpinfo()确保Apache的模块mod_rewrite加载并启用了</p>
<blockquote><p>1 Enable mod_rewrite</p>
<p>sudo a2enmod rewrite ;</p>
<p>2 change all of  ”<strong>AllowOverride  none</strong>” to “<strong>AllowOverride  All</strong>”</p>
<p>sudo vim /etc/apache2/sites-enabled/000-default ;</p>
<p>3 Restart apache2</p>
<p>sudo /etc/init.d/apache2 restart;</p></blockquote>
<p>刷新一下页面图形是不是回来了：）</p>
<p>在实际工作中我们还遇到了一个不大不小的问题就是有些页面需要登录才能访问，而我们的测试环境又是全自动化的，所以在这里需要用到<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>的 一个插件叫做Greasemonkey，可以执行JS脚本，这样只需要我们编写一个自动登录的小JS脚本，然后在Greasemonkey中设置那几个 URL需要使用这个脚本，这样每次访问需要登录的界面就会自动登录了。</p>
<p><strong>参考文档（部分需要翻墙）：</strong></p>
<p><a href="http://developer.yahoo.com/performance/rules.html">http://developer.yahoo.com/performance/rules.html</a></p>
<p><a href="http://en.wikipedia.org/wiki/Xvfb">http://en.wikipedia.org/wiki/Xvfb</a></p>
<p><a href="http://developer.yahoo.com/yslow/">http://developer.yahoo.com/yslow/</a></p>
<p><a href="http://www.showslow.com/">http://www.showslow.com/</a></p>
<p><a href="http://www.ubuntu.com/">http://www.ubuntu.com/</a></p>
<p><a href="http://www.sergeychernyshev.com/blog/automating-yslow-and-pagespeed-using-xvfb/">http://www.sergeychernyshev.com/blog/automating-yslow-and-pagespeed-using-xvfb/</a></p>
<p><a href="http://www.linkedin.com/in/xiphoidindustries">http://www.linkedin.com/in/xiphoidindustries</a></p>
<p><a href="http://groups.google.com/group/showslow/browse_thread/thread/5a2b19db7dfbefb7">http://groups.google.com/group/showslow/browse_thread/thread/5a2b19db7dfbefb7</a></p>
<p>–EOF–</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/09/4444/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/09/4444/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/09/4444/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/09/4444/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/09/4444/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/software/tool/" title="Tool" rel="tag nofollow">Tool</a>, <a href="http://www.iwanna.cn/tags/tool/" title="Tool" rel="tag nofollow">Tool</a>, <a href="http://www.iwanna.cn/topics/ui/" title="前端开发" rel="tag nofollow">前端开发</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/08/16/2140/" title="13个浏览器测试和代码验证的方法/工具 (2009年08月16日)">13个浏览器测试和代码验证的方法/工具</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/19/4628/" title="美化你的Google阅读器 (2010年07月19日)">美化你的Google阅读器</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/01/1900/" title="网页鼠标点击轨迹热图跟踪软件-ClickHeat (2009年07月1日)">网页鼠标点击轨迹热图跟踪软件-ClickHeat</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/09/4444/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>从输入网址到显示网页，这个过程都发生了什么？</title>
		<link>http://www.iwanna.cn/archives/2010/07/02/4323/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/02/4323/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 12:56:24 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4323</guid>
		<description><![CDATA[作为一个软件开发者，你一定会对网络应用如何工作有一个完整的层次化的认知，同样这里也包括这些应用所用到的技术：像浏览器，HTTP，HTML，网络服务器，需求处理等等。
本文将更深入的研究当你输入一个网址的时候，后台到底发生了一件件什么样的事～
1. 首先嘛，你得在浏览器里输入要网址:


2. 浏览器查找域名的IP地址

导航的第一步是通过访问的域名找出其IP地址。DNS查找过程如下：
* 浏览器缓存 – 浏览器会缓存DNS记录一段时间。  有趣的是，操作系统没有告诉浏览器储存DNS记录的时间，这样不同浏览器会储存个自固定的一个时间（2分钟到30分钟不等）。
* 系统缓存 –  如果在浏览器缓存里没有找到需要的记录，浏览器会做一个系统调用（windows里是gethostbyname）。这样便可获得系统缓存中的记录。
*  路由器缓存 – 接着，前面的查询请求发向路由器，它一般会有自己的DNS缓存。
* ISP DNS 缓存 –  接下来要check的就是ISP缓存DNS的服务器。在这一般都能找到相应的缓存记录。
* 递归搜索 –  你的ISP的DNS服务器从跟域名服务器开始进行递归搜索，从.com顶级域名服务器到Facebook的域名服务器。一般DNS服务器的缓存中会 有.com域名服务器中的域名，所以到顶级服务器的匹配过程不是那么必要了。
DNS递归查找如下图所示：

DNS有一点令人担忧，这就是像wikipedia.org 或者  facebook.com这样的整个域名看上去只是对应一个单独的IP地址。还好，有几种方法可以消除这个瓶颈：
* 循环 DNS 是DNS查找时返回多个IP时的解决方案。举例来说，Facebook.com实际上就对应了四个IP地址。
*  负载平衡器 是以一个特定IP地址进行侦听并将网络请求转发到集群服务器上的硬件设备。 一些大型的站点一般都会使用这种昂贵的高性能负载平衡器。
*  地理 DNS  根据用户所处的地理位置，通过把域名映射到多个不同的IP地址提高可扩展性。这样不同的服务器不能够更新同步状态，但映射静态内容的话非常好。
*  Anycast 是一个IP地址映射多个物理主机的路由技术。 美中不足，Anycast与TCP协议适应的不是很好，所以很少应用在那些方案中。
大多数DNS服务器使用Anycast来获得高效低延迟的DNS查找。
3. 浏览器给web服务器发送一个HTTP请求

因为像Facebook主页这样的动态页面，打开后在浏览器缓存中很快甚至马上就会过期，毫无疑问他们不能从中读取。
所以，浏览器将把一下请求发送到Facebook所在的服务器：
GET http://facebook.com/ HTTP/1.1
Accept:  application/x-ms-application, image/jpeg, application/xaml+xml, [...]
User-Agent:  [...]]]></description>
			<content:encoded><![CDATA[<p>作为一个软件开发者，你一定会对网络应用如何工作有一个完整的层次化的认知，同样这里也包括这些应用所用到的技术：像浏览器，HTTP，HTML，网络服务器，需求处理等等。</p>
<p>本文将更深入的研究当你输入一个网址的时候，后台到底发生了一件件什么样的事～<br />
1. 首先嘛，你得在浏览器里输入要网址:</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image4.png" alt="" width="600" /><br />
<span id="more-4323"></span><br />
2. 浏览器查找域名的IP地址</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image13.png" alt="" /></p>
<p>导航的第一步是通过访问的域名找出其IP地址。DNS查找过程如下：</p>
<p>* 浏览器缓存 – 浏览器会缓存DNS记录一段时间。  有趣的是，操作系统没有告诉浏览器储存DNS记录的时间，这样不同浏览器会储存个自固定的一个时间（2分钟到30分钟不等）。<br />
* 系统缓存 –  如果在浏览器缓存里没有找到需要的记录，浏览器会做一个系统调用（windows里是gethostbyname）。这样便可获得系统缓存中的记录。<br />
*  路由器缓存 – 接着，前面的查询请求发向路由器，它一般会有自己的DNS缓存。<br />
* ISP DNS 缓存 –  接下来要check的就是ISP缓存DNS的服务器。在这一般都能找到相应的缓存记录。<br />
* 递归搜索 –  你的ISP的DNS服务器从跟域名服务器开始进行递归搜索，从.com顶级域名服务器到Facebook的域名服务器。一般DNS服务器的缓存中会 有.com域名服务器中的域名，所以到顶级服务器的匹配过程不是那么必要了。</p>
<p>DNS递归查找如下图所示：</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/500pxAn_example_of_theoretical_DNS_recursion_svg.png" alt="" /></p>
<p>DNS有一点令人担忧，这就是像wikipedia.org 或者  facebook.com这样的整个域名看上去只是对应一个单独的IP地址。还好，有几种方法可以消除这个瓶颈：</p>
<p>* 循环 DNS 是DNS查找时返回多个IP时的解决方案。举例来说，Facebook.com实际上就对应了四个IP地址。<br />
*  负载平衡器 是以一个特定IP地址进行侦听并将网络请求转发到集群服务器上的硬件设备。 一些大型的站点一般都会使用这种昂贵的高性能负载平衡器。<br />
*  地理 DNS  根据用户所处的地理位置，通过把域名映射到多个不同的IP地址提高可扩展性。这样不同的服务器不能够更新同步状态，但映射静态内容的话非常好。<br />
*  Anycast 是一个IP地址映射多个物理主机的路由技术。 美中不足，Anycast与TCP协议适应的不是很好，所以很少应用在那些方案中。</p>
<p>大多数DNS服务器使用Anycast来获得高效低延迟的DNS查找。</p>
<p>3. 浏览器给web服务器发送一个HTTP请求</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image22.png" alt="" /></p>
<p>因为像Facebook主页这样的动态页面，打开后在浏览器缓存中很快甚至马上就会过期，毫无疑问他们不能从中读取。</p>
<p>所以，浏览器将把一下请求发送到Facebook所在的服务器：</p>
<p>GET http://facebook.com/ HTTP/1.1<br />
Accept:  application/x-ms-application, image/jpeg, application/xaml+xml, [...]<br />
User-Agent:  Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; [...]<br />
Accept-Encoding:  gzip, deflate<br />
Connection: Keep-Alive<br />
Host: facebook.com<br />
Cookie:  datr=1265876274-[...]; locale=en_US; lsd=WW[...]; c_user=2101[...]</p>
<p>GET 这个请求定义了要读取的URL： “http://facebook.com/”。 浏览器自身定义 (User-Agent  头)， 和它希望接受什么类型的相应 (Accept and Accept-Encoding 头).  Connection头要求服务器为了后边的请求不要关闭TCP连接。</p>
<p>请求中也包含浏览器存储的该域名的cookies。可能你已经知道，在不同页面请求当中，cookies是与跟踪一个网站状态相匹配的键 值。这样cookies会存储登录用户名，服务器分配的密码和一些用户设置等。Cookies会以文本文档形式存储在客户机里，每次请求时发送给服务器。</p>
<p>用来看原始HTTP请求及其相应的工具很多。作者比较喜欢使用fiddler，当然也有像FireBug这样其他的工具。这些软件在网站优 化时会帮上很大忙。<br />
除了获取请求，还有一种是发送请求，它常在提交表单用到。发送请求通过URL传递其参数(e.g.:  http://robozzle.com/puzzle.aspx?id=85)。发送请求在请求正文头之后发送其参数。</p>
<p>像“http://facebook.com/”中的斜杠是至关重要的。这种情况下，浏览器能安全的添加斜杠。而像“http:  //example.com/folderOrFile”这样的地址，因为浏览器不清楚folderOrFile到底是文件夹还是文件，所以不能自动添加  斜杠。这时，浏览器就不加斜杠直接访问地址，服务器会响应一个重定向，结果造成一次不必要的握手。</p>
<p>4. facebook服务的永久重定向响应</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image8.png" alt="" /></p>
<p>图中所示为Facebook服务器发回给浏览器的响应：</p>
<p>HTTP/1.1 301 Moved Permanently<br />
Cache-Control: private,  no-store, no-cache, must-revalidate, post-check=0,<br />
pre-check=0<br />
Expires:  Sat, 01 Jan 2000 00:00:00 GMT<br />
Location: http://www.facebook.com/<br />
P3P:  CP=”DSP LAW”<br />
Pragma: no-cache<br />
Set-Cookie:  made_write_conn=deleted; expires=Thu, 12-Feb-2009 05:09:50 GMT;<br />
path=/;  domain=.facebook.com; httponly<br />
Content-Type: text/html;  charset=utf-8<br />
X-Cnection: close<br />
Date: Fri, 12 Feb 2010 05:09:51  GMT<br />
Content-Length: 0</p>
<p>服务器给浏览器响应一个301永久重定向响应，这样浏览器就会访问“http://www.facebook.com/”  而非“http://facebook.com/”。</p>
<p>为什么服务器一定要重定向而不是直接发会用户想看的网页内容呢？这个问题有好多有意思的答案。</p>
<p>其中一个原因跟搜索引擎排名有 关。你看，如果一个页面有两个地址，就像http://www.igoro.com/  和http://igoro.com/，搜索引擎会认为它们是两个网站，结果造成每一个的搜索链接都减少从而降低排名。而搜索引擎知道301永久重定向是  什么意思，这样就会把访问带www的和不带www的地址归到同一个网站排名下。</p>
<p>还有一个是用不同的地址会造成缓存友好性变差。当一个页面有好几个名字时，它可能会在缓存里出现好几次。<br />
5.  浏览器跟踪重定向地址</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image23.png" alt="" /></p>
<p>现在，浏览器知道了 “http://www.facebook.com/”才是要访问的正确地址，所以它会发送另一个获取请求：</p>
<p>GET http://www.facebook.com/ HTTP/1.1<br />
Accept:  application/x-ms-application, image/jpeg, application/xaml+xml, [...]<br />
Accept-Language:  en-US<br />
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;  WOW64; [...]<br />
Accept-Encoding: gzip, deflate<br />
Connection:  Keep-Alive<br />
Cookie: lsd=XW[...]; c_user=21[...]; x-referer=[...]<br />
Host:  www.facebook.com</p>
<p>头信息以之前请求中的意义相同。<br />
6. 服务器“处理”请求</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image9.png" alt="" /></p>
<p>服务器接收到获取请求，然后处理并返回一个响应。</p>
<p>这表面上看起来是一个顺向的任务，但其实这中间发生了很多有意思的东西-  就像作者博客这样简单的网站，何况像facebook那样访问量大的网站呢！</p>
<p>* Web 服务器软件<br />
web服务器软件（像IIS和阿帕奇）接收到HTTP请求，然后确定执行什么请求处理来处理它。请求处理就 是一个能够读懂请求并且能生成HTML来进行响应的程序（像ASP.NET,PHP,RUBY…）。</p>
<p>举  个最简单的例子，需求处理可以以映射网站地址结构的文件层次存储。像http://example.com/folder1/page1.aspx这个地  址会映射/httpdocs/folder1/page1.aspx这个文件。web服务器软件可以设置成为地址人工的对应请求处理，这样  page1.aspx的发布地址就可以是http://example.com/folder1/page1。<br />
* 请求处理<br />
请求处理阅读 请求及它的参数和cookies。它会读取也可能更新一些数据，并讲数据存储在服务器上。然后，需求处理会生成一个HTML响应。</p>
<p>所 有动态网站都面临一个有意思的难点  -如何存储数据。小网站一半都会有一个SQL数据库来存储数据，存储大量数据和/或访问量大的网站不得不找一些办法把数据库分配到多台机器上。解决方案  有：sharding （基于主键值讲数据表分散到多个数据库中），复制，利用弱语义一致性的简化数据库。</p>
<p>委  托工作给批处理是一个廉价保持数据更新的技术。举例来讲，Fackbook得及时更新新闻feed，但数据支持下的“你可能认识的人”功能只需要每晚更新  （作者猜测是这样的，改功能如何完善不得而知）。批处理作业更新会导致一些不太重要的数据陈旧，但能使数据更新耕作更快更简洁。<br />
7.  服务器发回一个HTML响应</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image10.png" alt="" /></p>
<p>图中为服务器生成并返回的响应：</p>
<p>HTTP/1.1 200 OK<br />
Cache-Control: private, no-store, no-cache,  must-revalidate, post-check=0,<br />
pre-check=0<br />
Expires: Sat, 01 Jan  2000 00:00:00 GMT<br />
P3P: CP=”DSP LAW”<br />
Pragma: no-cache<br />
Content-Encoding:  gzip<br />
Content-Type: text/html; charset=utf-8<br />
X-Cnection: close<br />
Transfer-Encoding:  chunked<br />
Date: Fri, 12 Feb 2010 09:05:55 GMT</p>
<p>2b3Tn@[...]</p>
<p>整个响应大小为35kB，其中大部分在整理后以blob类型传输。</p>
<p>内容编码头告诉浏览器整个响应体用 gzip算法进行压缩。解压blob块后，你可以看到如下期望的HTML：</p>
<p>&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;<br />
lang=&#8221;en&#8221;  id=&#8221;facebook&#8221;&gt;</p>
<p>…</p>
<p>关于压缩，头信息说明了是否缓存这个页面，如果缓存的话如何去做，有什么cookies要去设置（前面这个响应里没有这点）和隐私信息等 等。</p>
<p>请注意报头中把Content-type设置为“text/html”。报头让浏览器将该响应内容以HTML形式呈现，而不是以文件形式下 载它。浏览器会根据报头信息决定如何解释该响应，不过同时也会考虑像URL扩展内容等其他因素。<br />
8. 浏览器开始显示HTML</p>
<p>在浏览器没有完整接受全部HTML文档时，它就已经开始显示这个页面了：</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image6.png" alt="" /></p>
<p>9. 浏览器发送获取嵌入在HTML中的对象</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image11.png" alt="" /></p>
<p>在浏览器显示HTML时，它会注意到需要获取其他地址内容的标签。这时，浏览器会发送一个获取请求来重新获得这些文件。</p>
<p>下面是几个我们访问facebook.com时需要重获取的几个URL：</p>
<p>* 图片</p>
<p>http://static.ak.fbcdn.net/rsrc.php/z12E0/hash/8q2anwu7.gif</p>
<p>http://static.ak.fbcdn.net/rsrc.php/zBS5C/hash/7hwy7at6.gif</p>
<p>…<br />
*  <a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a> 式样表</p>
<p>http://static.ak.fbcdn.net/rsrc.php/z448Z/hash/2plh8s4n.<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a></p>
<p>http://static.ak.fbcdn.net/rsrc.php/zANE1/hash/cvtutcee.<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a></p>
<p>…<br />
*  JavaScript 文件</p>
<p>http://static.ak.fbcdn.net/rsrc.php/zEMOA/hash/c8yzb6ub.js</p>
<p>http://static.ak.fbcdn.net/rsrc.php/z6R9L/hash/cq2lgbs8.js</p>
<p>…</p>
<p>这些地址都要经历一个和HTML读取类似的过程。所以浏览器会在DNS中查找这些域名，发送请求，重定向等等…</p>
<p>但  不像动态页面那样，静态文件会允许浏览器对其进行缓存。有的文件可能会不需要与服务器通讯，而从缓存中直接读取。服务器的响应中包含了静态文件保存的期限   信息，所以浏览器知道要把它们缓存多长时间。还有，每个响应都可能包含像版本号一样工作的ETag头（被请求变量的实体值），如果浏览器观察到文件的版本  ETag信息已经存在，就马上停止这个文件的传输。</p>
<p>试着猜猜看“fbcdn.net”在地址中代表什么？聪明的答案是”Facebook内容分发网络”。Facebook利用内容分发网络 （CDN）分发像图片，<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>表和 JavaScript文件这些静态文件。所以，这些文件会在全球很多CDN的数据中心中留下备份。</p>
<p>静态内容往往代表站点的带宽大小，也能通过CDN轻松的复制。通常网站会使用第三方的CDN。例如，Facebook的静态文件由最大的 CDN提供商Akamai来托管。</p>
<p>举例来讲，当你试着ping  static.ak.fbcdn.net的时候，可能会从某个akamai.net服务器上获得响应。有意思的是，当你同样再ping一次的时候，响应的 服务器可能就不一样，这说明幕后的负载平衡开始起作用了。<br />
10. 浏览器发送异步（AJAX）请求</p>
<p><img src="http://igoro.com/wordpress/wp-content/uploads/2010/02/image12.png" alt="" /></p>
<p>在Web 2.0伟大精神的指引下，页面显示完成后客户端仍与服务器端保持着联系。</p>
<p>以  Facebook聊天功能为例，它会持续与服务器保持联系来及时更新你那些亮亮灰灰的好友状态。为了更新这些头像亮着的好友状态，在浏览器中执行的  JavaScript代码会给服务器发送异步请求。这个异步请求发送给特定的地址，它是一个按照程式构造的获取或发送请求。还是在Facebook这个例   子中，客户端发送给http://www.facebook.com/ajax/chat/buddy_list.php一个发布请求来获取你好友里哪个  在线的状态信息。</p>
<p>提起这个模式，就必须要讲讲”AJAX”– “异步JavaScript 和 XML”，虽然服务器为什么用XML格式来进行响应也没有个一清二白的原因。再举个例子吧，对于异步请求，Facebook会返回一些  JavaScript的代码片段。</p>
<p>除了其他，fiddler这个工具能够让你看到浏览器发送的异步请求。事实上，你不仅可以被动的做为这些请求的看客，还能主动出击修改和重 新发送它们。AJAX请求这么容易被蒙，可着实让那些计分的在线游戏开发者们郁闷的了。（当然，可别那样骗人家~）</p>
<p>Facebook聊天功能提供了关于AJAX一个有意思的问题案例：把数据从服务器端推送到客户端。因为HTTP是一个请求-响应协议，所 以聊天服务器不能把新消息发给客户。取而代之的是客户端不得不隔几秒就轮询下服务器端看自己有没有新消息。</p>
<p>这些情况发生时长轮询是个减轻服务器负载挺有趣的技术。如果当被轮询时服务器没有新消息，它就不理这个客户端。而当尚未超时的情况下收到了 该客户的新消息，服务器就会找到未完成的请求，把新消息做为响应返回给客户端。<br />
总结一下</p>
<p>希望看了本文，你能明白不同的网络模块是如何协同工作的</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/02/4323/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/02/4323/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/02/4323/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/02/4323/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/02/4323/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/http/" title="HTTP" rel="tag nofollow">HTTP</a>, <a href="http://www.iwanna.cn/tags/web/" title="Web" rel="tag nofollow">Web</a>, <a href="http://www.iwanna.cn/topics/ui/web-ui/" title="WEB" rel="tag nofollow">WEB</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/23/4153/" title="Web Storage全解析 (2010年06月23日)">Web Storage全解析</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/04/11/2657/" title="10 个提高开发效率的 Chrome 插件 (2010年04月11日)">10 个提高开发效率的 Chrome 插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/29/2479/" title="默认Web字体样式 (2010年01月29日)">默认Web字体样式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/18/3223/" title="页面元素的两种表达状态：常态，暂态 (2010年05月18日)">页面元素的两种表达状态：常态，暂态</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/20/4642/" title="迈过社会化网络：互联网的新时代 (2010年07月20日)">迈过社会化网络：互联网的新时代</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/07/2961/" title="设计中的色彩：黑色 (2010年05月7日)">设计中的色彩：黑色</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/07/2959/" title="设计中的色彩：白色 (2010年05月7日)">设计中的色彩：白色</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/23/4157/" title="解码 Web 开发语言 (2010年06月23日)">解码 Web 开发语言</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/02/4323/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE9允许前端开发获取到页面性能数据</title>
		<link>http://www.iwanna.cn/archives/2010/07/01/4295/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/01/4295/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 13:11:49 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4295</guid>
		<description><![CDATA[
长期以来，为了改善站点的用户体验，我们一直都是在页面顶端加上一个 (new  Date()).getTime() 来获取用户打开页面的时间，使用httpwatch来分析页面打开的解释时间。httpwatch虽然强大，但是还是无法让我们深入到用户的环境去了解用户打开页面前的一些情况，例如:DNS解释时间，请求和响应时间，以及更加深入的页面渲染时间等重要信息。这些信息对用  户环境分析是至关重要的。
如今，这个情况即将改变，微软的IE9将给前端开发们提供有力的性能分析接口让我们能够深入分析页面的性能，这就是强大的msPerformance接  口。这个接口其实是基于HTML5草案Web Timing的定义来开发的（有意思的是这个接口是google提供的，chrome目前还没支持，IE9先行了）。

我们来看看通过Web Timing我们可以获取到什么数据
window.msPerformance.navigation
{
requestCount  : 76
type :  0
startTime  : 1277821481923
redirectedCount  : 5
uniqueDomains  : 31
}
window.msPerformance.timingMeasures
{
request  : 22
domContentLoaded  : 342
response  : 10
firstPaint  : 29
domInteractive  : 342
msStyleContentLoaded  : 342
fetch :  459
domComplete  : 342
load :  89
connect  : [...]]]></description>
			<content:encoded><![CDATA[<p><img title="在新窗口打开图片" src="http://images.uheed.com/iwanna/2010/07/01/20100629225909.jpg" alt="" /></p>
<p>长期以来，为了改善站点的用户体验，我们一直都是在页面顶端加上一个<em><strong> (new  Date()).getTime()</strong></em> 来获取用户打开页面的时间，使用<a href="http://www.httpwatch.com/" target="_blank">httpwatch</a>来分析页面打开的解释时间。<a href="http://www.httpwatch.com/" target="_blank">httpwatch</a>虽然强大，但是还是无法让我们深入到用户的环境去了解用户打开页面前的一些情况，例如:DNS解释时间，请求和响应时间，以及更加深入的页面渲染时间等重要信息。这些信息对用  户环境分析是至关重要的。</p>
<p>如今，这个情况即将改变，微软的<a href="http://ie.microsoft.com/testdrive/" target="_blank">IE9</a>将给前端开发们提供有力的性能分析接口让我们能够深入分析页面的性能，这就是强大的<a href="http://blogs.msdn.com/b/ie/archive/2010/06/28/measuring-web-page-performance.aspx" target="_blank">msPerformance</a>接  口。这个接口其实是基于HTML5草案<a href="http://dev.w3.org/2006/webapi/WebTiming/" target="_blank">Web Timing</a>的定义来开发的（有意思的是这个接口是google提供的，<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">chrome</a>目前还没支持，IE9先行了）。<br />
<span id="more-4295"></span><br />
我们来看看通过<a href="http://dev.w3.org/2006/webapi/WebTiming/" target="_blank">Web Timing</a>我们可以获取到什么数据</p>
<p><strong>window.msPerformance.navigation</strong></p>
<p>{</p>
<p>requestCount  : 76</p>
<p>type :  0</p>
<p>startTime  : 1277821481923</p>
<p>redirectedCount  : 5</p>
<p>uniqueDomains  : 31</p>
<p>}</p>
<p><strong>window.msPerformance.timingMeasures</strong></p>
<p>{</p>
<p>request  : 22</p>
<p>domContentLoaded  : 342</p>
<p>response  : 10</p>
<p>firstPaint  : 29</p>
<p>domInteractive  : 342</p>
<p>msStyleContentLoaded  : 342</p>
<p>fetch :  459</p>
<p>domComplete  : 342</p>
<p>load :  89</p>
<p>connect  : 3</p>
<p>}</p>
<p><strong>window.msPerformance.timing</strong></p>
<p>{</p>
<p>domLoading  : 1277821481950</p>
<p>responseEnd  : 1277821481960</p>
<p>navigationStart  : 1277821481923</p>
<p>fetchStart  : 1277821481923</p>
<p>msStyleContentLoaded  : 1277821482293</p>
<p>firstPaint  : 1277821481952</p>
<p>fullyLoaded  : 0</p>
<p>requestStart  : 1277821481927</p>
<p>loadEnd  : 1277821482383</p>
<p>unloadStart  : 1277821481923</p>
<p>}</p>
<p>通过这些数据我们可以更加深入得分析页面的性能和用户的网络环境，提供更加好的差异化服务。</p>
<p><a href="http://ie.microsoft.com/testdrive/" target="_blank"> 到这里下载  IE9预览版</a></p>
<p>发现IE9pre3的console列出的接口不全，直接用调试器把这个接口和方法全部列出来了，更加直观</p>
<p><img title="在新窗口打开图片" src="http://images.uheed.com/iwanna/2010/07/01/20100629231752.jpg" alt="" /></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/01/4295/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/01/4295/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/01/4295/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/01/4295/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/01/4295/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/ie/" title="IE" rel="tag nofollow">IE</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4780/" title="打败 IE 的葵花宝典：CSS Bug Table (2010年07月29日)">打败 IE 的葵花宝典：CSS Bug Table</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/23/4676/" title="如何高效在多个浏览器之间同步使用的5个工具技巧 (2010年07月23日)">如何高效在多个浏览器之间同步使用的5个工具技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1706/" title="JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera (2009年06月4日)">JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1703/" title="Firefox跟IE在JavaScript中的七个不同表现 (2009年06月4日)">Firefox跟IE在JavaScript中的七个不同表现</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/01/4295/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>小议使用“完整”的CSS的缺点</title>
		<link>http://www.iwanna.cn/archives/2010/06/28/4224/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/28/4224/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 14:40:02 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4224</guid>
		<description><![CDATA[浏览器支持的不一致性
浏览器的漏洞或缺乏支持的CSS功能，导致不同的浏览器显示出不同的CSS版面编排。例如在微软Internet Explorer6.0的旧版本 ，执行了许多自己的CSS2.0属性，曲解了很多重要的属性，例如：width，height，和float。许多所谓的CSS人员，必须在最热门的或常用的浏览器中达到一致的版面编排。在不同的浏览器中，要达到像素精准的版面编排，有时候是不可能的。

CSS没有父层选择器 CSS选择器无法提供元素的父层或继承性，以符合某种程度上的标准。先进的选择器（例如 XPath）有助于复杂的样式设计。然而，浏览器的性能和增加彩现的问题关系著父层选择器，却是CSS的工作群组拒绝建议的主要原因。
不能明确地指定继承性 样式的继承性，建立在浏览器中DOM元素的层级和具体的规则上。
垂直控制的局限元素的水平放置普遍地易于控制，垂直控制则非凭直觉性的、较迂回的甚至是不可能的。简单来说，例如：垂直地围绕一个元素、页尾的放置不能高于可见视窗（viewport，视窗或屏幕的可见范围）的底部范围、需要复杂而非凭直觉性的样式规则，或是简单但不被广泛支持的规则。
显示的缺乏目前的CSS没有办法明确又简单的显示属性值（例如：margin-left: 10% &#8211; 3em +4px;）。这在很多情况下都是非常有用的，例如：总字段中计算字段的尺寸限制。无论如何，CSS WG发表了CSS局限性的草案，而InternetExplorer 5 以后的版本支持相似功能的语法显示。
缺乏正交性同样的效果可以用不同的属性来完成，这经常会造成困扰。例如position、display与float定义了不同的配置方式，而且不能有效的交替使用。 一个display: table-cell元素不能指定 float或是position: relative，因为指定float:left的元素不应该受到display效果的影响。再者，没有考虑到新建立属性所造成的影响，例如在表格中你应该使用border-spacing而不是margin-*来指定表格元素。这是因为依照CSS准则，表格内部元素是没有边界（margin）的。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser, CSS, CSS

	您可能会感兴趣的其他文章
	
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	打败 IE 的葵花宝典：CSS Bug Table 
	各浏览器的默认CSS 
	PNG透明兼容IE6的几种方法 
	IE不支持的10个非常有用的CSS属性 
	IE8面向Web开发人员的功能改进 
	CSS在IE6中的bug修正技巧 
	页面输出时一些常用的小技巧 
	面向对象的CSS 
	针对IE8正式版的CSS hack 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p><strong>浏览器支持的不一致性</strong><br />
浏览器的漏洞或缺乏支持的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>功能，导致不同的浏览器显示出不同的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>版面编排。例如在微软Internet Explorer6.0的旧版本 ，执行了许多自己的CSS2.0属性，曲解了很多重要的属性，例如：width，height，和float。许多所谓的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>人员，必须在最热门的或常用的浏览器中达到一致的版面编排。在不同的浏览器中，要达到像素精准的版面编排，有时候是不可能的。<br />
<span id="more-4224"></span><br />
<strong><a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>没有父层选择器</strong> <a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>选择器无法提供元素的父层或继承性，以符合某种程度上的标准。先进的选择器（例如 XPath）有助于复杂的样式设计。然而，浏览器的性能和增加彩现的问题关系著父层选择器，却是<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>的工作群组拒绝建议的主要原因。<br />
<strong>不能明确地指定继承性</strong> 样式的继承性，建立在浏览器中DOM元素的层级和具体的规则上。<br />
<strong>垂直控制的局限</strong>元素的水平放置普遍地易于控制，垂直控制则非凭直觉性的、较迂回的甚至是不可能的。简单来说，例如：垂直地围绕一个元素、页尾的放置不能高于可见视窗（viewport，视窗或屏幕的可见范围）的底部范围、需要复杂而非凭直觉性的样式规则，或是简单但不被广泛支持的规则。<br />
<strong>显示的缺乏</strong>目前的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>没有办法明确又简单的显示属性值（例如：margin-left: 10% &#8211; 3em +4px;）。这在很多情况下都是非常有用的，例如：总字段中计算字段的尺寸限制。无论如何，<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a> WG发表了<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>局限性的草案，而InternetExplorer 5 以后的版本支持相似功能的语法显示。<br />
<strong>缺乏正交性</strong>同样的效果可以用不同的属性来完成，这经常会造成困扰。例如position、display与float定义了不同的配置方式，而且不能有效的交替使用。 一个display: table-cell元素不能指定 float或是position: relative，因为指定float:left的元素不应该受到display效果的影响。再者，没有考虑到新建立属性所造成的影响，例如在表格中你应该使用border-spacing而不是margin-*来指定表格元素。这是因为依照<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>准则，表格内部元素是没有边界（margin）的。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/28/4224/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/28/4224/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/28/4224/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/28/4224/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/28/4224/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/css/" title="CSS" rel="tag nofollow">CSS</a>, <a href="http://www.iwanna.cn/tags/css/" title="CSS" rel="tag nofollow">CSS</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4780/" title="打败 IE 的葵花宝典：CSS Bug Table (2010年07月29日)">打败 IE 的葵花宝典：CSS Bug Table</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4791/" title="各浏览器的默认CSS (2010年07月29日)">各浏览器的默认CSS</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/10/3872/" title="PNG透明兼容IE6的几种方法 (2010年06月10日)">PNG透明兼容IE6的几种方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/22/1113/" title="IE不支持的10个非常有用的CSS属性 (2009年05月22日)">IE不支持的10个非常有用的CSS属性</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/09/07/2228/" title="IE8面向Web开发人员的功能改进 (2009年09月7日)">IE8面向Web开发人员的功能改进</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/07/986/" title="CSS在IE6中的bug修正技巧 (2009年05月7日)">CSS在IE6中的bug修正技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/29/894/" title="页面输出时一些常用的小技巧 (2009年04月29日)">页面输出时一些常用的小技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/16/2019/" title="面向对象的CSS (2009年07月16日)">面向对象的CSS</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/07/981/" title="针对IE8正式版的CSS hack (2009年05月7日)">针对IE8正式版的CSS hack</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/28/4224/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Storage全解析</title>
		<link>http://www.iwanna.cn/archives/2010/06/23/4153/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/23/4153/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 04:21:26 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Storage]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4153</guid>
		<description><![CDATA[Web应用的发展，使得客户端存储使用得也越来越多，而实现客户端存储的方式则是多种多样。最简单而且兼容性最佳的方案是Cookie，但是作为真正的客户端存储，Cookie则存在很多致命伤。此外，在IE6及以上版本中还可以使用userData-Behavior、在Firefox下可以使用globalStorage、在有Flash插件的环境中可以使用Flash-Local-Storage，但是这几种方式都存在兼容性方面的局限性，因此真正使用起来并不理想。针对以上情况，HTML5中给出了更加理想的解决方案：假如你需要存储复杂的数据则可以使用Web Database， 可以像客户端程序一样使用SQL（不过Web Database标准当前正陷于僵局之中，而且目前已经实现的浏览器很有限）；假如你需要存储的只是简单的用key/value对即可解决的数据则可以使 用Web Storage。 本文主要从各个方面介绍一下Web Storage的具体情况。
sessionStorage与localStorage
Web Storage实际上由两部分组成：sessionStorage与localStorage。

sessionStorage用于本地存储一个会话（session）中的数据，这些数据只有在同一个会话中的页面才能访问并且当会话结束后数据也 随之销毁。因此sessionStorage不是一种持久化的本地存储，仅仅是会话级别的存储。
localStorage用于持久化的本地存储，除非主动删除数据，否则数据是永远不会过期的。
为什么选择Web Storage而不是Cookie？
与Cookie相比，Web Storage存在不少的优势，概括为以下几点：
1. 存储空间更大：IE8下每个独立的存储空间为10M，其他浏览器实现略有不同，但都比Cookie要大很多。
2.  存储内容不会发送到服务器：当设置了Cookie后，Cookie的内容会随着请求一并发送的服务器，这对于本地存储的数据是一种带宽浪费。而Web  Storage中的数据则仅仅是存在本地，不会与服务器发生任何交互。
3. 更多丰富易用的接口：Web Storage提供了一套更为丰富的接口，使得数据操作更为简便。
4. 独立的存储空间：每个域（包括子域）有独立的存储空间，各个存储空间是完全独立的，因此不会造成数据混乱。
兼容性如何？
接下来的各种测试是在以下浏览器中进行的：IE8、Firefox3.6、Chrome5、Safari4、Opera10，事实证明各个浏览器在 API方面的实现基本上一致，存在一定的兼容性问题，但不影响正常的使用。
sessionStorage测试
本节主要针对sessionStorage的一些特性进行了测试，测试的重点在于各个浏览器对于session的定义以及跨域情况。测试方法很简 单：打开页面A，在页面A中写入当前的session数据，然后通过页面A中的链接或按钮使用不同的方式进入下页面 B，如果页面B中能够访问到页面A中的数据则说明浏览器将当前情况的页面A、B视为同一个session。测试的具体结果如表1：
表1 sessionStorage兼容性测试




原窗口
target=”_blank”
window.open
ctrl + click
跨域访问


IE8
是
是
是
是
否


Firefox3.6
是
是
是
否（null)
否


Chrome5
是
是
是
否（undefined)
否


Safari4
是
否
是
否（undefined)
否


Opera10
是
否
否
否（undefined)
否



从表1中可以看出，处于安全性考虑所有浏览器下session数据都是不允许跨域访问的，包括跨子域也是不允许的。其他方面主流浏览器中的实现较为 一致。
API测试
方法包括以下几个：
setItem(key,value)、removeItem(key)、getItem(key)、clear()、key(index)；
属性包括length、remainingSpace(非标准)。不过存储数据时可以简单的使用localStorage.key=value的方 式。
测试地址为：http://varnow.org/pages/html5/web_storage/local/localStorage.html
测试结果另人满意，标准中定义的接口在各个浏览器中都已实现，此外IE8下新增了一个非标准的remainingSpace属性，用于获取存储空间 中剩余的空间。结果如表2：
表2 API测试




setItem
removeItem
getItem
clear
key
length
remainingSpace


IE8
是
是
是
是
是
是
是


Firefox3.6
是
是
是
是
是
是
否


Chrome5
是
是
是
是
是
是
否


Safari4
是
是
是
是
是
是
否


Opera10
是
是
是
是
是
是
否



此外关于setItem(key,value)方法中的value类型，理论上可以是任意类型，不过实际上浏览器会调用value的 toString方法来获取其字符串值并存储到本地，因此如果是自定义的类型则需要自己定义有意义的toString方法。
事件
标准的事件为onstorage，当存储空间中的数据发生变化时触发。此外，IE8中新增了一个onstoragecommit事件，当数据写入的 时候触发。onstorage事件中的事件对象应该支持以下属性：
The key attribute represents the key being changed.
The oldValue attribute represents the old value of the key being  changed.
The newValue attribute represents the [...]]]></description>
			<content:encoded><![CDATA[<p>Web应用的发展，使得客户端存储使用得也越来越多，而实现客户端存储的方式则是多种多样。最简单而且兼容性最佳的方案是Cookie，但是作为真正的客户端存储，Cookie则存在很多致命伤。此外，在<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>及以上版本中还可以使用<a href="http://msdn.microsoft.com/en-us/library/ms531424%28v=VS.85%29.aspx" target="_blank">userData-Behavior</a>、在<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>下可以使用<a href="https://developer.mozilla.org/en/dom/storage" target="_blank">globalStorage</a>、在有Flash插件的环境中可以使用<a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/help02.html">Flash-Local-Storage</a>，但是这几种方式都存在兼容性方面的局限性，因此真正使用起来并不理想。针对以上情况，HTML5中给出了更加理想的解决方案：假如你需要存储复杂的数据则可以使用<a href="http://dev.w3.org/html5/webdatabase/" target="_blank">Web Database</a>， 可以像客户端程序一样使用SQL（不过Web Database标准当前正陷于僵局之中，而且目前已经实现的浏览器很有限）；假如你需要存储的只是简单的用key/value对即可解决的数据则可以使 用<a href="http://dev.w3.org/html5/webstorage/" target="_blank">Web Storage</a>。 本文主要从各个方面介绍一下<a href="http://www.iwanna.cn/tags/web-storage/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Web Storage">Web Storage</a>的具体情况。</p>
<h2><strong>sessionStorage与localStorage</strong></h2>
<p><a href="http://www.iwanna.cn/tags/web-storage/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Web Storage">Web Storage</a>实际上由两部分组成：sessionStorage与localStorage。<br />
<span id="more-4153"></span><br />
sessionStorage用于本地存储一个会话（session）中的数据，这些数据只有在同一个会话中的页面才能访问并且当会话结束后数据也 随之销毁。因此sessionStorage不是一种持久化的本地存储，仅仅是会话级别的存储。</p>
<p>localStorage用于持久化的本地存储，除非主动删除数据，否则数据是永远不会过期的。</p>
<h2><strong>为什么选择<a href="http://www.iwanna.cn/tags/web-storage/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Web Storage">Web Storage</a>而不是Cookie？</strong></h2>
<p>与Cookie相比，<a href="http://www.iwanna.cn/tags/web-storage/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Web Storage">Web Storage</a>存在不少的优势，概括为以下几点：</p>
<p>1. 存储空间更大：IE8下每个独立的存储空间为10M，其他浏览器实现略有不同，但都比Cookie要大很多。</p>
<p>2.  存储内容不会发送到服务器：当设置了Cookie后，Cookie的内容会随着请求一并发送的服务器，这对于本地存储的数据是一种带宽浪费。而Web  Storage中的数据则仅仅是存在本地，不会与服务器发生任何交互。</p>
<p>3. 更多丰富易用的接口：<a href="http://www.iwanna.cn/tags/web-storage/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Web Storage">Web Storage</a>提供了一套更为丰富的接口，使得数据操作更为简便。</p>
<p>4. 独立的存储空间：每个域（包括子域）有独立的存储空间，各个存储空间是完全独立的，因此不会造成数据混乱。</p>
<h2><strong>兼容性如何？</strong></h2>
<p>接下来的各种测试是在以下浏览器中进行的：IE8、Firefox3.6、Chrome5、Safari4、Opera10，事实证明各个浏览器在 API方面的实现基本上一致，存在一定的兼容性问题，但不影响正常的使用。</p>
<h2><strong>sessionStorage测试</strong></h2>
<p>本节主要针对sessionStorage的一些特性进行了测试，测试的重点在于各个浏览器对于session的定义以及跨域情况。测试方法很简 单：打开<a href="http://varnow.org/pages/html5/web_storage/session/sessionStorage_A.html" target="_blank">页面A</a>，在页面A中写入当前的session数据，然后通过页面A中的链接或按钮使用不同的方式进入下页面 B，如果页面B中能够访问到页面A中的数据则说明浏览器将当前情况的页面A、B视为同一个session。测试的具体结果如表1：</p>
<p>表1 sessionStorage兼容性测试</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td width="60" valign="top"></td>
<td width="140" valign="top">原窗口</td>
<td width="100" valign="top">target=”_blank”</td>
<td width="100" valign="top">window.open</td>
<td width="100" valign="top">ctrl + click</td>
<td width="100" valign="top">跨域访问</td>
</tr>
<tr>
<td width="60" valign="top">IE8</td>
<td width="140" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">否</td>
</tr>
<tr>
<td width="60" valign="top">Firefox3.6</td>
<td width="140" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">否（null)</td>
<td width="100" valign="top">否</td>
</tr>
<tr>
<td width="60" valign="top">Chrome5</td>
<td width="140" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">否（undefined)</td>
<td width="100" valign="top">否</td>
</tr>
<tr>
<td width="60" valign="top">Safari4</td>
<td width="140" valign="top">是</td>
<td width="100" valign="top">否</td>
<td width="100" valign="top">是</td>
<td width="100" valign="top">否（undefined)</td>
<td width="100" valign="top">否</td>
</tr>
<tr>
<td width="60" valign="top">Opera10</td>
<td width="140" valign="top">是</td>
<td width="100" valign="top">否</td>
<td width="100" valign="top">否</td>
<td width="100" valign="top">否（undefined)</td>
<td width="100" valign="top">否</td>
</tr>
</tbody>
</table>
<p>从表1中可以看出，处于安全性考虑所有浏览器下session数据都是不允许跨域访问的，包括跨子域也是不允许的。其他方面主流浏览器中的实现较为 一致。</p>
<h2><strong>API测试</strong></h2>
<p>方法包括以下几个：</p>
<p>setItem(key,value)、removeItem(key)、getItem(key)、clear()、key(index)；</p>
<p>属性包括length、remainingSpace(非标准)。不过存储数据时可以简单的使用localStorage.key=value的方 式。</p>
<p>测试地址为：<a title="http://varnow.org/pages/html5/web_storage/local/localStorage.html" href="http://varnow.org/pages/html5/web_storage/local/localStorage.html">http://varnow.org/pages/html5/web_storage/local/localStorage.html</a></p>
<p>测试结果另人满意，标准中定义的接口在各个浏览器中都已实现，此外IE8下新增了一个非标准的remainingSpace属性，用于获取存储空间 中剩余的空间。结果如表2：</p>
<p>表2 API测试</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td width="48" valign="top"></td>
<td width="60" valign="top">setItem</td>
<td width="74" valign="top">removeItem</td>
<td width="65" valign="top">getItem</td>
<td width="57" valign="top">clear</td>
<td width="70" valign="top">key</td>
<td width="81" valign="top">length</td>
<td width="145" valign="top">remainingSpace</td>
</tr>
<tr>
<td width="48" valign="top">IE8</td>
<td width="60" valign="top">是</td>
<td width="74" valign="top">是</td>
<td width="65" valign="top">是</td>
<td width="57" valign="top">是</td>
<td width="70" valign="top">是</td>
<td width="81" valign="top">是</td>
<td width="145" valign="top">是</td>
</tr>
<tr>
<td width="48" valign="top">Firefox3.6</td>
<td width="60" valign="top">是</td>
<td width="74" valign="top">是</td>
<td width="65" valign="top">是</td>
<td width="57" valign="top">是</td>
<td width="70" valign="top">是</td>
<td width="81" valign="top">是</td>
<td width="145" valign="top">否</td>
</tr>
<tr>
<td width="48" valign="top">Chrome5</td>
<td width="60" valign="top">是</td>
<td width="74" valign="top">是</td>
<td width="65" valign="top">是</td>
<td width="57" valign="top">是</td>
<td width="70" valign="top">是</td>
<td width="81" valign="top">是</td>
<td width="145" valign="top">否</td>
</tr>
<tr>
<td width="48" valign="top">Safari4</td>
<td width="60" valign="top">是</td>
<td width="74" valign="top">是</td>
<td width="65" valign="top">是</td>
<td width="57" valign="top">是</td>
<td width="70" valign="top">是</td>
<td width="81" valign="top">是</td>
<td width="145" valign="top">否</td>
</tr>
<tr>
<td width="48" valign="top">Opera10</td>
<td width="60" valign="top">是</td>
<td width="74" valign="top">是</td>
<td width="65" valign="top">是</td>
<td width="57" valign="top">是</td>
<td width="70" valign="top">是</td>
<td width="81" valign="top">是</td>
<td width="145" valign="top">否</td>
</tr>
</tbody>
</table>
<p>此外关于setItem(key,value)方法中的value类型，理论上可以是任意类型，不过实际上浏览器会调用value的 toString方法来获取其字符串值并存储到本地，因此如果是自定义的类型则需要自己定义有意义的toString方法。</p>
<h2><strong>事件</strong></h2>
<p>标准的事件为onstorage，当存储空间中的数据发生变化时触发。此外，IE8中新增了一个onstoragecommit事件，当数据写入的 时候触发。onstorage事件中的事件对象应该支持以下属性：</p>
<blockquote><p>The key attribute represents the key being changed.<br />
The oldValue attribute represents the old value of the key being  changed.<br />
The newValue attribute represents the new value of the key being  changed.<br />
The url attribute represents the address of the document whose key  changed.<br />
The storageArea attribute represents the Storage object that was  affected.</p></blockquote>
<p>对于这一标准的实现，webkit内核的浏览器（<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>、Safari）以及Opera是完全遵循标准的，IE8则只实现了 url，<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>下则均未实现。</p>
<p>测试地址为：<a href="http://varnow.org/pages/html5/web_storage/local/event.html">http://varnow.org/pages/html5/web_storage/local/event.html</a></p>
<p>具体结果见表3。</p>
<p>表3 onStorage事件对象属性测试</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td width="60" valign="top"></td>
<td width="140" valign="top">key</td>
<td width="100" valign="top">oldValue</td>
<td width="100" valign="top">newValue</td>
<td width="100" valign="top">url</td>
<td width="100" valign="top">storageArea</td>
</tr>
<tr>
<td width="60" valign="top">IE8</td>
<td width="140" valign="top">无</td>
<td width="100" valign="top">无</td>
<td width="100" valign="top">无</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">无</td>
</tr>
<tr>
<td width="60" valign="top">Firefox3.6</td>
<td width="140" valign="top">无</td>
<td width="100" valign="top">无</td>
<td width="100" valign="top">无</td>
<td width="100" valign="top">无</td>
<td width="100" valign="top">无</td>
</tr>
<tr>
<td width="60" valign="top">Chrome5</td>
<td width="140" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
</tr>
<tr>
<td width="60" valign="top">Safari4</td>
<td width="140" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
</tr>
<tr>
<td width="60" valign="top">Opera10</td>
<td width="140" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
<td width="100" valign="top">有</td>
</tr>
</tbody>
</table>
<p>此外，不同的浏览器事件注册的方式以及对象也不一致，具体如表4。</p>
<p>表4 onStorage事件注册对象</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td width="67" valign="top"></td>
<td width="111" valign="top">事件注册对象</td>
<td width="422" valign="top">备注</td>
</tr>
<tr>
<td width="67" valign="top">IE8</td>
<td width="111" valign="top">document</td>
<td width="422" valign="top"></td>
</tr>
<tr>
<td width="67" valign="top">Firefox3.6</td>
<td width="111" valign="top">document</td>
<td width="422" valign="top">必须使用document.addEventListener注册，否则无效。</td>
</tr>
<tr>
<td width="67" valign="top">Chrome5</td>
<td width="111" valign="top">window</td>
<td width="422" valign="top"></td>
</tr>
<tr>
<td width="67" valign="top">Safari4</td>
<td width="111" valign="top">body</td>
<td width="422" valign="top"></td>
</tr>
<tr>
<td width="67" valign="top">Opera10</td>
<td width="111" valign="top">window</td>
<td width="422" valign="top"></td>
</tr>
</tbody>
</table>
<h2><strong> </strong></h2>
<h2><strong>缺陷与不足</strong></h2>
<p><a href="http://www.iwanna.cn/tags/web-storage/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Web Storage">Web Storage</a>的缺陷主要集中在其安全性方面，具体体现在以下两点：</p>
<p>1.  浏览器会为每个域分配独立的存储空间，即脚本在域A中是无法访问到域B中的存储空间的，但是浏览器却不会检查脚本所在的域与当前域是否相同。即在域B中嵌 入域A中的脚本依然可以访问域B中的数据。测试地址：<a title="http://varnow.org/pages/html5/web_storage/local/corss_domain_js_access.html" href="http://varnow.org/pages/html5/web_storage/local/corss_domain_js_access.html">http://varnow.org/pages/html5/web_storage/local/corss_domain_js_access.html</a></p>
<p>2.  存储在本地的数据未加密而且永远不会过期，极易造成隐私泄漏。也许需要像保存密码一样询问用户是在用私人电脑还是公共电脑来决定是否将数据保存在本地。</p>
<h2><strong>跨页面通讯示例</strong></h2>
<p>示例地址：<a href="http://varnow.org/pages/html5/web_storage/app/play.html">http://varnow.org/pages/html5/web_storage/app/play.html</a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/23/ndimension.jpg"><img src="http://images.uheed.com/iwanna/2010/06/23/ndimension-thumb.jpg" border="0" alt="N-Dimension" width="244" height="235" /></a></p>
<p>玩法很简单：选择  打开多个窗口，页面会自动打开并定位4个新窗口，小球会在多个窗口间运动，在小球运动的过程中可以拖动窗口或者打开新的窗口来控制小球进入新的区域。</p>
<p>实现原理：每个新打开的窗口会将自己的坐标以及大小写入localStorage，小球在运动到窗口边界时会检测小球将要进入的下一个窗口，如果找到该窗口则将小球坐标写入并通知新窗口接收小球。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/23/4153/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/23/4153/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/23/4153/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/23/4153/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/23/4153/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/web/" title="Web" rel="tag nofollow">Web</a>, <a href="http://www.iwanna.cn/topics/ui/web-ui/" title="WEB" rel="tag nofollow">WEB</a>, <a href="http://www.iwanna.cn/tags/web-storage/" title="Web Storage" rel="tag nofollow">Web Storage</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/02/4323/" title="从输入网址到显示网页，这个过程都发生了什么？ (2010年07月2日)">从输入网址到显示网页，这个过程都发生了什么？</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/04/11/2657/" title="10 个提高开发效率的 Chrome 插件 (2010年04月11日)">10 个提高开发效率的 Chrome 插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/29/2479/" title="默认Web字体样式 (2010年01月29日)">默认Web字体样式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/18/3223/" title="页面元素的两种表达状态：常态，暂态 (2010年05月18日)">页面元素的两种表达状态：常态，暂态</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/20/4642/" title="迈过社会化网络：互联网的新时代 (2010年07月20日)">迈过社会化网络：互联网的新时代</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/07/2961/" title="设计中的色彩：黑色 (2010年05月7日)">设计中的色彩：黑色</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/07/2959/" title="设计中的色彩：白色 (2010年05月7日)">设计中的色彩：白色</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/23/4157/" title="解码 Web 开发语言 (2010年06月23日)">解码 Web 开发语言</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/23/4153/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决IE6背景图片不缓存的BUG</title>
		<link>http://www.iwanna.cn/archives/2010/06/21/4116/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/21/4116/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:45:15 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4116</guid>
		<description><![CDATA[IE6在背景图片缓存上有一个bug：它会每次都从服务器端读取背景图片。 例如我们使用a:hover更换背景图片，在IE6下会出现每次鼠标滑过则重新向服务器请求图片，如果服务器反应较慢，那么hover效果就会出现短暂的 空白，令人极度不爽。虽然可以通过CSS sprites的方式解决问题的，但效果差强人意。
示例：
a{  background:url(normal.gif); } a:hover { background:url(hover.gif); }
如果为超级链接定义上述的css样式以实现鼠标悬浮时的动态效果，在firefox下是没有什么问题的，第一次加载之后，浏览器都会从缓存读取背景图片.

解决方法
具体的解决方法就是在页面中加入一段简单的javascript脚 本，告诉IE6：本地有背景图片的话就不要麻烦服务器了。 document.execCommand("BackgroundImageCache",false,true);
关于这段脚本的放置方式有两种：
1.使用CSS，在CSS中加入如下代码



html {}{ filter: expression(document.execCommand("BackgroundImageCache", false, true)); }



2.使用JS：

document.execCommand("BackgroundImageCache",false,true);

另外查了一下关于这个document.execCommand 的一些其他用法
2D-Position 允许通过拖曳移动绝对定位的对象。
AbsolutePosition 设定元素的 position 属性为“absolute”(绝对)。
BackColor 设置或获取当前选中区的背景颜色。
BlockDirLTR 目前尚未支持。
BlockDirRTL 目前尚未支持。
Bold 切换当前选中区的粗体显示与否。
BrowseMode 目前尚未支持。
Copy 将当前选中区复制到剪贴板。
CreateBookmark 创建一个书签锚或获取当前选中区或插入点的书签锚的名称。
CreateLink 在当前选中区上插入超级链接，或显示一个对话框允许用户指定要为当前选中区插入的超级链接的 URL。
Cut 将当前选中区复制到剪贴板并删除之。
Delete 删除当前选中区。
DirLTR 目前尚未支持。
DirRTL 目前尚未支持。
EditMode 目前尚未支持。
FontName 设置或获取当前选中区的字体。
FontSize 设置或获取当前选中区的字体大小。
ForeColor 设置或获取当前选中区的前景(文本)颜色。
FormatBlock 设置当前块格式化标签。
Indent 增加选中文本的缩进。
InlineDirLTR 目前尚未支持。
InlineDirRTL 目前尚未支持。
InsertButton 用按钮控件覆盖当前选中区。
InsertFieldset 用方框覆盖当前选中区。
InsertHorizontalRule 用水平线覆盖当前选中区。
InsertIFrame 用内嵌框架覆盖当前选中区。
InsertImage 用图像覆盖当前选中区。
InsertInputButton 用按钮控件覆盖当前选中区。
InsertInputCheckbox 用复选框控件覆盖当前选中区。
InsertInputFileUpload 用文件上载控件覆盖当前选中区。
InsertInputHidden 插入隐藏控件覆盖当前选中区。
InsertInputImage 用图像控件覆盖当前选中区。
InsertInputPassword 用密码控件覆盖当前选中区。
InsertInputRadio 用单选钮控件覆盖当前选中区。
InsertInputReset 用重置控件覆盖当前选中区。
InsertInputSubmit 用提交控件覆盖当前选中区。
InsertInputText 用文本控件覆盖当前选中区。
InsertMarquee 用空字幕覆盖当前选中区。
InsertOrderedList 切换当前选中区是编号列表还是常规格式化块。
InsertParagraph 用换行覆盖当前选中区。
InsertSelectDropdown 用下拉框控件覆盖当前选中区。
InsertSelectListbox 用列表框控件覆盖当前选中区。
InsertTextArea 用多行文本输入控件覆盖当前选中区。
InsertUnorderedList 切换当前选中区是项目符号列表还是常规格式化块。
Italic 切换当前选中区斜体显示与否。
JustifyCenter 将当前选中区在所在格式化块置中。
JustifyFull 目前尚未支持。
JustifyLeft 将当前选中区所在格式化块左对齐。
JustifyNone 目前尚未支持。
JustifyRight 将当前选中区所在格式化块右对齐。
LiveResize 迫使 MSHTML 编辑器在缩放或移动过程中持续更新元素外观，而不是只在移动或缩放完成后更新。
MultipleSelection 允许当用户按住 Shift 或 Ctrl 键时一次选中多于一个站点可选元素。
Open 打开。
Outdent 减少选中区所在格式化块的缩进。
OverWrite 切换文本状态的插入和覆盖。
Paste 用剪贴板内容覆盖当前选中区。
PlayImage 目前尚未支持。
Print 打开打印对话框以便用户可以打印当前页。
Redo 重做。
Refresh 刷新当前文档。
RemoveFormat 从当前选中区中删除格式化标签。
RemoveParaFormat 目前尚未支持。
SaveAs 将当前 Web 页面保存为文件。
SelectAll 选中整个文档。
SizeToControl 目前尚未支持。
SizeToControlHeight 目前尚未支持。
SizeToControlWidth 目前尚未支持。
Stop 停止。
StopImage 目前尚未支持。
StrikeThrough 目前尚未支持。
Subscript 目前尚未支持。
Superscript 目前尚未支持。
UnBookmark 从当前选中区中删除全部书签。
Underline 切换当前选中区的下划线显示与否。
Undo 撤消。
Unlink 从当前选中区中删除全部超级链接。
Unselect 清除当前选中区的选中状态。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser, IE, IE6

	您可能会感兴趣的其他文章
	
	让IE8兼容IE7 
	浏览器中样式的高度自适应 
	打败 IE 的葵花宝典：CSS Bug Table 
	如何高效在多个浏览器之间同步使用的5个工具技巧 
	PNG透明兼容IE6的几种方法 
	JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera 
	IE9允许前端开发获取到页面性能数据 
	IE6 死后即将大快人心的10件事 
	IE6 很邪恶，但 IE6 的盒子模型更合理 
	Firefox跟IE在JavaScript中的七个不同表现 



Feed enhanced by Better Feed from [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a></strong>在背景图片缓存上有一个<strong>bug</strong>：它会每次都从服务器端读取背景图片。 例如我们使用a:hover更换背景图片，在<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>下会出现每次鼠标滑过则重新向服务器请求图片，如果服务器反应较慢，那么hover效果就会出现短暂的 空白，令人极度不爽。虽然可以通过<strong><a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a> sprites</strong>的方式解决问题的，但效果差强人意。</p>
<p>示例：<br />
<code>a{  background:url(normal.gif); } a:hover { background:url(hover.gif); }</code><br />
如果为超级链接定义上述的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>样式以实现鼠标悬浮时的动态效果，在<a title="firefox" href="http://www.js8.in/tag/firefox">firefox</a>下是没有什么问题的，第一次加载之后，浏览器都会从缓存读取背景图片.<br />
<span id="more-4116"></span></p>
<h3>解决方法</h3>
<p>具体的<strong>解决方法</strong>就是在页面中加入一段简单的<a title="javascript" href="http://www.js8.in/category/%e7%bd%91%e7%bb%9c%e6%8a%80%e6%9c%af/javascript-%e7%bd%91%e7%bb%9c%e6%8a%80%e6%9c%af">javascript</a>脚 本，告诉<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>：本地有背景图片的话就不要麻烦服务器了。 <code>document.execCommand("BackgroundImageCache",false,true);</code></p>
<p>关于这段脚本的放置方式有两种：</p>
<p>1.使用<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>，在<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a>中加入如下代码</p>
<blockquote>
<div>
<div>
<pre>html {}{ filter: expression(document.execCommand("BackgroundImageCache", false, true)); }</pre>
</div>
</div>
</blockquote>
<p>2.使用JS：</p>
<blockquote>
<pre lang="javascript">document.execCommand("BackgroundImageCache",false,true);</pre>
</blockquote>
<p>另外查了一下关于这个<strong>document.execCommand</strong> 的一些其他用法</p>
<blockquote><p>2D-Position 允许通过拖曳移动绝对定位的对象。<br />
AbsolutePosition 设定元素的 position 属性为“absolute”(绝对)。<br />
BackColor 设置或获取当前选中区的背景颜色。<br />
BlockDirLTR 目前尚未支持。<br />
BlockDirRTL 目前尚未支持。<br />
Bold 切换当前选中区的粗体显示与否。<br />
BrowseMode 目前尚未支持。<br />
Copy 将当前选中区复制到剪贴板。<br />
CreateBookmark 创建一个书签锚或获取当前选中区或插入点的书签锚的名称。<br />
CreateLink 在当前选中区上插入超级链接，或显示一个对话框允许用户指定要为当前选中区插入的超级链接的 URL。<br />
Cut 将当前选中区复制到剪贴板并删除之。<br />
Delete 删除当前选中区。<br />
DirLTR 目前尚未支持。<br />
DirRTL 目前尚未支持。<br />
EditMode 目前尚未支持。<br />
FontName 设置或获取当前选中区的字体。<br />
FontSize 设置或获取当前选中区的字体大小。<br />
ForeColor 设置或获取当前选中区的前景(文本)颜色。<br />
FormatBlock 设置当前块格式化标签。<br />
Indent 增加选中文本的缩进。<br />
InlineDirLTR 目前尚未支持。<br />
InlineDirRTL 目前尚未支持。<br />
InsertButton 用按钮控件覆盖当前选中区。<br />
InsertFieldset 用方框覆盖当前选中区。<br />
InsertHorizontalRule 用水平线覆盖当前选中区。<br />
InsertIFrame 用内嵌框架覆盖当前选中区。<br />
InsertImage 用图像覆盖当前选中区。<br />
InsertInputButton 用按钮控件覆盖当前选中区。<br />
InsertInputCheckbox 用复选框控件覆盖当前选中区。<br />
InsertInputFileUpload 用文件上载控件覆盖当前选中区。<br />
InsertInputHidden 插入隐藏控件覆盖当前选中区。<br />
InsertInputImage 用图像控件覆盖当前选中区。<br />
InsertInputPassword 用密码控件覆盖当前选中区。<br />
InsertInputRadio 用单选钮控件覆盖当前选中区。<br />
InsertInputReset 用重置控件覆盖当前选中区。<br />
InsertInputSubmit 用提交控件覆盖当前选中区。<br />
InsertInputText 用文本控件覆盖当前选中区。<br />
InsertMarquee 用空字幕覆盖当前选中区。<br />
InsertOrderedList 切换当前选中区是编号列表还是常规格式化块。<br />
InsertParagraph 用换行覆盖当前选中区。<br />
InsertSelectDropdown 用下拉框控件覆盖当前选中区。<br />
InsertSelectListbox 用列表框控件覆盖当前选中区。<br />
InsertTextArea 用多行文本输入控件覆盖当前选中区。<br />
InsertUnorderedList 切换当前选中区是项目符号列表还是常规格式化块。<br />
Italic 切换当前选中区斜体显示与否。<br />
JustifyCenter 将当前选中区在所在格式化块置中。<br />
JustifyFull 目前尚未支持。<br />
JustifyLeft 将当前选中区所在格式化块左对齐。<br />
JustifyNone 目前尚未支持。<br />
JustifyRight 将当前选中区所在格式化块右对齐。<br />
LiveResize 迫使 MSHTML 编辑器在缩放或移动过程中持续更新元素外观，而不是只在移动或缩放完成后更新。<br />
MultipleSelection 允许当用户按住 Shift 或 Ctrl 键时一次选中多于一个站点可选元素。<br />
Open 打开。<br />
Outdent 减少选中区所在格式化块的缩进。<br />
OverWrite 切换文本状态的插入和覆盖。<br />
Paste 用剪贴板内容覆盖当前选中区。<br />
PlayImage 目前尚未支持。<br />
Print 打开打印对话框以便用户可以打印当前页。<br />
Redo 重做。<br />
Refresh 刷新当前文档。<br />
RemoveFormat 从当前选中区中删除格式化标签。<br />
RemoveParaFormat 目前尚未支持。<br />
SaveAs 将当前 Web 页面保存为文件。<br />
SelectAll 选中整个文档。<br />
SizeToControl 目前尚未支持。<br />
SizeToControlHeight 目前尚未支持。<br />
SizeToControlWidth 目前尚未支持。<br />
Stop 停止。<br />
StopImage 目前尚未支持。<br />
StrikeThrough 目前尚未支持。<br />
Subscript 目前尚未支持。<br />
Superscript 目前尚未支持。<br />
UnBookmark 从当前选中区中删除全部书签。<br />
Underline 切换当前选中区的下划线显示与否。<br />
Undo 撤消。<br />
Unlink 从当前选中区中删除全部超级链接。<br />
Unselect 清除当前选中区的选中状态。</p></blockquote>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/21/4116/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/21/4116/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/21/4116/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/21/4116/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/21/4116/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/ie/" title="IE" rel="tag nofollow">IE</a>, <a href="http://www.iwanna.cn/tags/ie6/" title="IE6" rel="tag nofollow">IE6</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4780/" title="打败 IE 的葵花宝典：CSS Bug Table (2010年07月29日)">打败 IE 的葵花宝典：CSS Bug Table</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/23/4676/" title="如何高效在多个浏览器之间同步使用的5个工具技巧 (2010年07月23日)">如何高效在多个浏览器之间同步使用的5个工具技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/10/3872/" title="PNG透明兼容IE6的几种方法 (2010年06月10日)">PNG透明兼容IE6的几种方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1706/" title="JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera (2009年06月4日)">JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/01/4295/" title="IE9允许前端开发获取到页面性能数据 (2010年07月1日)">IE9允许前端开发获取到页面性能数据</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/17/467/" title="IE6 死后即将大快人心的10件事 (2009年04月17日)">IE6 死后即将大快人心的10件事</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/12/3923/" title="IE6 很邪恶，但 IE6 的盒子模型更合理 (2010年06月12日)">IE6 很邪恶，但 IE6 的盒子模型更合理</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1703/" title="Firefox跟IE在JavaScript中的七个不同表现 (2009年06月4日)">Firefox跟IE在JavaScript中的七个不同表现</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/21/4116/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 很邪恶，但 IE6 的盒子模型更合理</title>
		<link>http://www.iwanna.cn/archives/2010/06/12/3923/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/12/3923/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 12:28:39 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3923</guid>
		<description><![CDATA[盒子模型（Box Model）是 CSS 的核心，现代 Web  布局设计简单说就是一堆盒子的排列与嵌套，掌握了盒子模型与它们的摆放控制，会发现再复杂的页面也不过如此，然而，任何美好的事物都有缺憾，盒子模型有两种不同的诠释，一种来自 IE6，一种来自 W3C 标准浏览器。
盒子模型
下图就是一个典型的盒子模型示意图

在内容区外面，依次围绕着 padding 区，border 区，margin 区，这一模型结构在所有主流浏览器都是一致的。通过盒子模型，我们可以为我们的内容设置边界，留白以及边距，盒子模型最典型的应用是这样：我们有一段内 容，可以为这段内容设置一个边框，为了让内容不至于紧挨着边框，可以设置 padding ，为了让这个盒子不至于和别的盒子靠得太紧，可以设置  margin。

到目前为止，一切都很完美，直到当我们想为这个盒子设置一个尺寸的时候。
IE6 和 W3C 标准浏览器对盒子模型的不同诠释
当我们试图为一个盒子设置尺寸的时候，问题出现了。IE6 和 W3C  标准浏览器对盒子模型有不同的解释，这个不同解释表现在盒子的尺寸上，下图是两种类型的浏览器对盒子尺寸的不同解释示意图：


可以看出，IE6 盒子模型中，盒子的尺寸包含了内容区，padding， border 和 margin 这四个部分，而 W3C  的盒子模型中，盒子的尺寸只包含内容区，padding，border 和 margin 被排除在盒子尺寸之外。
为什么 IE6 的盒子模型更合理
在现实世界中，我们描述一个物理盒子的时候，如果谈到尺寸，是不会只计算其盛放的物体的尺寸的，我们还会算上空隙与盒体本身。拿集装箱装箱为例，我 们有 100 只花瓶，每只花瓶用1个纸盒包装，为了防止花瓶破碎，我们在花瓶周围塞上泡沫，这相当于 padding，纸盒的外围纸板相当于  border，在装集装箱的时候，为了防止纸盒之间相互碰撞，纸盒之间塞上稻草，这相当于  margin，很显然，我们向货运公司报告我们货物尺寸的时候，是要将整个纸盒的尺寸，连同纸盒之间需要塞稻草的空隙都告诉他们的，倘若只报告花瓶的尺 寸，货运公司是没有办法装箱的。
再举一个例子，假若我们有一面墙，要在上面挂10幅油画，油画是用相框裱糊的，相框的边框相当于 border，油画和边框之间的距离相当于  padding，相框之间的间隔相当于 margin，这个例子和 Web 布局设计已经很接近了，对任何人来说，使用 IE6 [...]]]></description>
			<content:encoded><![CDATA[<p>盒子模型（Box Model）是 <a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a> 的核心，现代 Web  布局设计简单说就是一堆盒子的排列与嵌套，掌握了盒子模型与它们的摆放控制，会发现再复杂的页面也不过如此，然而，任何美好的事物都有缺憾，<strong><a title="IE6 很邪恶，但 IE6 的盒子模型更合理" href="http://www.iwanna.cn/archives/2010/06/12/3923/">盒子模型</a></strong>有两种不同的诠释，一种来自 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>，一种来自 W3C 标准浏览器。</p>
<h2>盒子模型</h2>
<p>下图就是一个典型的<strong><a title="IE6 很邪恶，但 IE6 的盒子模型更合理" href="http://www.iwanna.cn/archives/2010/06/12/3923/">盒子模型</a></strong>示意图</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/12/p1.gif" alt="IE6 很邪恶，但 IE6 的盒子模型更合理" /></p>
<p>在内容区外面，依次围绕着 padding 区，border 区，margin 区，这一模型结构在所有主流浏览器都是一致的。通过盒子模型，我们可以为我们的内容设置边界，留白以及边距，盒子模型最典型的应用是这样：我们有一段内 容，可以为这段内容设置一个边框，为了让内容不至于紧挨着边框，可以设置 padding ，为了让这个盒子不至于和别的盒子靠得太紧，可以设置  margin。<br />
<span id="more-3923"></span><br />
到目前为止，一切都很完美，直到当我们想为这个盒子设置一个尺寸的时候。</p>
<h2><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 和 W3C 标准浏览器对盒子模型的不同诠释</h2>
<p>当我们试图为一个盒子设置尺寸的时候，问题出现了。<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 和 W3C  标准浏览器对盒子模型有不同的解释，这个不同解释表现在盒子的尺寸上，下图是两种类型的浏览器对盒子尺寸的不同解释示意图：</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/12/p2.gif" alt="IE6 很邪恶，但 IE6 的盒子模型更合理" /></p>
<p><img src="http://images.uheed.com/iwanna/2010/06/12/p3.gif" alt="IE6 很邪恶，但 IE6 的盒子模型更合理" /></p>
<p>可以看出，<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 盒子模型中，盒子的尺寸包含了内容区，padding， border 和 margin 这四个部分，而 W3C  的盒子模型中，盒子的尺寸只包含内容区，padding，border 和 margin 被排除在盒子尺寸之外。</p>
<h2>为什么 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 的盒子模型更合理</h2>
<p>在现实世界中，我们描述一个物理盒子的时候，如果谈到尺寸，是不会只计算其盛放的物体的尺寸的，我们还会算上空隙与盒体本身。拿集装箱装箱为例，我 们有 100 只花瓶，每只花瓶用1个纸盒包装，为了防止花瓶破碎，我们在花瓶周围塞上泡沫，这相当于 padding，纸盒的外围纸板相当于  border，在装集装箱的时候，为了防止纸盒之间相互碰撞，纸盒之间塞上稻草，这相当于  margin，很显然，我们向货运公司报告我们货物尺寸的时候，是要将整个纸盒的尺寸，连同纸盒之间需要塞稻草的空隙都告诉他们的，倘若只报告花瓶的尺 寸，货运公司是没有办法装箱的。</p>
<p>再举一个例子，假若我们有一面墙，要在上面挂10幅油画，油画是用相框裱糊的，相框的边框相当于 border，油画和边框之间的距离相当于  padding，相框之间的间隔相当于 margin，这个例子和 Web 布局设计已经很接近了，对任何人来说，使用 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>  的盒子模型，将整个相框，包括油画当做一个整体更容易布局，当你知道了整个相框的尺寸后，不必再去考虑 padding, border, margin  这个因素的影响，每个相框就是一个整体，至于 padding, border 与 margin，这是浏览器自己事，不需要设计者去关心。</p>
<h2>在具体的 Web 设计中</h2>
<p>在具体 Web 设计中，尤其牵扯到复杂网格布局的时候，<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 的盒子模型更容易控制，我们不妨看看以下几个设计场景。</p>
<p><strong>1.  面板式界面设计</strong></p>
<p>页面上包含几个面板，比如一个登录面板，一个最新新闻面板，一个投票面板，这类设计典型的做法是，用背景图的方式，首先逐个设计出这些面板的外观 图，将需要用具体内容替换的地方空着，这些面板，无非就是一些使用面板外观图片做背景图的盒子，然后，在这些盒子里面，放上具体的内容，使用  padding 控制内容的摆放位置，使用 margin  调整面板本身的摆放位置，由于面板的尺寸是固定的，我们依此确立了盒子的尺寸之后，就无需再关心尺寸问题，然后，不论你怎样调整 padding 和  margin，都不会影响面板本身的结构。这是 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 盒子模型。</p>
<p>而在 W3C 的盒子模型中，调整 padding 和 margin  ，都会影响盒子的尺寸，你在调整内容摆放位置的同时，极有可能打乱面板本身的结构。</p>
<p><strong>2. 百分比级尺寸 + 像素级边界问题</strong></p>
<p>W3C  盒子模型在设计中最让人头疼的是，假如你有一个不确定宽度的容器，想在里面放置两个同样大小的盒子，最合理的的做法当时是设置每个盒子的宽度为  50%，这样，不管你的容器宽度为多大，这两个盒子总能自动适应这个宽度，然而，前提是你不要设置任何 padding 或  border，而，现实中，为了防止两个盒子中的内容互相挨得太近，你肯定要设置 padding，一旦设置了  padding，就会发现你的容器被撑破了。</p>
<p>当然你会说，每个盒子的宽度不要设为 50%，可以设为 45%，然后为每个盒子再加一个 5% 的  padding，这是一个解决办法，但我们在设计中经常有这样的习惯，虽然一段内容的宽度可能不确定，但我们总喜欢它拥有固定  padding，我们并不希望 padding 自动适应，况且，在很多时候，我们希望为一个自适应宽度的盒子，设置一个 1 像素的  border，在这种情形，W3C 盒子模型将陷入困境。</p>
<p>而遇到这种情形，<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 盒子模型不需要任何周折，你只管将每个盒子的宽度设置为 50%，它们会自动适应容器的宽度，然后，不管你你怎样设置  padding 和 border，都不会撑破你的容器。</p>
<h2>W3C 在盒子模型上迷途知返</h2>
<p>虽然 W3C 永远都不会承认，但他们显然意识到了这个问题，重新定义盒子模型是不可能了，所以，在 CSS3 中，我们看到了下面这个属性：</p>
<p>box-sizing</p>
<p>box-sizing 有两个可选值，一个是默认的 content-box 一个是 border-box，选用后者，盒子模型将按 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>  的方式进行处理。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/12/3923/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/12/3923/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/12/3923/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/12/3923/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/12/3923/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/ie6/" title="IE6" rel="tag nofollow">IE6</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/10/3872/" title="PNG透明兼容IE6的几种方法 (2010年06月10日)">PNG透明兼容IE6的几种方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/17/467/" title="IE6 死后即将大快人心的10件事 (2009年04月17日)">IE6 死后即将大快人心的10件事</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3813/" title="10条兼容 IE6 的修复 (2010年06月8日)">10条兼容 IE6 的修复</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/12/3923/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrome中的世界杯：快来安装官方 Chrome 扩展和主题吧</title>
		<link>http://www.iwanna.cn/archives/2010/06/11/3897/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/11/3897/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:45:09 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3897</guid>
		<description><![CDATA[世界杯还有几个小时就开幕了，我想现在全世界球迷的心里已经都开始严重长草了吧，今天各大公司的工作效率有望创下近4年来最低纪录。为 了让大家能在工 作之余关注世界杯，FIFA.com  官方推出了世界杯的 Chrome 扩展，请猛击这里安装。

前文给大家奉献上的是Firefox中的世界杯：Firefox世界杯主题和插件，这里写上的是Chrome中的世界杯，大家拍板。

安装完成后，首先会让你选择支持的队伍，如果你没有什么倾向性的话可以选择 All Teams   所有队伍（别找了，没中国队）。之后点击扩展图标就可以在弹出窗口中查看你所关注球队的最新消息以及比赛预告了，更棒的是这个扩展还有 Live   现场直播功能，不过现在第一场比赛还没有开始，我们也还不知道这个 Live 是什么样子。

Google 当然也没有闲着，他们为32支参赛球队分别 设计了 Chrome 主题。换上你所热爱的球队的主题，用扩展关注他们的最新消息，宅男也可以享受世界杯

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser

	您可能会感兴趣的其他文章
	
	跨浏览器兼容性检查完全指南 
	让IE8兼容IE7 
	解决IE6背景图片不缓存的BUG 
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	网页浏览器的发展简史 
	火狐浏览器：浏览数据新方式（附模拟图） 
	浏览器测试：家谱 
	浏览器中样式的高度自适应 
	未来的Firefox 
	最绚丽的网页浏览器——Conimige2 Lux 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>世界杯还有几个小时就开幕了，我想现在全世界球迷的心里已经都开始严重长草了吧，今天各大公司的工作效率有望创下近4年来最低纪录。<strong>为 了让大家能在工 作之余关注世界杯，FIFA.com  官方推出了世界杯的 </strong><strong><a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a></strong><strong> 扩展，请</strong><a href="https://chrome.google.com/extensions/detail/naenffbbmemiekgcjgelmggkaohdeaab?hl=en" target="_blank"><strong>猛击这里</strong></a><strong>安装。</strong></p>
<p><img title="worldcup_chrome_extension" src="http://images.uheed.com/iwanna/2010/06/11/1406500271886523.jpg" border="0" alt="worldcup_chrome_extension" width="400" height="464" /></p>
<p>前文给大家奉献上的是<strong><a href="http://www.iwanna.cn/archives/2010/06/11/3896/" title="Firefox中的世界杯：Firefox世界杯主题和插件">Firefox中的世界杯：Firefox世界杯主题和插件</a></strong>，这里写上的是<strong><a href="http://www.iwanna.cn/archives/2010/06/11/3897/" title="Chrome中的世界杯：快来安装官方 Chrome 扩展和主题吧">Chrome中的世界杯</a></strong>，大家拍板。<br />
<img title="world_cup_chrome_extension_setup" src="http://images.uheed.com/iwanna/2010/06/11/14065011136547872.jpg" border="0" alt="world_cup_chrome_extension_setup" width="495" height="261" /></p>
<p>安装完成后，首先会让你选择支持的队伍，如果你没有什么倾向性的话可以选择 All Teams   所有队伍（别找了，没中国队）。之后点击扩展图标就可以在弹出窗口中查看你所关注球队的最新消息以及比赛预告了，更棒的是这个扩展还有 Live   现场直播功能，不过现在第一场比赛还没有开始，我们也还不知道这个 Live 是什么样子。</p>
<p><img title="world_cup_chroem_themes" src="http://images.uheed.com/iwanna/2010/06/11/1406502575494316.jpg" border="0" alt="world_cup_chroem_themes" width="552" height="200" /></p>
<p>Google 当然也没有闲着，他们<a href="https://chrome.google.com/extensions/featured/worldcup" target="_blank">为32支参赛球队分别 设计了 Chrome 主题</a>。换上你所热爱的球队的主题，用扩展关注他们的最新消息，宅男也可以享受世界杯</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/11/3897/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/11/3897/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/11/3897/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/11/3897/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/11/3897/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/27/4750/" title="最绚丽的网页浏览器——Conimige2 Lux (2010年07月27日)">最绚丽的网页浏览器——Conimige2 Lux</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/11/3897/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox中的世界杯：Firefox世界杯主题和插件</title>
		<link>http://www.iwanna.cn/archives/2010/06/11/3896/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/11/3896/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:40:15 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3896</guid>
		<description><![CDATA[Firefox其实也早已经推出了名为Firefox  CUP世界杯专题，包括球队皮肤和插件。在页面中，您可以直接预览您所喜欢的球队的主题皮肤，安装一次，就会为您所喜欢的球队投一票；而Kicker  Online推出的firefox的Footie插件更是强大，包括赛程、最新赛果，一览无余，忠实的球迷？那就赶快一起来吧！
Firefox 2010世界杯专题页面：https://addons.mozilla.org/zh-CN/firefoxcup/
Footie插件下载页面：https://addons.mozilla.org/zh-CN/firefox/addons/policy/0/725/90599?src=external-firefoxcup
另外，使用chrome的朋友请往这边走：世 界杯！世界杯！快来安装官方 Chrome 扩展和主题吧

  

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser

	您可能会感兴趣的其他文章
	
	跨浏览器兼容性检查完全指南 
	让IE8兼容IE7 
	解决IE6背景图片不缓存的BUG 
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	网页浏览器的发展简史 
	火狐浏览器：浏览数据新方式（附模拟图） 
	浏览器测试：家谱 
	浏览器中样式的高度自适应 
	未来的Firefox 
	最绚丽的网页浏览器——Conimige2 Lux 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>其实也早已经推出了名为<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>  CUP世界杯专题，包括球队皮肤和插件。在页面中，您可以直接预览您所喜欢的球队的主题皮肤，安装一次，就会为您所喜欢的球队投一票；而Kicker  Online推出的<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">firefox</a>的Footie插件更是强大，包括赛程、最新赛果，一览无余，忠实的球迷？那就赶快一起来吧！<br />
<strong><a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a> 2010世界杯专题页面</strong>：<a href="https://addons.mozilla.org/zh-CN/firefoxcup/">https://addons.mozilla.org/zh-CN/firefoxcup/</a><br />
<strong>Footie插件下载页面</strong>：<a href="https://addons.mozilla.org/zh-CN/firefox/addons/policy/0/725/90599?src=external-firefoxcup">https://addons.mozilla.org/zh-CN/firefox/addons/policy/0/725/90599?src=external-firefoxcup</a></p>
<p>另外，使用<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">chrome</a>的朋友请往这边走：<a href="http://www.iwanna.cn/archives/2010/06/11/3897/">世 界杯！世界杯！快来安装官方 Chrome 扩展和主题吧</a><br />
<span id="more-3896"></span><br />
<a href="http://gubo.org/wp-content/uploads/2010/06/firefox-CUP.png"><img title="firefox CUP" src="http://images.uheed.com/iwanna/2010/06/11/1821350675060675.png" alt="Firefox 推出的名为Firefox CUP的世界杯专题页面" width="300" height="204" /></a> <a href="http://gubo.org/wp-content/uploads/2010/06/firefox-CUP-footie.png"><img title="firefox CUP footie" src="http://img.cnbeta.com/newsimg/100611/18213711176330755.png" alt="firefox世界杯足球扩展插件footie的赛程截图" width="300" height="160" /></a> <a href="http://gubo.org/wp-content/uploads/2010/06/firefox-CUP-footie-status-bar.png"><img title="firefox CUP footie status bar" src="http://img.cnbeta.com/newsimg/100611/1821382380994716.png" alt="安装footie之后状态栏上出现的比赛场次图标" width="300" height="87" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/11/3896/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/11/3896/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/11/3896/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/11/3896/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/11/3896/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/27/4750/" title="最绚丽的网页浏览器——Conimige2 Lux (2010年07月27日)">最绚丽的网页浏览器——Conimige2 Lux</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/11/3896/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PNG透明兼容IE6的几种方法</title>
		<link>http://www.iwanna.cn/archives/2010/06/10/3872/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/10/3872/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 15:13:59 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3872</guid>
		<description><![CDATA[png透明针对IE6一直 是件挺麻烦的事情，使用的方法也是各有不同，大多的原理是用IE的滤镜来解决的。
语法：
filter : progid:DXImageTransform.Microsoft.AlphaImageLoader (  enabled=bEnabled , sizingMethod=sSize , src=sURL )
enabled : 可选项。布尔值(Boolean)。设置或检索滤镜是否激活。true &#124; false  true : 默认值。滤镜激活。
false : 滤镜被禁止。
sizingMethod : 可选项。字符串(String)。设置或检索滤镜作用的对象的图片在对象容器边界内的显示方式。 crop : 剪切图片以适应对象尺寸。
image : 默认值。增大或减小对象的尺寸边界以适应图片的尺寸。scale : 缩放图片以适应对象的尺寸边界。
src : 必选项。字符串(String)。使用绝对或相对 url  地址指定背景图像。假如忽略此参数，滤镜将不会作用。
现在一般在使用的方法有一下几种：

1、css方法
css：
.pngs {
height: 90px;width: 90px;
background-image:url(icon_home.png)!important;  /* FF IE7 */
background-repeat: no-repeat; _filter:  progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’icon_home.png’);   /* IE6 */
_ background-image: none; /* IE6 [...]]]></description>
			<content:encoded><![CDATA[<p>png透明针对<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>一直 是件挺麻烦的事情，使用的方法也是各有不同，大多的原理是用IE的滤镜来解决的。</p>
<blockquote><p>语法：<br />
filter : progid:DXImageTransform.Microsoft.AlphaImageLoader (  enabled=bEnabled , sizingMethod=sSize , src=sURL )</p>
<p><strong>enabled :</strong> 可选项。布尔值(Boolean)。设置或检索滤镜是否激活。true | false  true : 默认值。滤镜激活。<br />
false : 滤镜被禁止。<br />
<strong>sizingMethod :</strong> 可选项。字符串(String)。设置或检索滤镜作用的对象的图片在对象容器边界内的显示方式。 crop : 剪切图片以适应对象尺寸。<br />
image : 默认值。增大或减小对象的尺寸边界以适应图片的尺寸。scale : 缩放图片以适应对象的尺寸边界。<br />
<strong>src :</strong> 必选项。字符串(String)。使用绝对或相对 url  地址指定背景图像。假如忽略此参数，滤镜将不会作用。</p></blockquote>
<p>现在一般在使用的方法有一下几种：<br />
<span id="more-3872"></span><br />
1、<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>方法</p>
<blockquote><p><a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>：</p>
<p>.pngs {<br />
height: 90px;width: 90px;<br />
background-image:url(icon_home.png)!important;  /* FF IE7 */<br />
background-repeat: no-repeat; _filter:  progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’icon_home.png’);   /* <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> */<br />
_ background-image: none; /* <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> */<br />
}</p>
<p>xhtml：</p>
<p>&lt;div class=”pngs”&gt;&lt;/div&gt;</p></blockquote>
<p>这种方法的优点就是使用简单方便，但是不能作为背景，且只能用作单个png图片的使用。如果要作为背景，需要新增加一个div层，并设置其 position:relative;</p>
<blockquote><p><a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a><br />
.png div{position:relative;}</p>
<p>xhml:</p>
<div>&lt;div class=’png’&gt;<br />
&lt;div&gt;<br />
<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">CSS</a> 背景PNG透明 及 链接失效问题解决<br />
&lt;/div&gt;<br />
&lt;/div&gt;</div>
</blockquote>
<p>这种方法可以使用在那些png图片不多，且不需要repeat的情况下。</p>
<p>2、js方法</p>
<blockquote><p>&lt;script language=”JavaScript”&gt;<br />
function correctPNG() // correctly handle PNG transparency in Win IE 5.5  &amp; 6.<br />
{<br />
var arVersion = navigator.appVersion.split(“MSIE”)<br />
var version = parseFloat(arVersion[1])<br />
if ((version &gt;= 5.5) &amp;&amp; (document.body.filters))<br />
{<br />
for(var j=0; j&lt;document.images.length; j++)<br />
{<br />
var img = document.images[j]<br />
var imgName = img.src.toUpperCase()<br />
if (imgName.substring(imgName.length-3, imgName.length) ==  “PNG”)<br />
{<br />
var imgID = (img.id) ? “id=’” + img.id + “‘ ” : “”<br />
var imgClass = (img.className) ? “class=’” + img.className +  “‘ ” : “”<br />
var imgTitle = (img.title) ? “title=’” + img.title + “‘ ” :  “title=’” + img.alt + “‘ ”<br />
var imgStyle = “display:inline-block;” + img.style.cssText<br />
if (img.align == “left”) imgStyle = “float:left;” +  imgStyle<br />
if (img.align == “right”) imgStyle = “float:right;” +  imgStyle<br />
if (img.parentElement.href) imgStyle = “cursor:hand;” +  imgStyle<br />
var strNewHTML = “&lt;span ” + imgID + imgClass + imgTitle<br />
+ ” style=\”&#8221; + “width:” + img.width + “px; height:” +  img.height + “px;” + imgStyle + “;”<br />
+  “filter:progid:DXImageTransform.Microsoft.AlphaImageLoader”<br />
+ “(src=\’” + img.src + “\’,  sizingMethod=’scale’);\”&gt;&lt;/span&gt;”<br />
img.outerHTML = strNewHTML<br />
j = j-1<br />
}<br />
}<br />
}<br />
}<br />
window.attachEvent(“onload”, correctPNG);<br />
&lt;/script&gt;</p></blockquote>
<p>这种js先判断是否IE，然后判断ie版本，版本在6.0下则判定函数，给png的图片添加滤镜。</p>
<p>使用起来的确方便，无论多少图片都可以解决，但是依然无法repeat。</p>
<p>3、htc方法</p>
<p>htc相当于完全通过插件的方法修复的<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>的bug，功能强大，支持repeat，背景等功能，使用起来也很方便。</p>
<p>使用一个iepngfix.htc 文件，和一个透明的gif文件。</p>
<p>使用方法：</p>
<blockquote><p>&lt;!–[if lte IE 6]&gt;<br />
&lt;style&gt;.png{behavior:url(“jscss/iepngfix.htc”);}&lt;/style&gt;   //在这里可以加入其他用到png图片的id或者class<br />
&lt;script type=”text/javascript”  src=”jscss/iepngfix_tilebg.js”&gt;&lt;/script&gt;<br />
&lt;![endif]–&gt;</p></blockquote>
<p>ps：如果需要repeat背景，往往需要设置这个div 宽度为100%。</p>
<p>使用见：<a href="http://qqgame.qq.com/act/a20091210prize4/index.htm" target="_blank">http://qqgame.qq.com/act/a20091210prize4/index.htm</a> ， 在其中有iepngfix.htc可下载。</p>
<p>总结这几种方法，第三种方法是最简单使用，且容易推广的方法，建议可以做个公共的地址，有产品需要，只需要应用这个公共地址就行了。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/10/3872/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/10/3872/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/10/3872/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/10/3872/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/10/3872/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/css/" title="CSS" rel="tag nofollow">CSS</a>, <a href="http://www.iwanna.cn/tags/css/" title="CSS" rel="tag nofollow">CSS</a>, <a href="http://www.iwanna.cn/tags/ie6/" title="IE6" rel="tag nofollow">IE6</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4780/" title="打败 IE 的葵花宝典：CSS Bug Table (2010年07月29日)">打败 IE 的葵花宝典：CSS Bug Table</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/28/4224/" title="小议使用“完整”的CSS的缺点 (2010年06月28日)">小议使用“完整”的CSS的缺点</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/29/4791/" title="各浏览器的默认CSS (2010年07月29日)">各浏览器的默认CSS</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/22/1113/" title="IE不支持的10个非常有用的CSS属性 (2009年05月22日)">IE不支持的10个非常有用的CSS属性</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/09/07/2228/" title="IE8面向Web开发人员的功能改进 (2009年09月7日)">IE8面向Web开发人员的功能改进</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/17/467/" title="IE6 死后即将大快人心的10件事 (2009年04月17日)">IE6 死后即将大快人心的10件事</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/12/3923/" title="IE6 很邪恶，但 IE6 的盒子模型更合理 (2010年06月12日)">IE6 很邪恶，但 IE6 的盒子模型更合理</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/07/986/" title="CSS在IE6中的bug修正技巧 (2009年05月7日)">CSS在IE6中的bug修正技巧</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/10/3872/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5个解决Firefox中“标签页过多”综合症的有效方法</title>
		<link>http://www.iwanna.cn/archives/2010/06/10/3844/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/10/3844/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 01:07:13 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3844</guid>
		<description><![CDATA[如果你像我一样，总是开着至少10个标签页，通常会更多。有一些必须打开的比如你的个人博客、Twitter、Facebook 和 Google。不过那时就至少有20之多，标签页超载了！
1. 利用书签栏
书签工具栏是临时储存信息的好地方，比如你正在研究工作或者下次旅行的旅馆时，当你需要中断调研，就可以为此创建一个文件夹并将所有的链接投放进去。当你回到工 作时，右击这个文件夹并选择 &#62; 打开所有标签页。

如图所示，我使用单字母缩略形式，所以文件夹不会占用太多空间。如果你需要更多空间，可以使用一 个叫做 Multirow Bookmarks Toolbar 的扩展。另一个扩展 Smart Bookmarks Bar 可以将单个链接缩减为格子网站的图标。

另一个储存链接的方法是使用扩展 Read It Later，相关评论请参照 Get The Awesome Read It Later Extension for Firefox 3。
2. 安装 Session Manager
除了将项目链接储存到文件夹，你还可以使用 Session Manager 扩展进行管理。它不仅能自动保存浏览会话，当你浏览器崩溃，你可以在保存的会话中单独打开，位 置是 &#62; 工具 &#62; Session Manager &#62; Load Session…

因为在打开之前你可以对链接进行反选，可以对想要打开的链接有着完全的控制。这种方法甚至可以 从大量会话造成的浏览器崩溃中恢复链接。

一定要当心不要不小心替换了已保存会话的链接。
那么你已经暂时储存了大多数打开的标签页，让我们接着看看管理打开的标签页的方法。有许多的扩展 可以帮助你处理超载的标签栏，你可以组织你的标签页、嚷它们变得更小，或者扩展可获得的空间。下面介绍一些经过测试的扩展。
3. 使用 TabGroups Manager 对标签页分组
这是一个设计巧妙的扩展，它能让你按照话题 对标签页进行分组。缺点是它占用稍微多点的空间，一行显示标签页分类，第二行显示打开的标签页。

你不能为图中的 Start 标签重命名，当所有它下面的标签页 都关掉之后，会自动消失。要移除其他分类目录，点击分类目录栏最右侧的‘－’图标即可。
通过 &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>如果你像我一样，总是开着至少10个标签页，通常会更多。有一些必须打开的比如你的个人博客、Twitter、Facebook 和 Google。不过那时就至少有20之多，<strong><a title="5个解决Firefox中“标签页过多”综合症的有效方法" href="http://www.iwanna.cn/archives/2010/06/10/3844/">标签页超载</a></strong>了！</p>
<p>1. 利用书签栏</p>
<p>书签工具栏是临时储存信息的好地方，比如你正在研究工作或者下次旅行的旅馆时，当你需要中断调研，就可以为此创建一个文件夹并将所有的链接投放进去。当你回到工 作时，右击这个文件夹并选择 &gt; 打开所有标签页。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000600_18646.jpg" border="0" alt="" /></p>
<p>如图所示，我使用单字母缩略形式，所以文件夹不会占用太多空间。如果你需要更多空间，可以使用一 个叫做 <a href="https://addons.mozilla.org/en-US/firefox/addon/6937/" target="_blank">Multirow Bookmarks Toolbar</a> 的扩展。另一个扩展 <a href="https://addons.mozilla.org/en-US/firefox/addon/4072/" target="_blank">Smart Bookmarks Bar</a> 可以将单个链接缩减为格子网站的图标。<br />
<span id="more-3844"></span><br />
另一个储存链接的方法是使用扩展 <a href="https://addons.mozilla.org/en-US/firefox/addon/7661/" target="_blank">Read It Later</a>，相关评论请参照 <a href="http://www.makeuseof.com/tag/get-the-awesome-read-it-later-extension-for-firefox-3/" target="_blank">Get The Awesome Read It Later Extension for Firefox 3</a>。</p>
<p>2. 安装 <a href="https://addons.mozilla.org/en-US/firefox/addon/2324/" target="_blank">Session Manager</a></p>
<p>除了将项目链接储存到文件夹，你还可以使用 <a href="https://addons.mozilla.org/en-US/firefox/addon/2324/" target="_blank">Session Manager</a> 扩展进行管理。它不仅能自动保存浏览会话，当你浏览器崩溃，你可以在保存的会话中单独打开，位 置是 &gt; <span style="font-family: 宋体;">工具</span> &gt; Session Manager &gt; Load Session…</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000617_43096.jpg" border="0" alt="" /></p>
<p>因为在打开之前你可以对链接进行反选，可以对想要打开的链接有着完全的控制。这种方法甚至可以 从大量会话造成的浏览器崩溃中恢复链接。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000632_10514.jpg" border="0" alt="" /></p>
<p>一定要当心不要不小心替换了已保存会话的链接。</p>
<p>那么你已经暂时储存了大多数打开的标签页，让我们接着看看管理打开的标签页的方法。有许多的扩展 可以帮助你处理超载的标签栏，你可以组织你的标签页、嚷它们变得更小，或者扩展可获得的空间。下面介绍一些经过测试的扩展。</p>
<p>3. 使用 <a href="https://addons.mozilla.org/en-US/firefox/addon/10254/" target="_blank">TabGroups Manager</a> 对标签页分组</p>
<p>这是一个设计巧妙的扩展，它能让你按照话题 对标签页进行分组。缺点是它占用稍微多点的空间，一行显示标签页分类，第二行显示打开的标签页。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000642_44558.jpg" border="0" alt="" /></p>
<p>你不能为图中的 Start 标签重命名，当所有它下面的标签页 都关掉之后，会自动消失。要移除其他分类目录，点击分类目录栏最右侧的‘－’图标即可。</p>
<p>通过 &gt; 工具 &gt; 扩展 &gt; TabGroups Manager 可以访问扩展的选项和个性化设置窗口。它有着大量的设置选项，例如 GroupBar 的布置、鼠标和键盘命令、会话备份设置以及更多。实际上，这篇文章应该专门写一篇文章来介绍其潜力。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000654_69304.jpg" border="0" alt="" /></p>
<p>4. 使用 <a href="https://addons.mozilla.org/en-US/firefox/addon/14439/" target="_blank">Tabberwocky</a> 锁定和保持某些标签页总是打开</p>
<p>如果有些标签页你需要一直打开着，你应该考 虑以下类似 <a href="https://addons.mozilla.org/en-US/firefox/addon/14439/" target="_blank">Tabberwocky</a> 的扩展，它可以锁定和保护你的标签页。它也可以支持多行标签栏、标签进度栏，以及高亮未读标签 页，几乎所有保证你控制标签页的有用功能应有尽有。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000604_97369.jpg" border="0" alt="" /></p>
<p>5. 使用 <a href="https://addons.mozilla.org/en-US/firefox/addon/3780/" target="_blank">FaviconizeTab</a> 节省标签栏 空间</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/10/20100610000612_40258.jpg" border="0" alt="" /></p>
<p>要想节省标签栏空间，你可以使用 <a href="https://addons.mozilla.org/en-US/firefox/addon/3780/" target="_blank">FaviconizeTab</a> 扩展，用网站的图标来替换上下文菜单。上图是完整的 MakeUseOf 标签页（右侧）和图标化的 MakeUseOf 标签页（左侧）的比较。</p>
<p>另外一些值得考虑的扩展有 <a href="https://addons.mozilla.org/en-US/firefox/addon/1122/" target="_blank">Tab Mix Plus</a>、<a href="https://addons.mozilla.org/en-US/firefox/addon/1368/" target="_blank">ColorfulTabs</a> 或者 <a href="https://addons.mozilla.org/en-US/firefox/addon/10828/" target="_blank">New Tab King</a>。后面一个可以参考之前的评论 <a href="http://www.makeuseof.com/tag/the-new-tab-king-firefox-for-windows/" target="_blank">The Must-see “New Tab King” Addon for Firefox</a>。</p>
<p>在某个特定时间你的浏览器打开多少标签页？你是否常常会使得 <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a> <span style="font-family: 宋体;">打开太多的标签页？你是如何管理的呢？</span></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/10/3844/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/10/3844/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/10/3844/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/10/3844/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/10/3844/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/firefox/" title="Firefox" rel="tag nofollow">Firefox</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1706/" title="JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera (2009年06月4日)">JavaScript操作Cookie，支持Firefox、IE、Netscape，暂不能支持opera</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/04/1703/" title="Firefox跟IE在JavaScript中的七个不同表现 (2009年06月4日)">Firefox跟IE在JavaScript中的七个不同表现</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/22/1857/" title="10款很有帮助的增强Firebug功能的Firefox扩展 (2009年06月22日)">10款很有帮助的增强Firebug功能的Firefox扩展</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/10/3844/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10条兼容 IE6 的修复</title>
		<link>http://www.iwanna.cn/archives/2010/06/08/3813/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/08/3813/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:06:13 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3813</guid>
		<description><![CDATA[我们知道IE会在一段时间内仍然流行，但是我们仍然可以支持浏览器并且避免hacks和条件css吗？这里有10条使用有效的html和css代码修复可以兼容IE6常见的问题。
1、使用一个声明
你必须经常在html网页头部放置一个声明，推荐使用严格的标准。例如
或者xhtml使用
最后你需要是IE6进入兼容模式，这已经足够兼容的了。
2、使用position: relative
设置一个标签position:  relative可以解决很多问题，特别是曾经有过看不见的经历或者奇怪布局的框架。明显的，你需要小心，绝对位置放置的子元素是否都参照找到新位置。

3、为浮动元素使用display:inline
浮动元素会有一个著名的IE6双边距 margin  bug。假如你设置了左边距5px但实际上得到了10px左边距。display:inline可以解决这个问题，尽管它不是必需的，但是css仍然有 效。
4、设置元素启动hasLayout
大部分IE6（IE7）的渲染问题都可以通过起来元素的 hasLayout属性来兼容。这是IE内置的设定，确定一个内容块相对其它内容块是有界限和位置的。当你需要设置一个行内元素例如一个连接变成块状元素 或者是透明效果，设置hasLayout也是必须的。
5、修复重复字符的bug
复杂的布局会触发一个bug：浮动对象的最后字符会出现在已经清除浮 动的元素后面。这里有几种解决的办法，部分是理想的，并且一些测试和出错是必须的。
a、确保浮动元素都使用：display:inline；
b、 最后一个浮动元素使用margin-right:-3px;
c、在浮动对象最后一个元素后使用一个条件注释。例如这里输入注释…&#60;! [endif]
d、在容器内的最后使用一个div空标签（它也必须设置90%宽度甚至更小）
6、使用a标签完成可点击和hover原理
IE6只支持a标签的css定义hover效果
你 可以使用它去控制javascript启动的widgets，使得他们仍然保持键盘操作。这里有个二择一的问题，但是a标签是所有解决方案中最可靠的。
7、使用!important，或是高级选择符替代IE特定代码
在外置的css文件里，放弃凭 借传统的hacks和条件判断，使用有效的css代码去针对IE6仍然是有可能的。例如：最小高度可以使用一下定义。
#element {
min-height:  20em;
height: auto !important; /* understood by all browsers */
height:  20em; /* IE6 incorrectly uses this value /*
}
IE6不支持“min-height”并 且错误的将20em重写为“auto”。不过，当内容大于设置的空间时，它会增加它的尺寸。
另外一个选择是使用高级选择符。例如
#element  {
min-height: 20em;
height: 20em;
}
/* ignored by IE6 */
#element[id]  {
height: auto;
}
8、避免百分比定义
百分比在IE下比较混乱。除非你非常小心每个父元素的尺寸，这样就大概可以 最后避免了。你仍然可以对其他浏览器使用!important来使用百分值。例如：
body {
margin: 2% 0  !important;
margin: 20px 0; [...]]]></description>
			<content:encoded><![CDATA[<p>我们知道IE会在一段时间内仍然流行，但是我们仍然可以支持浏览器并且避免hacks和条件<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>吗？这里有10条使用有效的html和<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>代码修复可以<strong><a href="http://www.iwanna.cn/archives/2010/06/08/3813/" title="10条兼容 IE6 的修复">兼容IE6常见的问题</a></strong>。</p>
<p><strong>1、使用一个声明</strong><br />
你必须经常在html网页头部放置一个声明，推荐使用严格的标准。例如</p>
<p>或者xhtml使用</p>
<p>最后你需要是<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>进入兼容模式，这已经足够兼容的了。</p>
<p><strong>2、使用position: relative</strong><br />
设置一个标签position:  relative可以解决很多问题，特别是曾经有过看不见的经历或者奇怪布局的框架。明显的，你需要小心，绝对位置放置的子元素是否都参照找到新位置。<br />
<span id="more-3813"></span><br />
<strong>3、为浮动元素使用display:inline</strong><br />
浮动元素会有一个著名的<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>双边距 margin  bug。假如你设置了左边距5px但实际上得到了10px左边距。display:inline可以解决这个问题，尽管它不是必需的，但是<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>仍然有 效。</p>
<p><strong>4、设置元素启动hasLayout</strong><br />
大部分<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>（IE7）的渲染问题都可以通过起来元素的 hasLayout属性来兼容。这是IE内置的设定，确定一个内容块相对其它内容块是有界限和位置的。当你需要设置一个行内元素例如一个连接变成块状元素 或者是透明效果，设置hasLayout也是必须的。</p>
<p><strong>5、修复重复字符的bug</strong><br />
复杂的布局会触发一个bug：浮动对象的最后字符会出现在已经清除浮 动的元素后面。这里有几种解决的办法，部分是理想的，并且一些测试和出错是必须的。<br />
a、确保浮动元素都使用：display:inline；<br />
b、 最后一个浮动元素使用margin-right:-3px;<br />
c、在浮动对象最后一个元素后使用一个条件注释。例如这里输入注释…&lt;! [endif]<br />
d、在容器内的最后使用一个div空标签（它也必须设置90%宽度甚至更小）</p>
<p><strong>6、使用a标签完成可点击和hover原理<br />
</strong><a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>只支持a标签的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>定义hover效果<br />
你 可以使用它去控制javascript启动的widgets，使得他们仍然保持键盘操作。这里有个二择一的问题，但是a标签是所有解决方案中最可靠的。</p>
<p><strong>7、使用!important，或是高级选择符替代IE特定代码</strong><br />
在外置的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>文件里，放弃凭 借传统的hacks和条件判断，使用有效的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>代码去针对<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>仍然是有可能的。例如：最小高度可以使用一下定义。<br />
#element {<br />
min-height:  20em;<br />
height: auto !important; /* understood by all browsers */<br />
height:  20em; /* <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> incorrectly uses this value /*<br />
}<br />
<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>不支持“min-height”并 且错误的将20em重写为“auto”。不过，当内容大于设置的空间时，它会增加它的尺寸。<br />
另外一个选择是使用高级选择符。例如<br />
#element  {<br />
min-height: 20em;<br />
height: 20em;<br />
}<br />
/* ignored by <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> */<br />
#element[id]  {<br />
height: auto;<br />
}</p>
<p><strong>8、避免百分比定义<br />
</strong>百分比在IE下比较混乱。除非你非常小心每个父元素的尺寸，这样就大概可以 最后避免了。你仍然可以对其他浏览器使用!important来使用百分值。例如：<br />
body {<br />
margin: 2% 0  !important;<br />
margin: 20px 0; /* <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> only */<br />
}</p>
<p><strong>9、早点和经常测试</strong><br />
在你的网站和应用程序完成之前，不要放弃<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>的测试。问题将会更加严重并 且需要很长时间去修复。如果你的网站可以运行于<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">firefox</a>和<a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>，它将差不多肯定可以在其它浏览器下运行。</p>
<p><strong>10、重构你的代码<br />
</strong>经常的，修复会比重新考虑布局问题更加花费时间。Html细微的修改和更加 简单的<a href="http://www.iwanna.cn/tags/css/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with CSS">css</a>经常是最有效的。这意味着你要放弃完美的合法的代码，但是将会更少的问题出现，并且你知道怎样处理将要出现的情况。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/08/3813/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/08/3813/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/08/3813/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/08/3813/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/08/3813/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/ie6/" title="IE6" rel="tag nofollow">IE6</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/10/3872/" title="PNG透明兼容IE6的几种方法 (2010年06月10日)">PNG透明兼容IE6的几种方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/17/467/" title="IE6 死后即将大快人心的10件事 (2009年04月17日)">IE6 死后即将大快人心的10件事</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/12/3923/" title="IE6 很邪恶，但 IE6 的盒子模型更合理 (2010年06月12日)">IE6 很邪恶，但 IE6 的盒子模型更合理</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/08/3813/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad运行Chrome效果图</title>
		<link>http://www.iwanna.cn/archives/2010/06/05/3685/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/05/3685/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 13:42:40 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[IT业内资讯]]></category>
		<category><![CDATA[海外]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3685</guid>
		<description><![CDATA[新闻来源:华军资讯
据科技博客Techcrunch报道，苹果公司出品的iPad平板电脑被称为是迄今为止最适合浏览互联网信息的设备（除了Flash格式）。尽管苹果应用 网站为Opera提供了通行许可，但Chrome的影响力远非Opera能比，所以Chrome能否获得身份认证还属未知，以下就是Chrome在 iPad中运行的效果图：

谷歌Chrome是眼下最热门的浏览器之一，遗憾的是，由于iPad对于Javascript引擎的限制，Chrome浏览器直接在 iPad中运行还比较困难。
但人们希望iPad能够支持谷歌云同步书签、手势控制以及部分ChromeOS的功能。尽管苹果应用网站为Opera提供了通行许可，但 Chrome的影响力远非Opera能比，所以Chrome能否获得身份认证还属未知，以下就是Chrome在iPad中运行的效果图：
 真实的标签浏览


标签浏览功能在移动便携设备中几乎没有真实体现出来，只有Opera提供较好的标签功能。
 书签功能

Chrome的快速拨号和书签功能可以在iPad平板屏幕上得到充分体现，新增的“添加到主拨号界面”和“添加到书签”功能可以让用户方便 的管理常用网页。
 iPad+ChromeOS

iPad采用的是基于iPhoneOS的操作系统，而ChromeOS是基于浏览器的，二者特点的共同之处在于比较轻便、实用。如果能在 iPad中打开Chrome浏览器，然后运行ChromeOS处理事物，那或许是件感觉奇妙的事情。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser, Chrome, iPad, IT业内资讯, 海外

	您可能会感兴趣的其他文章
	
	鲍尔默谈苹果iPad：不是谁都买得起 
	近半数媒体网站计划支持iPad和HTML5视频 
	跨浏览器兼容性检查完全指南 
	让IE8兼容IE7 
	解决IE6背景图片不缓存的BUG 
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	苹果iPad游戏评测 
	苹果iPad全解析 
	网页浏览器的发展简史 
	火狐浏览器：浏览数据新方式（附模拟图） 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>新闻来源:华军资讯<br />
据科技博客Techcrunch报道，苹果公司出品的<a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>平板电脑被称为是迄今为止最适合浏览互联网信息的设备（除了Flash格式）。尽管苹果应用 网站为Opera提供了通行许可，但<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>的影响力远非Opera能比，所以<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>能否获得身份认证还属未知，以下就是<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>在 <a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>中运行的效果图：</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/05/11583802065985029.jpg" alt="" /><br />
谷歌<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>是眼下最热门的浏览器之一，遗憾的是，由于<a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>对于Javascript引擎的限制，<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>浏览器直接在 <a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>中运行还比较困难。<br />
但人们希望<a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>能够支持谷歌云同步书签、手势控制以及部分ChromeOS的功能。尽管苹果应用网站为Opera提供了通行许可，但 <a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>的影响力远非Opera能比，所以<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>能否获得身份认证还属未知，以下就是<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>在<a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>中运行的效果图：<br />
<strong> 真实的标签浏览</strong><br />
<span id="more-3685"></span><br />
<img src="http://images.uheed.com/iwanna/2010/06/05/1158381929458171.jpg" alt="" /><br />
标签浏览功能在移动便携设备中几乎没有真实体现出来，只有Opera提供较好的标签功能。<br />
<strong> 书签功能</strong><br />
<img src="http://images.uheed.com/iwanna/2010/06/05/11583821519846149.jpg" alt="" /><br />
<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>的快速拨号和书签功能可以在<a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>平板屏幕上得到充分体现，新增的“添加到主拨号界面”和“添加到书签”功能可以让用户方便 的管理常用网页。<br />
<strong> <a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>+ChromeOS</strong><br />
<img src="http://images.uheed.com/iwanna/2010/06/05/11583832086358512.jpg" alt="" /><br />
<a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>采用的是基于iPhoneOS的操作系统，而ChromeOS是基于浏览器的，二者特点的共同之处在于比较轻便、实用。如果能在 <a href="http://www.iwanna.cn/tags/ipad/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with iPad">iPad</a>中打开<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>浏览器，然后运行ChromeOS处理事物，那或许是件感觉奇妙的事情。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/05/3685/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/05/3685/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/05/3685/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/05/3685/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/05/3685/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/tags/chrome/" title="Chrome" rel="tag nofollow">Chrome</a>, <a href="http://www.iwanna.cn/tags/ipad/" title="iPad" rel="tag nofollow">iPad</a>, <a href="http://www.iwanna.cn/topics/news/it-news/" title="IT业内资讯" rel="tag nofollow">IT业内资讯</a>, <a href="http://www.iwanna.cn/topics/surf/abroad-surf/" title="海外" rel="tag nofollow">海外</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/05/3687/" title="鲍尔默谈苹果iPad：不是谁都买得起 (2010年06月5日)">鲍尔默谈苹果iPad：不是谁都买得起</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/05/3692/" title="近半数媒体网站计划支持iPad和HTML5视频 (2010年06月5日)">近半数媒体网站计划支持iPad和HTML5视频</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/20/4634/" title="苹果iPad游戏评测 (2010年07月20日)">苹果iPad游戏评测</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/26/4743/" title="苹果iPad全解析 (2010年07月26日)">苹果iPad全解析</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/05/3685/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 4.0各大版本最新用户界面尝鲜版</title>
		<link>http://www.iwanna.cn/archives/2010/06/04/3676/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/04/3676/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 16:28:14 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3676</guid>
		<description><![CDATA[Firefox 4的一个开发重点就是提供为浏览器提供更多的二级用户界面，也就是所谓的in-content   UI，目前它已经在插件管理器（add-ons manager）中得到了应用。
此外，采用in-content UI的部分还包括恢复会话（Restore   Session）、配置（about:config）、网络错误页面和钓鱼/恶意警告及页面。今后这种二级用户界面还将整合到参数、库、首页标签、  tabcandy以及about:firefox中。
开发in-content   UI是为了让在不同类型的用户界面之间架起一条桥梁，在这种用户界面中，标签和页面都采用统一的风格，采用不同的颜色来区分不同类型的通知，可以一目了然地看到导航路径。
Horlander最后强调，这并不是最终定稿，也有待修改。
参数设置：
Windows：




Mac：



插件管理：
Windows：




Mac：




网络错误：
Windows：


Mac：


配置：
Windows：

Mac：

恢复会话：
Windows：

Mac：

TabCandy：
Windows：


Mac：



© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser

	您可能会感兴趣的其他文章
	
	跨浏览器兼容性检查完全指南 
	让IE8兼容IE7 
	解决IE6背景图片不缓存的BUG 
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	网页浏览器的发展简史 
	火狐浏览器：浏览数据新方式（附模拟图） 
	浏览器测试：家谱 
	浏览器中样式的高度自适应 
	未来的Firefox 
	最绚丽的网页浏览器——Conimige2 Lux 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p><strong><a title="Firefox 4.0各大版本最新用户界面尝鲜版" href="http://www.iwanna.cn/archives/2010/06/04/3676/">Firefox 4</a></strong>的一个开发重点就是提供为浏览器提供更多的二级用户界面，也就是所谓的in-content   UI，目前它已经在插件管理器（add-ons manager）中得到了应用。</p>
<p>此外，采用in-content UI的部分还包括恢复会话（Restore   Session）、配置（about:config）、网络错误页面和钓鱼/恶意警告及页面。今后这种二级用户界面还将整合到参数、库、首页标签、  tabcandy以及about:<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">firefox</a>中。</p>
<p>开发in-content   UI是为了让在不同类型的用户界面之间架起一条桥梁，在这种用户界面中，标签和页面都采用统一的风格，采用不同的颜色来区分不同类型的通知，可以一目了然地看到导航路径。</p>
<p>Horlander最后强调，这并不是最终定稿，也有待修改。</p>
<p><strong>参数设置</strong>：</p>
<p>Windows：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09372223.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09372223.jpg" alt="Firefox  4.0最新用户界面赏" /></a><br />
<span id="more-3676"></span><br />
<a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09372249.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09372249.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09372273.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09372273.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p>Mac：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09381090.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09381090.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09381108.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09381108.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09381126.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09381126.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><strong>插件管理</strong>：</p>
<p>Windows：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405160.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405160.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405187.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405187.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405215.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405215.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405243.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09405243.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p>Mac：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414537.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414537.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414554.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414554.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414574.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414574.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414593.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09414593.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><strong>网络错误</strong>：</p>
<p>Windows：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454152.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454152.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09473012.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09473012.jpg" alt="Firefox  4.0最新用户界面赏" width="550" height="379" /></a></p>
<p>Mac：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454176.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454176.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09474619.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09474619.jpg" alt="Firefox  4.0最新用户界面赏" width="550" height="330" /></a></p>
<p><strong>配置</strong>：</p>
<p>Windows：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454193.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454193.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p>Mac：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454213.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09454213.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><strong>恢复会话</strong>：</p>
<p>Windows：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492451.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492451.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p>Mac：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492477.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492477.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><strong>TabCandy</strong>：</p>
<p>Windows：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492496.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492496.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492521.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09492521.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p>Mac：</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09501351.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09501351.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09501366.jpg" target="_blank"><img src="http://images.uheed.com/iwanna/2010/06/04/firefox-4.0/S09501366.jpg" alt="Firefox  4.0最新用户界面赏" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/04/3676/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/04/3676/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/04/3676/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/04/3676/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/04/3676/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/27/4750/" title="最绚丽的网页浏览器——Conimige2 Lux (2010年07月27日)">最绚丽的网页浏览器——Conimige2 Lux</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/04/3676/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>搞笑漫画图解几大浏览器的区别</title>
		<link>http://www.iwanna.cn/archives/2010/06/04/3673/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/04/3673/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 16:15:18 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3673</guid>
		<description><![CDATA[Internet Explorer, Firefox, Google Chrome, Opera 和  Safari之间的到底有啥区别，下面这几幅搞笑漫画或许能说明什么…
Internet  Explorer：没什么用，偶尔还真能派上用场…

Firefox：坦白地说它面面俱到，但那些 傻了吧唧的插件快把它搞的没法用了


Safari：非常的高效，但那些使用Safari 的人总对其质量夸大其词

Chrome：就是一个“快”字

Opera：有些人非常喜欢，但大多数人认为 Opera很2…

PS:个人比较BS用IE做内核的第三方浏览器（虽然用）

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Browser, Browser

	您可能会感兴趣的其他文章
	
	跨浏览器兼容性检查完全指南 
	让IE8兼容IE7 
	解决IE6背景图片不缓存的BUG 
	解决IE6、IE7、Firefox兼容最简单的CSS Hack 
	网页浏览器的发展简史 
	火狐浏览器：浏览数据新方式（附模拟图） 
	浏览器测试：家谱 
	浏览器中样式的高度自适应 
	未来的Firefox 
	最绚丽的网页浏览器——Conimige2 Lux 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer, <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>, Google <a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>, Opera 和  Safari之间的到底有啥区别，下面这<strong><a title="搞笑漫画图解几大浏览器的区别" href="http://www.iwanna.cn/archives/2010/06/04/3673/">几幅搞笑漫画</a></strong>或许能说明什么…</p>
<p><strong>Internet  Explorer：没什么用，偶尔还真能派上用场…</strong><br />
<a href="http://images.uheed.com/iwanna/2010/06/04/ie.jpg"><img title="ie" src="http://images.uheed.com/iwanna/2010/06/04/ie.jpg" alt="" width="480" height="353" /></a></p>
<p><strong><a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>：坦白地说它面面俱到，但那些 傻了吧唧的插件快把它搞的没法用了</strong><br />
<span id="more-3673"></span><br />
<a href="http://images.uheed.com/iwanna/2010/06/04/firefox.jpg"><img title="firefox" src="http://images.uheed.com/iwanna/2010/06/04/firefox.jpg" alt="" width="480" height="356" /></a><br />
<strong>Safari：非常的高效，但那些使用Safari 的人总对其质量夸大其词</strong><br />
<a href="http://images.uheed.com/iwanna/2010/06/04/safari.jpg"><img title="safari" src="http://images.uheed.com/iwanna/2010/06/04/safari.jpg" alt="" width="480" height="362" /></a></p>
<p><strong><a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>：就是一个“快”字</strong><br />
<a href="http://images.uheed.com/iwanna/2010/06/04/chrome.jpg"><img title="chrome" src="http://images.uheed.com/iwanna/2010/06/04/chrome.jpg" alt="" width="480" height="353" /></a></p>
<p><strong>Opera：有些人非常喜欢，但大多数人认为 Opera很2…</strong></p>
<p><a href="http://images.uheed.com/iwanna/2010/06/04/opera.jpg"><img title="opera" src="http://images.uheed.com/iwanna/2010/06/04/opera.jpg" alt="" width="480" height="353" /></a></p>
<p>PS:个人比较BS用IE做内核的第三方浏览器（虽然用）</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/04/3673/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/04/3673/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/04/3673/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/04/3673/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/04/3673/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南 (2010年06月2日)">跨浏览器兼容性检查完全指南</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/27/4750/" title="最绚丽的网页浏览器——Conimige2 Lux (2010年07月27日)">最绚丽的网页浏览器——Conimige2 Lux</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/04/3673/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>跨浏览器兼容性检查完全指南</title>
		<link>http://www.iwanna.cn/archives/2010/06/02/3616/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/02/3616/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 02:39:49 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3616</guid>
		<description><![CDATA[我们生活在一个幸福又痛苦的时代，有太多的浏览器可以使用，对 Web  开发与设计者而言，你有义务保证你的设计兼容所有主流浏览器。然而跨浏览器测试是件相当复杂的事，涉及不同的浏览器，不同的版本，不同的平台。本文介绍了与跨浏览器兼容测试有关的大量资源。
在线测试资源
Browsershots
是一个备受欢迎的免费在线跨浏览器测试工具，包含各种平台的各种浏览器，会为你的网站截图，因为太受欢迎，所以要排队。

Netrenderer
针对不同版本的 IE 进行测试，甚至即将包含 IE9。


Browsrcamp
免费版支持 Mac 上的 Safari 3.1.2 测试，收费版本包括更多 Mac 浏览器。

Adobe   Browserlab
老牌的跨浏览器测试平台。

Litmusapp
特点是，可以得到一份完整的跨浏览器兼容测试报告，免费版只限于 IE7 和 Firefox 2。

Anybrowser   siteviewer
可以按不同屏幕尺寸在不同浏览器中预览你的网页，甚至可以在不同页之间浏览。

Fundisom
一个 Mac 平台的网站截图生成工具，支持 Safari，MacIE 和 Mozilla，目前好像宕机了。

Delorie lynxview
看看你的网页在纯文本浏览器 lynx 中的样子。

Browsera
更像一个整站测试工具，而不是单纯的网页截图工具，会爬遍你的站点，对整个站点进行测试。

插件和工具资源
IE   Tab
这是一个 Firefox 扩展，可以以新标签的形式，以 IE 引擎显示页面。

IETester
一个免费的多版本 IE 内核浏览器，支持 IE9/8/7/6/5.5，支持 Windows 7，Vista，XP。

IECapt
一个小巧的命令符工具，可以将指定网页在 IE 中的渲染结果输出到 BMP，JPG 和 PNG 图片。

Multi-Safari
多版本 Safari 测试。

Expression   Web [...]]]></description>
			<content:encoded><![CDATA[<p>我们生活在一个幸福又痛苦的时代，有太多的浏览器可以使用，对 Web  开发与设计者而言，你有义务保证你的设计兼容所有主流浏览器。然而跨浏览器测试是件相当复杂的事，涉及不同的浏览器，不同的版本，不同的平台。本文介绍了与<strong><a href="http://www.iwanna.cn/archives/2010/06/02/3616/" title="跨浏览器兼容性检查完全指南">跨浏览器兼容测试有关的大量资源</a></strong>。</p>
<h2>在线测试资源</h2>
<h4><a href="http://browsershots.org/">Browsershots</a></h4>
<p>是一个备受欢迎的免费在线跨浏览器测试工具，包含各种平台的各种浏览器，会为你的网站截图，因为太受欢迎，所以要排队。</p>
<p><img title="Complete Guide to Cross Browser Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/browsershots.jpg" border="0" alt="browsershots Complete Guide to Cross Browser Compatibility Check" width="600" height="417" /></p>
<h4><a href="http://ipinfo.info/netrenderer/">Netrenderer</a></h4>
<p>针对不同版本的 IE 进行测试，甚至即将包含 IE9。<br />
<span id="more-3616"></span><br />
<img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/netrenderer.jpg" border="0" alt="Netrenderer" width="600" height="391" /></p>
<h4><a href="http://www.browsrcamp.com/">Browsrcamp</a></h4>
<p>免费版支持 Mac 上的 Safari 3.1.2 测试，收费版本包括更多 Mac 浏览器。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/browsrcamp.jpg" border="0" alt="Browsrcamp" width="600" height="430" /></p>
<h4><a href="https://browserlab.adobe.com/en-us/index.html">Adobe   Browserlab</a></h4>
<p>老牌的跨浏览器测试平台。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/browserlab.jpg" border="0" alt="Adobe Browserlab" width="600" height="461" /></p>
<h4><a href="http://litmusapp.com/">Litmusapp</a></h4>
<p>特点是，可以得到一份完整的跨浏览器兼容测试报告，免费版只限于 IE7 和 <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a> 2。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/litmusapp.jpg" border="0" alt="Litmusapp" width="600" height="497" /></p>
<h4><a href="http://www.anybrowser.com/siteviewer.html">Anybrowser   siteviewer</a></h4>
<p>可以按不同屏幕尺寸在不同浏览器中预览你的网页，甚至可以在不同页之间浏览。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/anybrowser.jpg" border="0" alt="Anybrowser siteviewer" width="600" height="586" /></p>
<h4><a href="http://fundisom.com/g5/">Fundisom</a></h4>
<p>一个 Mac 平台的网站截图生成工具，支持 Safari，MacIE 和 Mozilla，目前好像宕机了。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/fundisom.jpg" border="0" alt="Fundisom" width="600" height="406" /></p>
<h4><a href="http://www.delorie.com/web/lynxview.html">Delorie lynxview</a></h4>
<p>看看你的网页在纯文本浏览器 lynx 中的样子。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/delorie.jpg" border="0" alt="Delorie lynxview" width="600" height="339" /></p>
<h4><a href="http://www.browsera.com/">Browsera</a></h4>
<p>更像一个整站测试工具，而不是单纯的网页截图工具，会爬遍你的站点，对整个站点进行测试。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/browsera.jpg" border="0" alt="Browsera" width="600" height="454" /></p>
<h2>插件和工具资源</h2>
<h4><a href="https://addons.mozilla.org/en-US/firefox/addon/1419/">IE   Tab</a></h4>
<p>这是一个 <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a> 扩展，可以以新标签的形式，以 IE 引擎显示页面。</p>
<p><img title="Complete Guide to Cross Browser Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/ietab.jpg" border="0" alt="IE Tab" width="600" height="376" /></p>
<h4><a href="http://www.my-debugbar.com/wiki/IETester/HomePage">IETester</a></h4>
<p>一个免费的多版本 IE 内核浏览器，支持 IE9/8/7/6/5.5，支持 Windows 7，Vista，XP。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/ietester.jpg" border="0" alt="IETester" width="600" height="419" /></p>
<h4><a href="http://iecapt.sourceforge.net/">IECapt</a></h4>
<p>一个小巧的命令符工具，可以将指定网页在 IE 中的渲染结果输出到 BMP，JPG 和 PNG 图片。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/iecapt.jpg" border="0" alt="IECapt" width="600" height="376" /></p>
<h4><a href="http://michelf.com/projects/multi-safari/">Multi-Safari</a></h4>
<p>多版本 Safari 测试。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/multisafari.jpg" border="0" alt="Multi-Safari" width="600" height="517" /></p>
<h4><a href="http://expression.microsoft.com/en-us/dd565874.aspx">Expression   Web SuperPreview</a></h4>
<p>不同版本的 IE 测试。</p>
<p><img title="Complete Guide to Cross   Browser Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/expressionsuperpreview.jpg" border="0" alt="Expression Web SuperPreview" width="600" height="472" /></p>
<h4><a href="http://www.marketcircle.com/iphoney/index.html">Iphoney</a></h4>
<p>如果你针对 iPhone 320&#215;480 的屏幕进行设计，这正是你需要的工具。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/iphoney.jpg" border="0" alt="Iphoney" width="600" height="500" /></p>
<h4><a href="http://multipleies.en.softonic.com/">MultipleIEs</a></h4>
<p>针对古董级浏览器 IE3/4/5/6 进行测试。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/multipleies.jpg" border="0" alt="MultipleIEs" width="600" height="444" /></p>
<h4><a href="http://tredosoft.com/multiple_ie">Multiple IE</a></h4>
<p>和 MultipleIEs 类似，也是针对古董级浏览器进行测试，不同的是，这工具可以让你在同一台机器上运行从 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a> 到 IE3  各个版本的浏览器。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/multipleie.jpg" border="0" alt="Multiple IE" width="600" height="427" /></p>
<h4><a href="http://www.fileheap.com/software-sortsite-professional-download-26787.html">SortSite   Professional</a></h4>
<p>一个非常全面的测试工具，可以测试你网站中每个页面，为所有发现的问题生成报告，拥有300个指标。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/sortsite.jpg" border="0" alt="SortSite Professional" width="600" height="440" /></p>
<h4><a href="http://www.lunascape.tv/">Lunascape</a></h4>
<p>世界上第一个，也是唯一的一个三引擎浏览器，可以模拟 IE，<a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>，<a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>，Safari。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/lunascape.jpg" border="0" alt="Lunascape" width="600" height="478" /></p>
<h2>付费服务资源</h2>
<h4><a href="http://www.browsercam.com/Default2.aspx">Browsercam</a></h4>
<p>这是一个付费服务，可以在不同平台下的不同浏览器中测试你的网站，既可以自动截图，又可以远程访问他们的计算机。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/browsercam.jpg" border="0" alt="Browsercam" width="600" height="460" /></p>
<h4><a href="http://crossbrowsertesting.com/">Crossbrowsertesting</a></h4>
<p>针对所有平台下的所有浏览器进行测试，付费服务，19.95 美金起价。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/crossbrowsertesting.jpg" border="0" alt="Cross browsertesting" width="600" height="431" /></p>
<h4><a href="http://www.netmechanic.com/products/browser-index.shtml">Browser   Photo</a></h4>
<p>有12种不同浏览器和计算机配置组合，生成每种组合下的站点屏幕截图，收费服务，一次15美元。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/browserphoto.jpg" border="0" alt="Browser Photo" width="600" height="659" /></p>
<h4><a href="http://www.url2image.com/">Url2image</a></h4>
<p>登录后，你可以针对不同平台，不同浏览器，生成你网站的截图，两个截图1美元。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/url2image.jpg" border="0" alt="Url2image" width="600" height="613" /></p>
<h4><a href="http://www.powermapper.com/products/sortsite/checks/browser-compatibility.htm">SortSite</a></h4>
<p>针对不同浏览器，测试你网站的各种功能，149美元。</p>
<p><img title="Complete Guide to Cross Browser Compatibility   Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/sortsite2.jpg" border="0" alt="SortSite" width="600" height="620" /></p>
<h4><a href="http://www.multibrowserviewer.com/">Multi Browser Viewer</a></h4>
<p>预装了17个独立的虚拟浏览器，除此之外，还可以针对 Mac，Windows，Linux  平台下的50款浏览器进行测试。单用户99.95美元。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/multibrowserviewer.jpg" border="0" alt="Multi Browser Viewer" width="600" height="447" /></p>
<h4><a href="http://www.cloudtesting.com/serviceCrossBrowser.php">Cloud   Testing</a></h4>
<p>对你的电子商务站点的外观与功能，针对 <a href="http://www.iwanna.cn/tags/ie6/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IE6">IE6</a>/7/8, <a href="http://www.iwanna.cn/tags/firefox/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Firefox">Firefox</a>, Safari, <a href="http://www.iwanna.cn/tags/chrome/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Chrome">Chrome</a>, Opera 进行测试。</p>
<p><img title="Complete Guide to Cross Browser   Compatibility Check" src="http://images.uheed.com/iwanna/2010/06/02/Cross-Browser/cloudtesting.jpg" border="0" alt="Cloud Testing" width="600" height="419" /></p>
<p>本文国际来源：hongkiat.com  <a href="http://www.hongkiat.com/blog/complete-guide-to-cross-browser-compatibility-check/">Complete  Guide to Cross-Browser Compatibility Check</a> （原文作者：<strong>Dainis</strong>）</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/02/3616/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/02/3616/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/02/3616/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/02/3616/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/02/3616/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/browser/" title="Browser" rel="tag nofollow">Browser</a>, <a href="http://www.iwanna.cn/topics/ui/browser-ui/" title="Browser" rel="tag nofollow">Browser</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/03/31/46/" title="让IE8兼容IE7 (2009年03月31日)">让IE8兼容IE7</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4116/" title="解决IE6背景图片不缓存的BUG (2010年06月21日)">解决IE6背景图片不缓存的BUG</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/15/405/" title="解决IE6、IE7、Firefox兼容最简单的CSS Hack (2009年04月15日)">解决IE6、IE7、Firefox兼容最简单的CSS Hack</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/10/11/2281/" title="网页浏览器的发展简史 (2009年10月11日)">网页浏览器的发展简史</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/788/" title="火狐浏览器：浏览数据新方式（附模拟图） (2009年04月22日)">火狐浏览器：浏览数据新方式（附模拟图）</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/02/3614/" title="浏览器测试：家谱 (2010年06月2日)">浏览器测试：家谱</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1826/" title="浏览器中样式的高度自适应 (2009年06月17日)">浏览器中样式的高度自适应</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/422/" title="未来的Firefox (2009年04月16日)">未来的Firefox</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/27/4750/" title="最绚丽的网页浏览器——Conimige2 Lux (2010年07月27日)">最绚丽的网页浏览器——Conimige2 Lux</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/04/3673/" title="搞笑漫画图解几大浏览器的区别 (2010年06月4日)">搞笑漫画图解几大浏览器的区别</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/02/3616/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
