<?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>Yellow&#039;s Blog &#187; bug</title>
	<atom:link href="http://www.ffsuper.com/blog/index.php/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ffsuper.com/blog</link>
	<description>It&#039;s my evolution lab...</description>
	<lastBuildDate>Thu, 17 Dec 2009 01:06:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>通过js解决IE缓存CSS背景图片的BUG解决办法</title>
		<link>http://www.ffsuper.com/blog/index.php/2009/07/02/js-backgroundimagecache/</link>
		<comments>http://www.ffsuper.com/blog/index.php/2009/07/02/js-backgroundimagecache/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 07:32:57 +0000</pubDate>
		<dc:creator>Yellow</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[backgroundImageCache]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[背景图片缓存]]></category>

		<guid isPermaLink="false">http://www.ffsuper.com/blog/?p=101</guid>
		<description><![CDATA[我们在设计网页的时候会经常用到背景图片。有时候页面已经打开了，这些图片实际上已经download到本地了，但IE还是会试图再次请求下载这些图片，导致页面要加载半天才能载入进来，这样无疑增加Http Requests，容易导致用户浏览的页面表示不够友好，消耗大量服务器的带宽，给服务器带来很大的压力。

下面这段JS代码就是用来解决这个IE的BUG的。 
/**&#160; &#160; 
* bug to fix: Flickering CSS Background Images in IE6&#160; &#160; 
* conditions: when IE’s cache settings are “Every visit to the page” (a common developer’s setting)&#160; &#160; 
**/&#160; &#160; 
if&#160;(/*@cc_on @_jscript_version === 5.6 &#124;&#124; @*/false) {
&#160; &#160; try&#160;{&#160;
&#160; &#160; &#160; &#160; document.execCommand(&#34;BackgroundImageCache&#34;, false, true); 
&#160; &#160; }&#160;catch(err) {}
}
]]></description>
		<wfw:commentRss>http://www.ffsuper.com/blog/index.php/2009/07/02/js-backgroundimagecache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>部分浏览器差异和Bug消除技巧</title>
		<link>http://www.ffsuper.com/blog/index.php/2009/06/12/%e9%83%a8%e5%88%86%e6%b5%8f%e8%a7%88%e5%99%a8%e5%b7%ae%e5%bc%82%e5%92%8cbug%e6%b6%88%e9%99%a4%e6%8a%80%e5%b7%a7/</link>
		<comments>http://www.ffsuper.com/blog/index.php/2009/06/12/%e9%83%a8%e5%88%86%e6%b5%8f%e8%a7%88%e5%99%a8%e5%b7%ae%e5%bc%82%e5%92%8cbug%e6%b6%88%e9%99%a4%e6%8a%80%e5%b7%a7/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 03:39:32 +0000</pubDate>
		<dc:creator>Yellow</dc:creator>
				<category><![CDATA[Xhtml+CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://www.ffsuper.com/blog/?p=66</guid>
		<description><![CDATA[来源：http://www.dangbao.net/article/data/cssbug.htm
平时开发的时候经常会遇到一些Bug，做个整理和收集
CSS的优先权：style优先级大于id,id的优先级大于class。
FF下水平居中：margin-left:auto;margin-right:auto。
网页编码为UTF-8,页面注释最好用英文。
一个容器内有两个以上浮动元素注释时，容易引起IE BUG(莫名出现结尾字符)。解决方法：删除注释。
浮动+margin在IE6下出现双倍边距，display:inline消除。
IE6不支持除A标签以外的伪类。
IE下容器边框有断裂的地方，容器加上宽度或者zoom:1即可。
IE6捉迷藏bug：预览页面的内容不会出现。全选后出现。给藏起来的容器使用宽度和高度，或者设置line-height即可。
line-height和height的高度相同时，不同的字体显示是居中效果也不同。
list-style-image无法准确定位，建议使用li的背景来实现。
用vertical-align:middle来对齐文本与文本输入框。
禁用文本框中文输入法的通用方法：ime-mode:disabled。
]]></description>
		<wfw:commentRss>http://www.ffsuper.com/blog/index.php/2009/06/12/%e9%83%a8%e5%88%86%e6%b5%8f%e8%a7%88%e5%99%a8%e5%b7%ae%e5%bc%82%e5%92%8cbug%e6%b6%88%e9%99%a4%e6%8a%80%e5%b7%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
