<?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>三水清css hack</title>
	<atom:link href="http://js8.in/tag/css-hack/feed" rel="self" type="application/rss+xml" />
	<link>http://js8.in</link>
	<description>专注前端开发,分享Javascript/CSS/PHP等Web前端开发技巧</description>
	<lastBuildDate>Wed, 08 Feb 2012 11:59:56 +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>Opera Chrome Safari浏览器的CSS Hack方法</title>
		<link>http://js8.in/397.html</link>
		<comments>http://js8.in/397.html#comments</comments>
		<pubDate>Mon, 21 Dec 2009 08:17:41 +0000</pubDate>
		<dc:creator>三水清</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[css hack]]></category>

		<guid isPermaLink="false">http://www.js8.in/397.html</guid>
		<description><![CDATA[之前写过一篇文章《主流浏览器的CSS Hack方法整理》，其中提到了Opera Chrome Safari等浏览器的CSS hack的方法，可是对于有的版本的浏览器是不兼容的<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用CSS控制打印页面格式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F351.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://www.ytljz.cn/uploads/allimg/101112/1ZQ12218-0-lp.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用CSS控制打印页面格式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CSS清除浏览器默认样式注意点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F365.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10981512.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CSS清除浏览器默认样式注意点</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>之前写过一篇文章《<a href="http://js8.in/382.html" target="_blank">主流浏览器的CSS Hack方法整理</a>》，其中提到了<strong>Opera Chrome Safari</strong>等浏览器的CSS hack的方法，可是对于有的版本的浏览器是不兼容的，如下面的代码</p>
<blockquote><p>以下代码是支持Chrome、opera、safari的hack方法，不过我没有使用过，是从网上找到的：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media all and (min-width:0px){</span>
<span style="color: #6666ff;">.wyq</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>   <span style="color: #00AA00;">&#125;</span>                    <span style="color: #808080; font-style: italic;">/* Opera、Safari 、Chrome */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</blockquote>
<p>测试一下，不行~后来在老大的指导下找到了一个解决的方法，代码如下：</p>
<p>Opera Chrome Safari浏览器的<strong>CSS Hack方法：</strong></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #3333ff;">:nth-of-</span>type<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #6666ff;">.brower</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #808080; font-style: italic;">/*background: #00f; 这是专门针对Chrome和Safari的CSS hack */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.brower</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f00</span><span style="color: #00AA00;">;</span>                             <span style="color: #808080; font-style: italic;">/* ff */</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#00ff00</span>\<span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>                        <span style="color: #808080; font-style: italic;">/* IE8 */</span>
    <span style="color: #00AA00;">&#91;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ff00ff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>       <span style="color: #808080; font-style: italic;">/* Safari Chrome */</span>
    <span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ff6600</span><span style="color: #00AA00;">;</span>                         <span style="color: #808080; font-style: italic;">/* IE7 */</span>
    _background<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffff00</span><span style="color: #00AA00;">;</span>                         <span style="color: #808080; font-style: italic;">/* IE6 */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>注意：</p>
<p style="padding-left: 30px;">1、下面的一行是一整体，后边的会覆盖前边的</p>
<pre style="padding-left: 30px;" lang="css"> [background: #ff00ff; background: #ff00ff;</pre>
<p style="padding-left: 30px;">2、下面的这一行针对IE8，而且数字必须是0，以前用9，但是用9，IE7和IE6也识别</p>
<pre style="padding-left: 30px;" lang="css">background: #00ff00\0;</pre>
<p>特此记录一下~
<div class="copyright">
<strong>声明：</strong>文章未声明为原创文章，本文链接 <a href="http://js8.in/397.html" title="Opera Chrome Safari浏览器的CSS Hack方法">http://js8.in/397.html</a>. 转载请注明转自<a href="http://js8.in" title="前端开发博客"> JS8.IN ™</a></span></span></div>
<h3 class="box-title">随机文章</h3>
<ul class="box_random">
<li><a href="http://js8.in/11.html" title="晚上玩了一个晚上~" rel="bookmark inlinks">晚上玩了一个晚上~</a></li>
<li><a href="http://js8.in/841.html" title="chrome扩展应用开发教程之调试和打包上线" rel="bookmark inlinks">chrome扩展应用开发教程之调试和打包上线</a></li>
<li><a href="http://js8.in/688.html" title="使用windows7的virtual PC打造原装IE6、IE7、IE8测试环境" rel="bookmark inlinks">使用windows7的virtual PC打造原装IE6、IE7、IE8测试环境</a></li>
<li><a href="http://js8.in/46.html" title="如何写网站的robots.txt和meta name robots的配置" rel="bookmark inlinks">如何写网站的robots.txt和meta name robots的配置</a></li>
<li><a href="http://js8.in/557.html" title="解决IE6背景图片不缓存的BUG" rel="bookmark inlinks">解决IE6背景图片不缓存的BUG</a></li>
<li><a href="http://js8.in/510.html" title="提供一个免费支持Jabber, AIM, MSN, Yahoo, Gtalk,Twitter 机器人" rel="bookmark inlinks">提供一个免费支持Jabber, AIM, MSN, Yahoo, Gtalk,Twitter 机器人</a></li>
<li><a href="http://js8.in/4.html" title="哎~都挺穷的！" rel="bookmark inlinks">哎~都挺穷的！</a></li>
<li><a href="http://js8.in/52.html" title="万众期待的Ajax评论发布啦-dedecms扩展工具" rel="bookmark inlinks">万众期待的Ajax评论发布啦-dedecms扩展工具</a></li>
</ul>
<hr />
<p><small>© 三水清 for <a href="http://js8.in">三水清</a>, 2009. |
<a href="http://js8.in/397.html#comments">4 comments</a> |在微博关注我：<a href="//weibo.com/sanshuiqing" target="_blank" title="关注断桥残雪的新浪微博">@清-三水清</a>
<br/>收藏到：
<a rel="nofollow" href="http://share.renren.com/share/buttonshare.do?link=%posturl%&title=%posttitle%" title="收藏本文到人人网" target="_blank">人人网</a> | <a rel="nofollow" href="http://www.douban.com/recommend/?url=%posturl%&title=%posttitle%" title="收藏本文到豆瓣" target="_blank">豆瓣</a> | <a rel="nofollow" href="http://www.kaixin001.com/repaste/share.php?rtitle=%posttitle%&rurl=%posturl%" title="收藏本文到开心网" target="_blank">开心网</a> | <a rel="nofollow" href="http://shuqian.qq.com/post?title=%posttitle%&%20uri=%posturl%" title="收藏本文到QQ书签" target="_blank">QQ书签</a> | <a rel="nofollow" href="http://v.t.sina.com.cn/share/share.php?url=%posturl%&title=%posttitle%" title="收藏本文到新浪微博" target="_blank">新浪微博</a> | <a rel="nofollow" href="http://v.t.qq.com/share/share.php?title=%posttitle%&url=%posturl%&site=http://www.kaixin100.info" title="收藏本文到腾讯微博" target="_blank">腾讯微博</a>
<br/>
Post tags: <a href="http://js8.in/tag/css-hack" rel="tag">css hack</a><br/>
</small></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用CSS控制打印页面格式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F351.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://www.ytljz.cn/uploads/allimg/101112/1ZQ12218-0-lp.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用CSS控制打印页面格式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CSS清除浏览器默认样式注意点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F365.html&from=http%3A%2F%2Fjs8.in%2F397.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10981512.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CSS清除浏览器默认样式注意点</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://js8.in/397.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>主流浏览器的CSS Hack方法整理</title>
		<link>http://js8.in/382.html</link>
		<comments>http://js8.in/382.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 00:28:06 +0000</pubDate>
		<dc:creator>三水清</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[css hack]]></category>

		<guid isPermaLink="false">http://www.js8.in/?p=382</guid>
		<description><![CDATA[对于前端开发人员CSS兼容性是个比较棘手的问题，当然对于不同浏览器也有不同的CSS hack的方法，此处本人就整理了IE6、IE7、FF、chrome、opera、safari等主流浏览器的一些常用到CSS hack方法，分享给大家，希望对大家有用。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用CSS控制打印页面格式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F351.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://www.ytljz.cn/uploads/allimg/101112/1ZQ12218-0-lp.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用CSS控制打印页面格式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CSS清除浏览器默认样式注意点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F365.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10981512.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CSS清除浏览器默认样式注意点</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>由于不同的浏览器，比如IE6、IE7、Firefox等，对CSS的解析不一样，因此会导致生成的页面效果不一样，得不到我们所需要的页面效果。我在写<a href="http://js8.in/374.html" target="_blank">WordPress天气预报插件</a>的时候就碰见了一个<strong>CSS hack</strong>的问题：在IE6下不能显示正常。本来一个很好的<a href="http://js8.in/wordpress-weather" target="_blank">WordPress天气预报插件</a>就因为IE6给推迟了发布时间。所以对于前端开发人员<strong>CSS兼容性</strong>是个比较棘手的问题，当然对于不同浏览器也有不同的CSS hack的方法，此处本人就整理了一些常用到CSS hack方法，分享给大家，希望对大家有用。</p>
<h3>CSS Hack浏览器的顺序</h3>
<p>对于不同浏览器的CSS hack是有顺序区分的，一般的书写hack的顺序是：<strong>Firefox -&gt; IE7 -&gt; IE6 -&gt; 其他</strong>，<br />
当然推荐大家使用Firefox+Firebug来进行调试，注意书写的时候要尽量标准，记住封口，很多时候不封口在FF，IE7下显示正常，可是在IE6下就全部乱了~</p>
<h3>CSS Hack整理汇总</h3>
<p>这些方法相信很多人已经很熟悉了：比如 <strong>IE6</strong>能识别下划线&#8221;<strong><span style="color: #ff00ff;">_</span></strong>&#8220;和星号&#8221; <span style="color: #ff00ff;"><strong>* </strong></span>&#8220;，<strong>IE7</strong>能识别星号&#8221;<span style="color: #ff00ff;"><strong> *</strong></span> &#8220;，但不能识别下划线&#8221;<span style="color: #ff00ff;"><strong>_</strong></span>&#8220;，而<strong>firefox</strong>两个都不能认识。<br />
<span id="more-382"></span><br />
<strong> 区别IE6与FF</strong>：</p>
<p style="padding-left: 30px;">background:orange;<strong><span style="color: #ff00ff;">*</span></strong>background:blue;</p>
<p><strong> 区别IE6与IE7</strong>：</p>
<p style="padding-left: 30px;">background:green<strong> !important</strong>;background:blue;</p>
<p><strong> 区别IE7与FF</strong>：</p>
<p style="padding-left: 30px;">background:orange; <span style="color: #ff0000;"><strong>*</strong></span>background:green;</p>
<p><strong> 区别FF，IE7，IE6</strong>：</p>
<p style="padding-left: 30px;">background:orange;<span style="color: #ff0000;"><strong>*</strong></span>background:green <span style="color: #ff0000;">!important</span>;<span style="color: #ff0000;"><strong>*</strong></span>background:blue;</p>
<p>注：</p>
<p style="padding-left: 30px;">IE都能识别<span style="color: #ff00ff;"><strong>*</strong></span>;标准浏览器(如FF)不能识别<span style="color: #ff00ff;"><strong>*</strong></span>；<br />
IE6能识别<span style="color: #ff00ff;"><strong>*</strong></span>，但不能识别<strong> !important</strong>,<br />
IE7能识别<span style="color: #ff00ff;"><strong>*</strong></span>，也能识别<strong>!important</strong>;<br />
FF不能识别<span style="color: #ff00ff;"><strong>*</strong></span>，但能识别<strong>!important</strong>;</p>
<blockquote>
<table border="0" cellspacing="1" cellpadding="0">
<tbody>
<tr>
<td></td>
<td>IE6</td>
<td>IE7</td>
<td>FF</td>
</tr>
<tr>
<td><strong><span style="color: #ff0000;">*</span></strong></td>
<td>√</td>
<td>√</td>
<td><span style="color: #ff0000;">×</span></td>
</tr>
<tr>
<td>!important</td>
<td><span style="color: #ff0000;">×</span></td>
<td>√</td>
<td>√</td>
</tr>
</tbody>
</table>
</blockquote>
<p>另外再补充一个:<strong>下划线&#8221;_&#8221;,</strong> <strong>IE6支持下划线，IE7和firefox均不支持下划线。</strong></p>
<p>于是大家还可以这样来区分IE6，IE7，firefox<br />
<span style="color: #008000;"><strong> : </strong></span>background:orange;<span style="color: #ff6600;"><strong>*</strong></span>background:green;<span style="color: #ff0000;"><strong>_</strong></span>background:blue;</p>
<p>除了上面常用到的方法，下面的代码也有CSS hack的效果：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#bgcolor</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">red</span> !important<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Firefox 等其他浏览器 */</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* IE6 */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">*+</span>html <span style="color: #cc00cc;">#bgcolor</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">green</span> !important<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* IE7 */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>E6 不认 !important, 也不认 *+html. 所以 IE6 只能是 blue.<br />
IE7 认 !important, 也认 <strong>*+html</strong>, 优先度: <strong>(*+html + !important) &gt; !important &gt; +html</strong>. IE7 可以是 red, blue 和 green, 但 green 的优先度最高.<br />
Firefox 和其他浏览器都认 !important. !important 优先, Firefox 可以是 red 和 blue, 但 red 优先度高.</p>
<p>注：不管是什么方法，书写的顺序都是firefox的写在前面，IE7的写在中间，IE6的写在最后面。</p>
<h3>使用if IE注释，让不同的CSS文件也能Hack</h3>
<p>我们可以写两个文件，一个是针对于全部浏览器的不需要<strong>CSS hack</strong>的css文件，假如是all.css，一个是针对某一特例的浏览器，如IE6，假设为IE6.css<br />
我们可以通过下面的代码来给<strong>IE6浏览器</strong>引入IE6.css这个文件，而对于其他的浏览器（如IE7）却不引入这个IE6.css，这样子就减少了IE7浏览器的请求次。</p>
<blockquote>
<pre style="background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-width: 1px; border-bottom-color: #fafafa; border-left-width: 3px; border-left-color: #e5e5e5; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; font-family: monospace; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: initial none initial;">&lt;!--[if IE]&gt;
	&lt;link rel="stylesheet" href="style_ie.css" type="text/css" /&gt;
&lt;![endif]--&gt;</pre>
</blockquote>
<p>关于<strong>if IE注释</strong>的详细用法，请参详《<a href="http://js8.in/381.html" target="_blank">使用if IE hack注释解决CSS以及JS的兼容问题</a>》</p>
<h3>兼容所有浏览器的透明效果</h3>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.transparent_class</span> <span style="color: #00AA00;">&#123;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/** Firefox 3.5即将原生支持opacity属性，所以本条属性只在Firefox3以下版本有效 ***/</span>
	-khtml-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3>针对chrome、opera、safari的CSS hack方法</h3>
<p>请移步→《<a href="http://js8.in/397.html" target="_blank">Opera Chrome Safari浏览器的CSS Hack方法</a>》
<div class="copyright">
<strong>声明：</strong>文章未声明为原创文章，本文链接 <a href="http://js8.in/382.html" title="主流浏览器的CSS Hack方法整理">http://js8.in/382.html</a>. 转载请注明转自<a href="http://js8.in" title="前端开发博客"> JS8.IN ™</a></span></span></div>
<h3 class="box-title">随机文章</h3>
<ul class="box_random">
<li><a href="http://js8.in/603.html" title="关于jQuery ready()方法一些用法解释" rel="bookmark inlinks">关于jQuery ready()方法一些用法解释</a></li>
<li><a href="http://js8.in/591.html" title="切换订阅地址到feedsky" rel="bookmark inlinks">切换订阅地址到feedsky</a></li>
<li><a href="http://js8.in/664.html" title="iframe自适用高度代码" rel="bookmark inlinks">iframe自适用高度代码</a></li>
<li><a href="http://js8.in/626.html" title="爆料：其实淘宝团购的聚划算每天有18款" rel="bookmark inlinks">爆料：其实淘宝团购的聚划算每天有18款</a></li>
<li><a href="http://js8.in/683.html" title="一道js正则笔试题" rel="bookmark inlinks">一道js正则笔试题</a></li>
<li><a href="http://js8.in/285.html" title="全国各省市，县级城市经纬度SQL数据以及js数组" rel="bookmark inlinks">全国各省市，县级城市经纬度SQL数据以及js数组</a></li>
<li><a href="http://js8.in/53.html" title="08.11.19" rel="bookmark inlinks">08.11.19</a></li>
<li><a href="http://js8.in/672.html" title="使用navigator.geolocation来获取用户的地理位置信息" rel="bookmark inlinks">使用navigator.geolocation来获取用户的地理位置信息</a></li>
</ul>
<hr />
<p><small>© 三水清 for <a href="http://js8.in">三水清</a>, 2009. |
<a href="http://js8.in/382.html#comments">5 comments</a> |在微博关注我：<a href="//weibo.com/sanshuiqing" target="_blank" title="关注断桥残雪的新浪微博">@清-三水清</a>
<br/>收藏到：
<a rel="nofollow" href="http://share.renren.com/share/buttonshare.do?link=%posturl%&title=%posttitle%" title="收藏本文到人人网" target="_blank">人人网</a> | <a rel="nofollow" href="http://www.douban.com/recommend/?url=%posturl%&title=%posttitle%" title="收藏本文到豆瓣" target="_blank">豆瓣</a> | <a rel="nofollow" href="http://www.kaixin001.com/repaste/share.php?rtitle=%posttitle%&rurl=%posturl%" title="收藏本文到开心网" target="_blank">开心网</a> | <a rel="nofollow" href="http://shuqian.qq.com/post?title=%posttitle%&%20uri=%posturl%" title="收藏本文到QQ书签" target="_blank">QQ书签</a> | <a rel="nofollow" href="http://v.t.sina.com.cn/share/share.php?url=%posturl%&title=%posttitle%" title="收藏本文到新浪微博" target="_blank">新浪微博</a> | <a rel="nofollow" href="http://v.t.qq.com/share/share.php?title=%posttitle%&url=%posturl%&site=http://www.kaixin100.info" title="收藏本文到腾讯微博" target="_blank">腾讯微博</a>
<br/>
Post tags: <a href="http://js8.in/tag/css-hack" rel="tag">css hack</a><br/>
</small></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用CSS控制打印页面格式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F351.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://www.ytljz.cn/uploads/allimg/101112/1ZQ12218-0-lp.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用CSS控制打印页面格式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CSS清除浏览器默认样式注意点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F365.html&from=http%3A%2F%2Fjs8.in%2F382.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10981512.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CSS清除浏览器默认样式注意点</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://js8.in/382.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>使用if IE hack注释解决CSS以及JS的兼容问题</title>
		<link>http://js8.in/381.html</link>
		<comments>http://js8.in/381.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 07:39:55 +0000</pubDate>
		<dc:creator>三水清</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[css hack]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.js8.in/?p=381</guid>
		<description><![CDATA[在IE CSS hack当中常用到if IE 来判断浏览器的类型，解决CSS甚至于JS的兼容性问题，之前大家可能知道if IE来解决CSS的兼容性问题，其实if IE不仅仅是用于CSS hack的使用，我们在前端开发中甚至可以使用if IE来做JS的处理<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用CSS控制打印页面格式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F351.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://www.ytljz.cn/uploads/allimg/101112/1ZQ12218-0-lp.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用CSS控制打印页面格式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IE6下javascript不能隐藏select标签的bug" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F686.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10987937.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">IE6下javascript不能隐藏select标签的bug</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在<strong>IE CSS hack</strong>(<a href="http://js8.in/382.html" target="_blank">更多方法</a>)当中常用到if IE 来判断浏览器的类型，解决CSS甚至于JS的<strong>兼容</strong>性问题，之前大家可能知道if IE来解决<strong>CSS的兼容</strong>性问题，其实if IE不仅仅是用于CSS hack的使用，我们在前端开发中甚至可以使用<strong>if IE</strong>来做JS的处理，如下面的代码：</p>
<blockquote><p>&lt;!&#8211;[if IE 5]&gt; &lt;script&gt;document.write(&#8221;仅IE5.0与IE5.5可以识别&#8221;);&lt;/script&gt; &lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if gte IE 5.0]&gt;&lt;script&gt;document.write(&#8221;IE5.0以及IE5.0以上版本都可以识别&#8221;);&lt;/script&gt;&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 6]&gt;&lt;script&gt;document.write(&#8221;仅IE6可识别&#8221;);&lt;/script&gt;&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if lt IE 6]&gt;&lt;script&gt;document.write(&#8221;IE6以下版本可识别&#8221;);&lt;/script&gt;&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if gte IE 6]&gt;&lt;script&gt;document.write(&#8221;<strong>IE6</strong>以及IE6以上版本可识别&#8221;);&lt;/script&gt;&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 7]&gt;&lt;script&gt;document.write(&#8221;仅IE7可识别&#8221;);&lt;/script&gt; &lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if lt IE 7]&gt;&lt;script&gt;document.write(&#8221;IE7以下版本可识别&#8221;);&lt;/script&gt;&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if gte IE 7]&gt;&lt;script&gt;document.write(&#8221;IE7以及IE7以上版本可识别&#8221;);&lt;/script&gt;&lt;![endif]&#8211;&gt;</p></blockquote>
<p>下面对<strong>if IE</strong>做一下详细的解释：<br />
<span id="more-381"></span></p>
<blockquote><p><strong>lte</strong>：就是Less than or equal to的简写，也就是小于或等于的意思。</p>
<p><strong> lt</strong> ：就是Less than的简写，也就是小于的意思。</p>
<p><strong> gte</strong>：就是Greater than or equal to的简写，也就是大于或等于的意思。</p>
<p><strong> gt</strong> ：就是Greater than的简写，也就是大于的意思。</p>
<p><strong> !</strong> ：就是不等于的意思，跟javascript里的不等于判断符相同</p></blockquote>
<p>当然我们也可以使用if IE的注释来引入 js文件，以及<strong>CSS hack</strong>（<a href="http://js8.in/382.html" target="_blank">更多方法</a>）文件，如下面的代码：</p>
<blockquote><p>&lt;!&#8211;[if lte IE 6]&gt;<br />
&lt;!&#8211; 如果IE浏览器版本小于等于6,调用ie6.css样式表 &#8211;&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=<a href="http://js8.in" target="_blank">&#8220;http://js8.in</a>/ie6.css&#8221; /&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if lte <strong>IE 6</strong>]&gt;<br />
&lt;!&#8211; 如果IE浏览器版本小于等于6,调用ie6.js样式表 &#8211;&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;<a href="http://js8.in">http://js8.in/ie6.js</a>&#8220;&gt;&lt;/script&gt;<br />
&lt;![endif]&#8211;&gt;</p></blockquote>
<p>最后，其实<strong>if IE</strong>的判断是可以镶嵌来写的，如下面的代码，采用了多级的判断：</p>
<blockquote><p>&lt;!&#8211;[if IE]&gt;<br />
&lt;h1&gt;您正在使用IE浏览器&lt;/h1&gt;<br />
&lt;!&#8211;[if IE 5]&gt;<br />
&lt;h2&gt;版本 5&lt;/h2&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 5.0]&gt;<br />
&lt;h2&gt;版本 5.0&lt;/h2&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 5.5]&gt;<br />
&lt;h2&gt;版本 5.5&lt;/h2&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 6]&gt;<br />
&lt;h2&gt;版本 6&lt;/h2&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 7]&gt;<br />
&lt;h2&gt;版本 7&lt;/h2&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;![endif]&#8211;&gt;</p></blockquote>
<p>更多的CSS Hack方法，请继续阅读《<em><a href="http://js8.in/382.html" target="_blank">主流浏览器的CSS Hack方法整理</a></em>》
<div class="copyright">
<strong>声明：</strong>文章未声明为原创文章，本文链接 <a href="http://js8.in/381.html" title="使用if IE hack注释解决CSS以及JS的兼容问题">http://js8.in/381.html</a>. 转载请注明转自<a href="http://js8.in" title="前端开发博客"> JS8.IN ™</a></span></span></div>
<h3 class="box-title">随机文章</h3>
<ul class="box_random">
<li><a href="http://js8.in/689.html" title="NodeList集合跟Array数组的区别" rel="bookmark inlinks">NodeList集合跟Array数组的区别</a></li>
<li><a href="http://js8.in/851.html" title="正确理解javascript的this关键字" rel="bookmark inlinks">正确理解javascript的this关键字</a></li>
<li><a href="http://js8.in/11.html" title="晚上玩了一个晚上~" rel="bookmark inlinks">晚上玩了一个晚上~</a></li>
<li><a href="http://js8.in/67.html" title="校内人人网忽悠用户-陈一舟牛啊~" rel="bookmark inlinks">校内人人网忽悠用户-陈一舟牛啊~</a></li>
<li><a href="http://js8.in/468.html" title="2fool.cn域名健在，爱墙升级" rel="bookmark inlinks">2fool.cn域名健在，爱墙升级</a></li>
<li><a href="http://js8.in/627.html" title="新浪微博应用开发之一：授权机制介绍" rel="bookmark inlinks">新浪微博应用开发之一：授权机制介绍</a></li>
<li><a href="http://js8.in/686.html" title="IE6下javascript不能隐藏select标签的bug" rel="bookmark inlinks">IE6下javascript不能隐藏select标签的bug</a></li>
<li><a href="http://js8.in/667.html" title="修改获取验证码图片到本地的PHP程序" rel="bookmark inlinks">修改获取验证码图片到本地的PHP程序</a></li>
</ul>
<hr />
<p><small>© 三水清 for <a href="http://js8.in">三水清</a>, 2009. |
<a href="http://js8.in/381.html#comments">2 comments</a> |在微博关注我：<a href="//weibo.com/sanshuiqing" target="_blank" title="关注断桥残雪的新浪微博">@清-三水清</a>
<br/>收藏到：
<a rel="nofollow" href="http://share.renren.com/share/buttonshare.do?link=%posturl%&title=%posttitle%" title="收藏本文到人人网" target="_blank">人人网</a> | <a rel="nofollow" href="http://www.douban.com/recommend/?url=%posturl%&title=%posttitle%" title="收藏本文到豆瓣" target="_blank">豆瓣</a> | <a rel="nofollow" href="http://www.kaixin001.com/repaste/share.php?rtitle=%posttitle%&rurl=%posturl%" title="收藏本文到开心网" target="_blank">开心网</a> | <a rel="nofollow" href="http://shuqian.qq.com/post?title=%posttitle%&%20uri=%posturl%" title="收藏本文到QQ书签" target="_blank">QQ书签</a> | <a rel="nofollow" href="http://v.t.sina.com.cn/share/share.php?url=%posturl%&title=%posttitle%" title="收藏本文到新浪微博" target="_blank">新浪微博</a> | <a rel="nofollow" href="http://v.t.qq.com/share/share.php?title=%posttitle%&url=%posturl%&site=http://www.kaixin100.info" title="收藏本文到腾讯微博" target="_blank">腾讯微博</a>
<br/>
Post tags: <a href="http://js8.in/tag/css-hack" rel="tag">css hack</a>, <a href="http://js8.in/tag/javascript" rel="tag">javascript</a><br/>
</small></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用CSS控制打印页面格式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F351.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://www.ytljz.cn/uploads/allimg/101112/1ZQ12218-0-lp.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用CSS控制打印页面格式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IE6下javascript不能隐藏select标签的bug" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F686.html&from=http%3A%2F%2Fjs8.in%2F381.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10987937.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">IE6下javascript不能隐藏select标签的bug</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://js8.in/381.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用CSS控制打印页面格式</title>
		<link>http://js8.in/351.html</link>
		<comments>http://js8.in/351.html#comments</comments>
		<pubDate>Tue, 01 Dec 2009 09:12:39 +0000</pubDate>
		<dc:creator>三水清</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css hack]]></category>

		<guid isPermaLink="false">http://www.js8.in/?p=351</guid>
		<description><![CDATA[之前做地图打印页面的时候，经理要求打印时候把打印的按钮去掉。这个时候就用到了控制打印的样式表了。
&#60;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;print&#8221; href=&#8221;print.css&#8221; /&#62;
正因为xhtml和css是分离的，所以我们可以在print.css里自由书写需要打印显示的内容和表现形式。那么这也要求我们在书写xhtml的时候更多考虑到打印显示效果的需求，良好的扩展标记和结构嵌套，使得我们轻松的使用display:none将内容设置为不显示。然后就是去书写 print.css内容的时候了，你象设置word一样去写你想打印的页面吧。
后来想了想，其实单独写一个css增加了请求次数，就想到了@media print{}的作用，代码如下

@media print{
 .printdesc
&#123;
    right: 0;
    width: 685px;
    height: 69px;
    background-color: #FFFFFF;
    float:left;
    overflow:auto;
    border:0px;
&#125;
.text&#123;
    float:right;
    width: 688px;
    margin-top:20px;
&#125;
.printlink&#123;
 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="引入CSS 的两种方式：link和@import的区别" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F554.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/18/11026361.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">引入CSS 的两种方式：link和@import的区别</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>之前做<a target="_blank" href="http://ditu.pujia.com/preview" target="_blank">地图</a>打印页面的时候，经理要求打印时候把打印的按钮去掉。这个时候就用到了控制<strong>打印</strong>的<strong>样式表</strong>了。<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;print&#8221; href=&#8221;print.css&#8221; /&gt;</p>
<p>正因为xhtml和css是分离的，所以我们可以在print.css里自由书写需要打印显示的内容和表现形式。那么这也要求我们在书写xhtml的时候更多考虑到打印显示效果的需求，良好的扩展标记和结构嵌套，使得我们轻松的使用display:none将内容设置为不显示。然后就是去书写 print.css内容的时候了，你象设置word一样去写你想打印的页面吧。<br />
后来想了想，其实单独写一个css增加了请求次数，就想到<strong>了@media print</strong>{}的作用，代码如下</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media print{</span>
 <span style="color: #6666ff;">.printdesc</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">685px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">69px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">text</span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">688px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.printlink<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span>-<span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.printlink</span> a<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>后来想到如果打印页面的某一部分，可以使用iframe来进行操作，现在的打印页面的局部内容基本上就是使用iframe进行处理的~特此记录一下
<div class="copyright">
<strong>声明：</strong>文章未声明为原创文章，本文链接 <a href="http://js8.in/351.html" title="使用CSS控制打印页面格式">http://js8.in/351.html</a>. 转载请注明转自<a href="http://js8.in" title="前端开发博客"> JS8.IN ™</a></span></span></div>
<h3 class="box-title">随机文章</h3>
<ul class="box_random">
<li><a href="http://js8.in/469.html" title="jQuery 1.4.1 中文参考文档下载" rel="bookmark inlinks">jQuery 1.4.1 中文参考文档下载</a></li>
<li><a href="http://js8.in/670.html" title="提高网站访问速度的十个技巧" rel="bookmark inlinks">提高网站访问速度的十个技巧</a></li>
<li><a href="http://js8.in/240.html" title="是不是应该出售2fool.cn的域名" rel="bookmark inlinks">是不是应该出售2fool.cn的域名</a></li>
<li><a href="http://js8.in/350.html" title="javascript高效简洁代码的编写及优化技巧" rel="bookmark inlinks">javascript高效简洁代码的编写及优化技巧</a></li>
<li><a href="http://js8.in/4.html" title="哎~都挺穷的！" rel="bookmark inlinks">哎~都挺穷的！</a></li>
<li><a href="http://js8.in/383.html" title="GoDaddy促销COM域名，在华仅0.99美元" rel="bookmark inlinks">GoDaddy促销COM域名，在华仅0.99美元</a></li>
<li><a href="http://js8.in/551.html" title="一款模仿Mac的windows7主题包" rel="bookmark inlinks">一款模仿Mac的windows7主题包</a></li>
<li><a href="http://js8.in/496.html" title="WordPress博客的 SEO 技巧" rel="bookmark inlinks">WordPress博客的 SEO 技巧</a></li>
</ul>
<hr />
<p><small>© 三水清 for <a href="http://js8.in">三水清</a>, 2009. |
<a href="http://js8.in/351.html#comments">2 comments</a> |在微博关注我：<a href="//weibo.com/sanshuiqing" target="_blank" title="关注断桥残雪的新浪微博">@清-三水清</a>
<br/>收藏到：
<a rel="nofollow" href="http://share.renren.com/share/buttonshare.do?link=%posturl%&title=%posttitle%" title="收藏本文到人人网" target="_blank">人人网</a> | <a rel="nofollow" href="http://www.douban.com/recommend/?url=%posturl%&title=%posttitle%" title="收藏本文到豆瓣" target="_blank">豆瓣</a> | <a rel="nofollow" href="http://www.kaixin001.com/repaste/share.php?rtitle=%posttitle%&rurl=%posturl%" title="收藏本文到开心网" target="_blank">开心网</a> | <a rel="nofollow" href="http://shuqian.qq.com/post?title=%posttitle%&%20uri=%posturl%" title="收藏本文到QQ书签" target="_blank">QQ书签</a> | <a rel="nofollow" href="http://v.t.sina.com.cn/share/share.php?url=%posturl%&title=%posttitle%" title="收藏本文到新浪微博" target="_blank">新浪微博</a> | <a rel="nofollow" href="http://v.t.qq.com/share/share.php?title=%posttitle%&url=%posturl%&site=http://www.kaixin100.info" title="收藏本文到腾讯微博" target="_blank">腾讯微博</a>
<br/>
Post tags: <a href="http://js8.in/tag/css-hack" rel="tag">css hack</a><br/>
</small></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="引入CSS 的两种方式：link和@import的区别" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F554.html&from=http%3A%2F%2Fjs8.in%2F351.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/18/11026361.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">引入CSS 的两种方式：link和@import的区别</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://js8.in/351.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>chrome字体最小值12px问题及解决方法</title>
		<link>http://js8.in/341.html</link>
		<comments>http://js8.in/341.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 02:30:31 +0000</pubDate>
		<dc:creator>三水清</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css hack]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.js8.in/341.html</guid>
		<description><![CDATA[昨天我修改自己的WordPress天气插件的时候，发现一个比较有趣的问题：chrome竟然最小的字体是12px，而小于12px的数值，百分比之类的都不起左右，都是显示12px。
对于这个问题，我上google搜索了半天也没有结果，本来因为是css出现了问题，测试了好多次都不行，于是最后来了个style=&#8221;font-size:10px&#8221;都没有显示成功，之后我写了一段代码在本地测试，还是不行，问了同事，同事都是表示不知道。
后来是怀疑自己的html声明写错了，可是更换了标准声明还是不行，至今还是表示疑惑，找到了客户端设置chrome的方法，而没有css hack的方法没有找到，希望高手给个css hack解决的方法。
WordPress天气预报插件地址：http://js8.in/mywork/weather
demo地址：http://js8.in/mywork/weather/demo.php?city=0532
 
解决方法
1.将chrome的界面语言改成英文,方法:扳手-选项-高级选项-更改字体和语言设置-语言-谷歌浏览器语言 将这里的改成英语(美国)之类
2.
Basically, the Chrome browser is based on WebKit. There are some webkit internal font setting options for font family, font size, etc.
Using text editor to open &#8220;Documents and Settings\User_Name\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences&#8221;
You will find the &#8220;webkit&#8221;: {  &#8220;webprefs&#8221;: { in the file. Those settings are for WebKit.
In my setting example:
 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="css解决chrome 12px字号限制" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F625.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979712.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">css解决chrome 12px字号限制</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨天我修改自己的<a href="http://js8.in/mywork/weather/">WordPress天气插件</a>的时候，发现一个比较有趣的问题：<strong>chrome</strong>竟然最小的字体是12px，而小于12px的数值，百分比之类的都不起左右，都是显示<strong>12px</strong>。<br />
对于这个问题，我上google搜索了半天也没有结果，本来因为是css出现了问题，测试了好多次都不行，于是最后来了个style=&#8221;font-size:10px&#8221;都没有显示成功，之后我写了一段代码在本地测试，还是不行，问了同事，同事都是表示不知道。<br />
后来是怀疑自己的html声明写错了，可是更换了标准声明还是不行，至今还是表示疑惑，找到了客户端设置chrome的方法，而没有css hack的方法没有找到，希望高手给个<strong>css hack</strong>解决的方法。<br />
WordPress天气预报插件地址：http://js8.in/mywork/weather<br />
demo地址：http://js8.in/mywork/weather/demo.php?city=0532<br />
<a href="http://js8.in/mywork/weather/" target="_blank"><img class="alignnone size-full wp-image-339" title="火狐下正常显示11px，布局正确" src="http://js8.in/wp-content/uploads/2009/11/Snap21.jpg" alt="火狐下正常显示11px，布局正确" width="198" height="253" /></a> <a href="http://js8.in/mywork/weather/" target="_blank"><img class="alignnone size-full wp-image-340" title="chrome下顶部日期显示的是12px" src="http://js8.in/wp-content/uploads/2009/11/Snap31.jpg" alt="chrome下顶部日期显示的是12px" width="201" height="253" /></a><br />
<h3>解决方法</h3>
<p><span id="more-341"></span>1.将chrome的界面语言改成英文,方法:扳手-选项-高级选项-更改字体和语言设置-语言-谷歌浏览器语言 将这里的改成英语(美国)之类<br />
2.<br />
<blockquote>Basically, the Chrome browser is based on WebKit. There are some webkit internal font setting options for font family, font size, etc.<br />
Using text editor to open &#8220;Documents and Settings\User_Name\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences&#8221;<br />
You will find the &#8220;webkit&#8221;: {  &#8220;webprefs&#8221;: { in the file. Those settings are for WebKit.<br />
In my setting example:<br />
   &#8220;webkit&#8221;: {<br />
      &#8220;webprefs&#8221;: {<br />
         &#8220;default_fixed_font_size&#8221;: 11,<br />
         &#8220;default_font_size&#8221;: 12,<br />
         &#8220;fixed_font_family&#8221;: &#8220;Bitstream Vera Sans Mono&#8221;,<br />
         &#8220;minimum_font_size&#8221;: 12,<br />
         &#8220;minimum_logical_font_siz&#8221;: 12,<br />
         &#8220;sansserif_font_family&#8221;: &#8220;Times New Roman&#8221;,<br />
         &#8220;serif_font_family&#8221;: &#8220;Arial&#8221;,<br />
         &#8220;standard_font_is_serif&#8221;: false,<br />
         &#8220;text_areas_are_resizable&#8221;: true<br />
      }<br />
   }<br />
The minimum_font_size and minimum_logical_font_size prevent Chrome to use very small font size for display.<br />
Remember to close Chrome first before you edit the file, or the file you saved will be overwritten by Chome after exiting.</p></blockquote>
<div class="copyright">
<strong>声明：</strong>文章未声明为原创文章，本文链接 <a href="http://js8.in/341.html" title="chrome字体最小值12px问题及解决方法">http://js8.in/341.html</a>. 转载请注明转自<a href="http://js8.in" title="前端开发博客"> JS8.IN ™</a></span></span></div>
<h3 class="box-title">随机文章</h3>
<ul class="box_random">
<li><a href="http://js8.in/38.html" title="Ajax文章评论上线！" rel="bookmark inlinks">Ajax文章评论上线！</a></li>
<li><a href="http://js8.in/541.html" title="IE onchange事件触发bug？" rel="bookmark inlinks">IE onchange事件触发bug？</a></li>
<li><a href="http://js8.in/346.html" title="Wordpress Follow5 插件开发日记—插件后台Ajax应用及jQuery的使用" rel="bookmark inlinks">Wordpress Follow5 插件开发日记—插件后台Ajax应用及jQuery的使用</a></li>
<li><a href="http://js8.in/593.html" title="解决IE下setTimeout传参数的bug" rel="bookmark inlinks">解决IE下setTimeout传参数的bug</a></li>
<li><a href="http://js8.in/752.html" title="使用html5 postMessage和window.name实现多浏览器跨域" rel="bookmark inlinks">使用html5 postMessage和window.name实现多浏览器跨域</a></li>
<li><a href="http://js8.in/573.html" title="通过On Top Replica 置顶任意窗口的任意部分" rel="bookmark inlinks">通过On Top Replica 置顶任意窗口的任意部分</a></li>
<li><a href="http://js8.in/530.html" title="断桥残雪爱墙出国啦！" rel="bookmark inlinks">断桥残雪爱墙出国啦！</a></li>
<li><a href="http://js8.in/623.html" title="IE event.stopPropagation()阻止冒泡事件" rel="bookmark inlinks">IE event.stopPropagation()阻止冒泡事件</a></li>
</ul>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://js8.in";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress2.8.6";
    //--></script></p>
<hr />
<p><small>© 三水清 for <a href="http://js8.in">三水清</a>, 2009. |
<a href="http://js8.in/341.html#comments">18 comments</a> |在微博关注我：<a href="//weibo.com/sanshuiqing" target="_blank" title="关注断桥残雪的新浪微博">@清-三水清</a>
<br/>收藏到：
<a rel="nofollow" href="http://share.renren.com/share/buttonshare.do?link=%posturl%&title=%posttitle%" title="收藏本文到人人网" target="_blank">人人网</a> | <a rel="nofollow" href="http://www.douban.com/recommend/?url=%posturl%&title=%posttitle%" title="收藏本文到豆瓣" target="_blank">豆瓣</a> | <a rel="nofollow" href="http://www.kaixin001.com/repaste/share.php?rtitle=%posttitle%&rurl=%posturl%" title="收藏本文到开心网" target="_blank">开心网</a> | <a rel="nofollow" href="http://shuqian.qq.com/post?title=%posttitle%&%20uri=%posturl%" title="收藏本文到QQ书签" target="_blank">QQ书签</a> | <a rel="nofollow" href="http://v.t.sina.com.cn/share/share.php?url=%posturl%&title=%posttitle%" title="收藏本文到新浪微博" target="_blank">新浪微博</a> | <a rel="nofollow" href="http://v.t.qq.com/share/share.php?title=%posttitle%&url=%posturl%&site=http://www.kaixin100.info" title="收藏本文到腾讯微博" target="_blank">腾讯微博</a>
<br/>
Post tags: <a href="http://js8.in/tag/chrome" rel="tag">chrome</a>, <a href="http://js8.in/tag/css-hack" rel="tag">css hack</a>, <a href="http://js8.in/tag/wordpress" rel="tag">wordpress</a><br/>
</small></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera Chrome Safari浏览器的CSS Hack方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F397.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/11/11779216.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera Chrome Safari浏览器的CSS Hack方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用if IE hack注释解决CSS以及JS的兼容问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F381.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979211.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用if IE hack注释解决CSS以及JS的兼容问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="css解决chrome 12px字号限制" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F625.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/10979712.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">css解决chrome 12px字号限制</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主流浏览器的CSS Hack方法整理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fjs8.in%2F382.html&from=http%3A%2F%2Fjs8.in%2F341.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/17/7942769.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主流浏览器的CSS Hack方法整理</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://js8.in/341.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

