<?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>omiga &#187; hack</title>
	<atom:link href="http://omiga.org/blog/archives/tag/hack/feed" rel="self" type="application/rss+xml" />
	<link>http://omiga.org/blog</link>
	<description>简单就好</description>
	<lastBuildDate>Thu, 26 Apr 2012 04:18:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>IE6兼容first-letter</title>
		<link>http://omiga.org/blog/archives/75</link>
		<comments>http://omiga.org/blog/archives/75#comments</comments>
		<pubDate>Wed, 30 Jan 2008 17:35:36 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[first-letter]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=75</guid>
		<description><![CDATA[伪类:first-letter可用于选择对象文本中的第一个字符。IE7，FF，opera，safari对该伪类支持得很好，但是IE6不支持该对象。不支持并不代表不能用～···这个世界上有太多太多针对IE的hack方法～··· 使IE6支持:first-letter的方法如下： select:first-letter {...} 即在选择符与样式花括号之间留出一空格即可，当然你要愿意多留几个也是可以的，但是不留IE6就不行了～··· © omiga for omiga, 2008. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: css, first-letter, hack, IE]]></description>
			<content:encoded><![CDATA[<p>伪类:first-letter可用于选择对象文本中的第一个字符。IE7，FF，opera，safari对该伪类支持得很好，但是IE6不支持该对象。不支持并不代表不能用～···这个世界上有太多太多针对IE的hack方法～···</p>
<p>使IE6支持:first-letter的方法如下：</p>
<pre>select:first-letter {...}</pre>
<p>即在选择符与样式花括号之间留出一空格即可，当然你要愿意多留几个也是可以的，但是不留IE6就不行了～···</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2008. |
<a href="http://omiga.org/blog/archives/75">Permalink</a> |
<a href="http://omiga.org/blog/archives/75#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/75&title=IE6兼容first-letter">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/css" rel="tag">css</a>, <a href="http://omiga.org/blog/archives/tag/first-letter" rel="tag">first-letter</a>, <a href="http://omiga.org/blog/archives/tag/hack" rel="tag">hack</a>, <a href="http://omiga.org/blog/archives/tag/ie" rel="tag">IE</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/75/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6真TMD龌龊～</title>
		<link>http://omiga.org/blog/archives/67</link>
		<comments>http://omiga.org/blog/archives/67#comments</comments>
		<pubDate>Fri, 11 Jan 2008 20:37:25 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=67</guid>
		<description><![CDATA[虽然已经骂过IE6无数次了，但是今天还要骂，因为刚刚改一个IE6的BT问题，让我非常恼火。 我使用的浏览器主要是FF，所以一般我做页面测试也先在FF中进行，不仅仅是因为FF好用，同时也因为FireBug太强大了，调试JS省去不少精力。虽然如此，现今做调试时FF，IE7,IE6一个都不会落下，毕竟IE仍然占据着大部分浏览器市场，opera，safari也会做简单的调试，只要没有出现严重的问题，一般在这两种浏览器上花费的精力较少，同时由于对web标准的良好支持，FF调试通过的页面一般在opera和safari下都是没有什么问题的。 今天写的页面，在我机子上好好的，JS,CSS都执行的很好。拿给搞Ajax的同学和搞PHP的同学那，他们的IE6都出现了相同的问题，具体问题不重要。然后我辛苦的调试，在Ajax的机子上OK了，然后跑PHP同学那，把页面搞出来刷两下，靠，问题又没有了～···[aaa]，真叫人哭笑不得，而且问题的解决方法还是那么的BT，删除了一段HTML代码的空格就搞定了，当然这次不是重复字符的问题了，能说什么呢，只能说IE6，I服了YOU！很BT，很龌龊！ © omiga for omiga, 2008. &#124; Permalink &#124; 2 comments &#124; Add to del.icio.us Post tags: css, hack, IE]]></description>
			<content:encoded><![CDATA[<p>虽然已经骂过IE6无数次了，但是今天还要骂，因为刚刚改一个IE6的BT问题，让我非常恼火。</p>
<p>我使用的浏览器主要是FF，所以一般我做页面测试也先在FF中进行，不仅仅是因为FF好用，同时也因为FireBug太强大了，调试JS省去不少精力。虽然如此，现今做调试时FF，IE7,IE6一个都不会落下，毕竟IE仍然占据着大部分浏览器市场，opera，safari也会做简单的调试，只要没有出现严重的问题，一般在这两种浏览器上花费的精力较少，同时由于对web标准的良好支持，FF调试通过的页面一般在opera和safari下都是没有什么问题的。</p>
<p>今天写的页面，在我机子上好好的，JS,CSS都执行的很好。拿给搞Ajax的同学和搞PHP的同学那，他们的IE6都出现了相同的问题，具体问题不重要。然后我辛苦的调试，在Ajax的机子上OK了，然后跑PHP同学那，把页面搞出来刷两下，靠，问题又没有了～···[aaa]，真叫人哭笑不得，而且问题的解决方法还是那么的BT，删除了一段HTML代码的空格就搞定了，当然这次不是<a href="http://www.wondger.com/blog/article.asp?id=52" target="_blank">重复字符的问题</a>了，能说什么呢，只能说IE6，I服了YOU！<strong>很BT，很龌龊！</strong></p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2008. |
<a href="http://omiga.org/blog/archives/67">Permalink</a> |
<a href="http://omiga.org/blog/archives/67#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/67&title=IE6真TMD龌龊～">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/css" rel="tag">css</a>, <a href="http://omiga.org/blog/archives/tag/hack" rel="tag">hack</a>, <a href="http://omiga.org/blog/archives/tag/ie" rel="tag">IE</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/67/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE6下的重复字符bug</title>
		<link>http://omiga.org/blog/archives/48</link>
		<comments>http://omiga.org/blog/archives/48#comments</comments>
		<pubDate>Thu, 06 Dec 2007 19:01:48 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=48</guid>
		<description><![CDATA[换了skin，重做个登入页面，中午只在FF中测试了，顺便用IE Tab简单测试下，没问题。下午在线看了《龙之战争》后，用IE6试试！cao～！又是重复字符！关于IE6产生重复字符bug，一般情况下可能是由于多个浮动元素之间的注释造成的，那么不一般的情况可能是代码结构的问题，比如我上次的浮动。这次我是彻底对IE失望，对IE6绝望！很多问题产生的莫名其妙，我找，我查，我改！ 问题解决方法:删除代码中所有用于格式化的东东，包括换行，空格等。也就是说你的代码只是代码，密密麻麻的代码，其他什么都没有。这样问题就没了～···[aaa] © omiga for omiga, 2007. &#124; Permalink &#124; 2 comments &#124; Add to del.icio.us Post tags: hack, IE]]></description>
			<content:encoded><![CDATA[<p>换了skin，重做个<a href="http://www.wondger.com" target="_blank">登入页面</a>，中午只在FF中测试了，顺便用<a href="http://www.wondger.com/blog/article.asp?id=9" target="_blank">IE Tab</a>简单测试下，没问题。下午在线看了《龙之战争》后，用IE6试试！cao～！又是重复字符！关于IE6产生重复字符bug，一般情况下可能是由于多个浮动元素之间的注释造成的，那么不一般的情况可能是代码结构的问题，比如我上次的浮动。这次我是彻底对IE失望，对IE6绝望！很多问题产生的莫名其妙，我找，我查，我改！</p>
<p><strong><span style="color: #ff3366;">问题解决方法:</span></strong>删除代码中所有用于格式化的东东，包括换行，空格等。也就是说你的代码只是代码，密密麻麻的代码，其他什么都没有。这样问题就没了～···[aaa]</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2007. |
<a href="http://omiga.org/blog/archives/48">Permalink</a> |
<a href="http://omiga.org/blog/archives/48#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/48&title=IE6下的重复字符bug">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/hack" rel="tag">hack</a>, <a href="http://omiga.org/blog/archives/tag/ie" rel="tag">IE</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/48/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>关于浮动embed产生重复字符的问题</title>
		<link>http://omiga.org/blog/archives/41</link>
		<comments>http://omiga.org/blog/archives/41#comments</comments>
		<pubDate>Fri, 30 Nov 2007 14:47:45 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=41</guid>
		<description><![CDATA[这个问题发现很久了，还是在暑期改版的时候一个页面中的问题。由于当时我的IE6绿色版有些问题，并没有出现这个bug，后来在网吧的IE6上才发现这个问题。 产生该bug需满足两个条件： 浮动的仅是&#60;embed&#62;标签，外层并无&#60;object&#62; 相邻浮动容器中的字符不能包含在内联元素中 产生bug的主要代码： &#60;!-- body{font-size:12px;} #container{width:900px; margin:0 auto;} h1{text-align:center;} p{text-indent:2em; line-height:18px;} --&#62; &#60;h1&#62;关于使用浮动&#38;lt;embed&#38;gt;产生重复字符的问题&#60;/h1&#62; &#60;div id="container"&#62; &#60;object width="100" height="100" data="abt.swf" type="application/x-shockwave-flash"&#62; &#60;param name="src" value="abt.swf" /&#62;&#60;param name="wmode" value="opaque" /&#62; &#60;param name="quality" value="high" /&#62; &#60;/object&#62; &#60;div id="content" style="margin: 0pt 15px 15px; width: 645px; float:right;"&#62; 这个问题发现很久了，还是在暑期改版的时候一个页面中的问题。由于当时我的IE6绿色版有些问题，并没有出现这个bug，后来在网吧的IE6上才发现这个 问题。产生该bug需满足两个条件：浮动的仅是&#60;embed&#62;标签，外层并无&#60;object&#62;相邻浮动容器中的字符不能包含在内联元素中。 &#60;p style="color:#F00; font-size:14px; font-weight:bold;"&#62;大家注意看，本段文字的最后一个字符将在下一行重复显示&#60;/p&#62; &#60;/div&#62; &#60;/div&#62; 点击查看代码演示 如上所述，产生该bug的条件，其实也隐含了解决此bug的部分方法。故解决此bug至少有以下方法。 使用严格的嵌套方式插入flash，可以使用&#60;object&#62;嵌套，或是在外层嵌套其他标记，只要不让&#60;embed&#62;浮动即可； 相邻文本嵌套在内联元素中； [...]]]></description>
			<content:encoded><![CDATA[<p>这个问题发现很久了，还是在暑期改版的时候一个页面中的问题。由于当时我的IE6绿色版有些问题，并没有出现这个bug，后来在网吧的IE6上才发现这个问题。 产生该bug需满足两个条件：</p>
<ol>
<li>浮动的仅是&lt;embed&gt;标签，外层并无&lt;object&gt;</li>
<li>相邻浮动容器中的字符不能包含在内联元素中</li>
</ol>
<p>产生bug的主要代码：</p>
<pre>&lt;!--
body{font-size:12px;}
#container{width:900px; margin:0 auto;}
h1{text-align:center;}
p{text-indent:2em; line-height:18px;}
--&gt;
&lt;h1&gt;关于使用浮动&amp;lt;embed&amp;gt;产生重复字符的问题&lt;/h1&gt;
&lt;div id="container"&gt;
&lt;object width="100" height="100" data="abt.swf" type="application/x-shockwave-flash"&gt;
&lt;param name="src" value="abt.swf" /&gt;&lt;param name="wmode" value="opaque" /&gt;
&lt;param name="quality" value="high" /&gt;
&lt;/object&gt;
&lt;div id="content" style="margin: 0pt 15px 15px; width: 645px; float:right;"&gt;
这个问题发现很久了，还是在暑期改版的时候一个页面中的问题。由于当时我的IE6绿色版有些问题，并没有出现这个bug，后来在网吧的IE6上才发现这个
问题。产生该bug需满足两个条件：浮动的仅是&lt;embed&gt;标签，外层并无&lt;object&gt;相邻浮动容器中的字符不能包含在内联元素中。
&lt;p style="color:#F00; font-size:14px; font-weight:bold;"&gt;大家注意看，本段文字的最后一个字符将在下一行重复显示&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p><a href="../../lab/repeatchar/repeatchar1.html" target="_blank">点击查看代码演示</a> 如上所述，产生该bug的条件，其实也隐含了解决此bug的部分方法。故解决此bug至少有以下方法。</p>
<ul style="list-style-type: upper-alpha;">
<li>使用严格的嵌套方式插入flash，可以使用&lt;object&gt;嵌套，或是在外层嵌套其他标记，只要不让&lt;embed&gt;浮动即可；</li>
<li> 相邻文本嵌套在内联元素中；</li>
<li> 在文本字符后添加HTML注释，即&lt;!—-&gt;；</li>
</ul>
<p>以下代码为使用注释方式修复此bug：</p>
<pre>&lt;!--
body{font-size:12px;}
#container{width:900px; margin:0 auto;}
h1{text-align:center;}
p{text-indent:2em; line-height:18px;}
--&gt;
&lt;h1&gt;关于使用浮动&amp;lt;embed&amp;gt;产生重复字符的问题&lt;/h1&gt;
&lt;div id="container"&gt;
&lt;object width="100" height="100" data="abt.swf" type="application/x-shockwave-flash"&gt;&lt;param name="src" value="abt.swf" /&gt;&lt;param name="wmode" value="opaque"
/&gt;
&lt;param name="quality" value="high" /&gt;
&lt;/object&gt;
&lt;div id="content" style="margin: 0pt 15px 15px; width: 645px; float:right;"&gt;
这个问题发现很久了，还是在暑期改版的时候一个页面中的问题。由于当时我的IE6绿色版有些问题，并没有出现这个bug，后来在网吧的IE6上才发现这个
问题。产生该bug需满足两个条件：浮动的仅是&lt;embed&gt;标签，外层并
无&lt;object&gt;相邻浮动容器中的字符不能包含在内联元素中。
&lt;p style="color:#F00; font-size:14px;font-weight:bold;"&gt;大家注意看，本段文字的最后一个字符将在下一行重复显示&lt;/p&gt;
&lt;!--修复IE6浮动embed产生重复字符bug--&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p><a href="../../lab/repeatchar/repeatchar2.html" target="_blank">点击查看代码演示</a> 该bug本应该从一开就被避免，只是由于我使用了</p>
<pre>&lt;embed src="abt.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque" menu="false" style="width:225px;height:335px;float:left;"&gt;&lt;/embed&gt;</pre>
<p>在页面中插入flash，所以实际中这个问题出现的几率应该是非常的小，发文志之。</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2007. |
<a href="http://omiga.org/blog/archives/41">Permalink</a> |
<a href="http://omiga.org/blog/archives/41#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/41&title=关于浮动embed产生重复字符的问题">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/css" rel="tag">css</a>, <a href="http://omiga.org/blog/archives/tag/hack" rel="tag">hack</a>, <a href="http://omiga.org/blog/archives/tag/ie" rel="tag">IE</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/41/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

