<?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>雨无形的BLOG &#187; css</title>
	<atom:link href="http://www.yuwuxing.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuwuxing.com</link>
	<description>关注互联网发展</description>
	<lastBuildDate>Fri, 23 Dec 2011 04:00:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CSS3 Columns属性研究</title>
		<link>http://www.yuwuxing.com/css3-columns-attribute/</link>
		<comments>http://www.yuwuxing.com/css3-columns-attribute/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 09:50:17 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=99</guid>
		<description><![CDATA[CSS3 Columns属性研究 Columns属性是用来制作类似杂志布局，下面是该属性的简单介绍： 这个属性也相对来说比较简单，主要用于杂志式的布局，在Mozilla 和 Webkit 核心浏览器中需要前缀书写，带代码如下： 1 2 3 4 5 6 -moz-column-count: 2; /* For FireFox */ -webkit-column-count: 2; /* For Safari/Chrome */ column-count: 2; /* For when the standard gets fully supported */ -moz-column-width: 250px; /* For FireFox */ -webkit-column-width: 250px; /* For Safari/Chrome */ column-width: 250px; /* For when the standard&#8230;<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>CSS3 Columns属性研究</p>
<p>Columns属性是用来制作类似杂志布局，下面是该属性的简单介绍：</p>
<p>这个属性也相对来说比较简单，主要用于杂志式的布局，在Mozilla 和 Webkit 核心浏览器中需要前缀书写，带代码如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* For FireFox */</span>
-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* For Safari/Chrome */</span>
column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* For when the standard gets fully supported */</span>
-moz-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* For FireFox */</span>
-webkit-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* For Safari/Chrome */</span>
column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* For when the standard gets fully supported */</span></pre></td></tr></table></div>

<p>这段代码分别是定义的栏数根每栏的宽度</p>
<p>支持此属性的浏览器：Safari 3.1+, FireFox 3.5, Chrome 1.0+</p>
<p>属性的使用很简单，比如要做一个宽度固定为800px，4栏的布局可以用如下代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span>
-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span>
column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span></pre></td></tr></table></div>

<p>同样如果要制作一个高度固定为400px，每栏宽度300px的布局可以用如下代码</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
-moz-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
-webkit-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span></pre></td></tr></table></div>

<p>但是如果同同时使用了column-width和column-count会有怎么样的效果呢？<br />
我们实验一下最开头的代码，</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
-moz-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span>
-webkit-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span>
column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span></pre></td></tr></table></div>

<p>分别用FF3.5和chrome/safari打开看一下<br />
我们发现chrome/safari是按照设定的每栏宽250px，两栏显示的，但是FF下却成了两栏，但是每栏的宽变成了整个容器的50%的宽度。说明在FF下优先考虑的是容器的宽度。</p>
<p>然后我们再测试一下极端一点的情况：</p>
<div class="runcode">
<p><textarea name="runcode" style="height:200px;width:580px;font-size:12px" class="runcode_text" id="runcode_ktacQc">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;
&lt;title&gt;无标题文档&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.textcol {
	height:400px;
	background:#FC0;
-moz-column-count: 2; /* For FireFox */
-webkit-column-count: 2; /* For Safari/Chrome */
column-count: 2; /* For when the standard gets fully supported */
-moz-column-width: 250px; /* For FireFox */
-webkit-column-width: 250px; /* For Safari/Chrome */
column-width: 250px; /* For when the standard gets fully supported */}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;textcol&quot;&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
  &lt;p&gt;前言：昨天介绍了一个text-shadow的CSS3属性，NB吧，今天专门去查了一下CSS3的其它属性，发现这篇文章不错，特别转帖过来。&lt;/p&gt;
  &lt;p&gt;原文：&lt;a href=&quot;http://www.elliotswan.com/2009/07/27/9-css3-properties-you-can-use-now/&quot;&gt;9 CSS3 Properties You Can Use Now&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;当你看到很多自己期待的属性在CSS3中出现，肯定会兴奋不已，而在之前这些都是需要一些浏览器hack实现。&lt;/p&gt;
  &lt;p&gt;下面就介绍一下CSS3中9个现在可以并且经常被你使用的属性，以及如何去使用。&lt;/p&gt;
  &lt;h3&gt;1.Text-shadow&lt;/h3&gt;
  &lt;p&gt;这个属性使用的属性值是这样定义的：&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_ktacQc');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_ktacQc');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_ktacQc','runcode_ktacQc');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p>在限定了高度，栏数，栏宽，字数又超过了的情况下，在FF下，栏宽还是容器宽度的50%，栏宽的限制也不起作用了，唯一起作用的是高度，在chrome/Safari下，栏宽跟高度还是保持，栏数超出设置。这个在使用这个属性的时候都是要注意的。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/css3-columns-attribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS文字阴影效果</title>
		<link>http://www.yuwuxing.com/css-text-shadow/</link>
		<comments>http://www.yuwuxing.com/css-text-shadow/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 07:33:57 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=78</guid>
		<description><![CDATA[上回说到用css模拟图片阴影效果，那么文字有办法吗？ 其实在css3中已经有一个text-shadow属性专门来实现这个效果，不过目前只有Webkit (from Safari 3+，chrome), Opera 9.5, Firefox 3.1(pre-Alpha)等几个现代浏览器可以支持该属性，IE系的暂时无法实现该属性。 text-shadow的语法： text-shadow:color length length length; color:颜色; length分别按顺序指”X轴方向长度 Y轴方向长度 阴影模糊半径” 正值在X轴表示向右,负值表示向左.同样的道理Y轴负值是表示向上. 其中任意一个值可以为零也可为空(将做默认处理) 具体请参考：http://www.w3.org/TR/2003/CR-css3-text-20030514/#text-shadows 值得注意的是，text-shadow可以应用多组属性，也就是可以如下方法使用： 0 0 4px white, 0 -5px 4px #FFFF33, 2px -10px 6px #FFDD33, -2px -15px 11px #FF8800, 2px -25px 18px #FF2200 下面看几个范例：(请使用Webkit (from Safari 3+，chrome), Opera 9.5, Firefox 3.1(pre-Alpha)浏览器运行查看效果。) &#60;!DOCTYPE html public &#34;-//W3C//DTD XHTML&#8230;<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>上回说到用css模拟图片阴影效果，那么文字有办法吗？</p>
<p>其实在css3中已经有一个text-shadow属性专门来实现这个效果，不过目前只有Webkit (from Safari 3+，chrome), Opera 9.5, Firefox 3.1(pre-Alpha)等几个现代浏览器可以支持该属性，IE系的暂时无法实现该属性。</p>
<p>text-shadow的语法：</p>
<blockquote><p>text-shadow:<span style="color: #339966;"><strong>color</strong></span> <span style="color: #ffcc00;"><strong>length</strong></span> <span style="color: #0000ff;"><strong>length</strong></span> <span style="color: #993366;"><strong>length</strong></span>;</p>
<p><span style="color: #008080;">color</span>:颜色; length分别按顺序指”<span style="color: #ffcc00;">X轴方向长度</span> <span style="color: #3366ff;">Y轴方向长度</span> <span style="color: #993366;">阴影模糊半径</span>”</p>
<p>正值在X轴表示向右,负值表示向左.同样的道理Y轴负值是表示向上.</p>
<p>其中任意一个值可以为零也可为空(将做默认处理)</p></blockquote>
<p>具体请参考：<a href="http://www.w3.org/TR/2003/CR-css3-text-20030514/#text-shadows">http://www.w3.org/TR/2003/CR-css3-text-20030514/#text-shadows</a></p>
<p>值得注意的是，text-shadow可以应用多组属性，也就是可以如下方法使用：</p>
<blockquote><p>0 0 4px white, 0 -5px 4px #FFFF33, 2px -10px 6px #FFDD33, -2px -15px 11px #FF8800, 2px -25px 18px #FF2200</p></blockquote>
<p><strong>下面看几个范例：</strong><span style="color: #ff0000;">(请使用Webkit (from Safari 3+，chrome), Opera 9.5, Firefox 3.1(pre-Alpha)浏览器运行查看效果。)</span></p>
<div class="runcode">
<p><textarea name="runcode" style="height:200px;width:580px;font-size:12px" class="runcode_text" id="runcode_OZ5xyS">
&lt;!DOCTYPE html public &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
	&lt;meta name=&quot;Keywords&quot; content=&quot;&quot; /&gt;
	&lt;meta name=&quot;Description&quot; content=&quot;&quot; /&gt;
    &lt;title&gt;文字阴影&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
/**--------------
	RESET CSS
--------------**/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {margin:0;padding:0;}
a{text-decoration:none;}
ol,ul {list-style: none;}
table {border-collapse: collapse;border-spacing:0;}
h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
address,caption,cite,code,dfn,em,strong,th,var {font-style:normal;font-weight:normal;}
img{border:none;}
.clearfix:after {content:&quot;\0020&quot;;display:block;height:0;clear:both;}
.clearfix{zoom:1;}
body{font-family:&quot;微软雅黑&quot;,&quot;宋体&quot;,Geneva, sans-serif;	font-size:12px;background:#ebebeb;}
/**--------------
	CSS
--------------**/
#wrapper{
	margin:30px 0 30px 150px;
}
#wrapper h2{
	font-size:35px;
	font-weight:bold;
}
#wrapper h1{
	font-size:20px;
	color:#48A890;
	font-family:Georgia;
	font-style:italic;
	margin-bottom:30px;
	text-shadow: 0 1px #fff;
}
h2#test1{
	text-shadow: 1px 1px #40730e;
	color:#92bf30;
}
h2#test2{
	text-shadow: 1px 1px  3px #000;
	color:#676767;
}
h2#test3{
	text-shadow: 0px -1px  #bbb,0 1px #fff;
	color:#e3e1e1;
}
h2#test4{
	text-shadow: -1px -1px 3px #ffb69a,1px 1px 3px #922e09,-1px -1px #ffb69a,1px 1px #922e09;
	color:#e73f00;
}
h2#test5{
	margin-top:40px;
	text-shadow:0 0 4px white, 0 -5px 4px #FFFF33, 2px -10px 6px #FFDD33, 2px -15px 11px #FF8800, 2px -25px 18px #FF2200;
	color:#000;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;wrapper&quot;&gt;
	&lt;h1&gt;Text Shadow Use CSS&lt;/h1&gt;
		&lt;h2 id=&quot;test1&quot;&gt;1 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test2&quot;&gt;2 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test3&quot;&gt;3 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test4&quot;&gt;4 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test5&quot;&gt;5 : Multiple shadows are Hot&lt;/h2&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_OZ5xyS');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_OZ5xyS');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_OZ5xyS','runcode_OZ5xyS');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p>至于顽固的IE，只能用滤镜来实现类似效果了，下面也顺便介绍一下IE滤镜制作阴影。</p>
<p>IE滤镜的语法为：</p>
<blockquote><p>filter : progid:DXImageTransform.Microsoft.Shadow ( enabled=bEnabled , color=sColor , direction=iOffset , strength=iDistance )<br />
其中color为阴影颜色 direction为角度  strength为阴影距离</p></blockquote>
<p>下面一样看个例子</p>
<div class="runcode">
<p><textarea name="runcode" style="height:200px;width:580px;font-size:12px" class="runcode_text" id="runcode_WUj55_">
&lt;!DOCTYPE html public &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
	&lt;meta name=&quot;Keywords&quot; content=&quot;&quot; /&gt;
	&lt;meta name=&quot;Description&quot; content=&quot;&quot; /&gt;
    &lt;title&gt;文字阴影IE滤镜版&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
/**--------------
	RESET CSS
--------------**/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {margin:0;padding:0;}
a{text-decoration:none;}
ol,ul {list-style: none;}
table {border-collapse: collapse;border-spacing:0;}
h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
address,caption,cite,code,dfn,em,strong,th,var {font-style:normal;font-weight:normal;}
img{border:none;}
.clearfix:after {content:&quot;\0020&quot;;display:block;height:0;clear:both;}
.clearfix{zoom:1;}
body{font-family:&quot;微软雅黑&quot;,&quot;宋体&quot;,Geneva, sans-serif;	font-size:12px;background:#ebebeb;}
/**--------------
	CSS
--------------**/
#wrapper{
	margin:30px 0 30px 150px;
}
#wrapper h2{
	font-size:35px;
	font-weight:bold;
}
#wrapper h1{
	font-size:20px;
	color:#48A890;
	font-family:Georgia;
	font-style:italic;
	margin-bottom:30px;
	text-shadow: 0 1px #fff;
}
h2#test1{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#40730e);
	color:#92bf30;
}
h2#test2{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#000000);
	color:#676767;
}
h2#test3{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#ffffff);
	color:#e3e1e1;
}
p#test4{
	zoom:1;
	font-family:&quot;宋体&quot;;
	font-size:14px;
	font-weight:bold;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=120, color=#FFFFFF);
	color:#676767;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;wrapper&quot;&gt;
	&lt;h1&gt;Text Shadow Use CSS&lt;/h1&gt;
		&lt;h2 id=&quot;test1&quot;&gt;1 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test2&quot;&gt;2 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test3&quot;&gt;3 : This is heading with text-shadow 中文标题&lt;/h2&gt;
        &lt;p id=&quot;test4&quot;&gt;4 : This is heading with text-shadow 中文标题&lt;/p&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_WUj55_');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_WUj55_');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_WUj55_','runcode_WUj55_');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p>可以看到效果比较差，只有在小字体的时候才能用下。另外要注意要是用滤镜的元素必须触发haslayout</p>
<p>最后把两个方案结合一下即可实现支持大部分浏览器的CSS阴影效果。</p>
<div class="runcode">
<p><textarea name="runcode" style="height:200px;width:580px;font-size:12px" class="runcode_text" id="runcode_hKq82M">
&lt;!DOCTYPE html public &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
	&lt;meta name=&quot;Keywords&quot; content=&quot;&quot; /&gt;
	&lt;meta name=&quot;Description&quot; content=&quot;&quot; /&gt;
    &lt;title&gt;文字阴影&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
/**--------------
	RESET CSS
--------------**/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {margin:0;padding:0;}
a{text-decoration:none;}
ol,ul {list-style: none;}
table {border-collapse: collapse;border-spacing:0;}
h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
address,caption,cite,code,dfn,em,strong,th,var {font-style:normal;font-weight:normal;}
img{border:none;}
.clearfix:after {content:&quot;\0020&quot;;display:block;height:0;clear:both;}
.clearfix{zoom:1;}
body{font-family:&quot;微软雅黑&quot;,&quot;宋体&quot;,Geneva, sans-serif;	font-size:12px;background:#ebebeb;}
/**--------------
	CSS
--------------**/
#wrapper{
	margin:30px 0 30px 150px;
}
#wrapper h2{
	font-size:35px;
	font-weight:bold;
}
#wrapper h1{
	font-size:20px;
	color:#48A890;
	font-family:Georgia;
	font-style:italic;
	margin-bottom:30px;
	text-shadow: 0 1px #fff;
}
h2#test1{
	text-shadow: 1px 1px #40730e;
	color:#92bf30;
}
h2#test2{
	text-shadow: 1px 1px  3px #000;
	color:#676767;
}
h2#test3{
	text-shadow: 0px -1px  #bbb,0 1px #fff;
	color:#e3e1e1;
}
p#test4{
	text-shadow: 1px 1px 1px #FFFFFF;
	font-family:&quot;宋体&quot;;
	font-size:14px;
	font-weight:bold;
	color:#676767;
}
--&gt;
&lt;/style&gt;
&lt;!--[if IE]&gt;
&lt;style type=&quot;text/css&quot;&gt;
h2#test1{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#40730e);
}
h2#test2{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#000000);
}
h2#test3{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#ffffff);
}
p#test4{
	zoom:1;
	filter:progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=120, color=#FFFFFF);
}
--&gt;
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;wrapper&quot;&gt;
	&lt;h1&gt;Text Shadow Use CSS&lt;/h1&gt;
		&lt;h2 id=&quot;test1&quot;&gt;1 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test2&quot;&gt;2 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;h2 id=&quot;test3&quot;&gt;3 : This is heading with text-shadow 中文标题&lt;/h2&gt;
		&lt;p id=&quot;test4&quot;&gt;4 : This is heading with text-shadow 中文标题&lt;/p&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_hKq82M');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_hKq82M');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_hKq82M','runcode_hKq82M');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/css-text-shadow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>适合自己的才是最好的——打造最适合自己习惯的reset.css</title>
		<link>http://www.yuwuxing.com/built-personal-reset-css/</link>
		<comments>http://www.yuwuxing.com/built-personal-reset-css/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 07:17:53 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=51</guid>
		<description><![CDATA[<p>适合自己的才是最好的&#8212;&#8212;打造最适合自己习惯的reset.css</p><p>最近准备写一个符合自己习惯的css框架，首先第一步当然是reset.css</p><p>研究了一些网上的资料，整合了一下，整理出了最符合自己的reset.css。</p><p>参考资料有</p><p>1、玉伯同学的<a href="http://ued.taobao.com/blog/2009/03/31/reset_css_a/">Reset CSS研究（八卦篇）</a></p><p>2、<a href="http://www.blueidea.com">蓝色理想</a>上的<a href="http://bbs.blueidea.com/thread-2913841-1-1.html">打造自己的Reset.css</a></p><p>...</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>最近准备写一个符合自己习惯的css框架，首先第一步当然是reset.css</p>
<p>研究了一些网上的资料，整合了一下，以YUI为蓝本，整理出了最符合自己的reset.css。</p>
<p>参考资料有</p>
<p>1、玉伯同学的<a href="http://ued.taobao.com/blog/2009/03/31/reset_css_a/">Reset CSS研究（八卦篇）</a></p>
<p>2、<a href="http://www.blueidea.com">蓝色理想</a>上的<a href="http://bbs.blueidea.com/thread-2913841-1-1.html">打造自己的Reset.css</a></p>
<p>3、Eric的<a href="http://meyerweb.com/eric/tools/css/reset/index.html">reset css</a></p>
<p>4、YUI 3的<a href="http://developer.yahoo.com/yui/3/cssreset/">CSS RESET</a></p>
<p>5、<a href="http://www.ejeliot.com/blog/85">Less is more &#8211; my choice of Reset CSS</a></p>
<p>首先是最基本的清除padding跟margin：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> fieldset<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span> input<span style="color: #00AA00;">,</span> button<span style="color: #00AA00;">,</span> textarea<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>这个我在YUI的基础上进行的修改，去除了pre,code,blockquote三个标签，因为我一般做的项目都是企业或门户型网站，用到这三个标签的机会极少，因此就去除了这三个标签的重置，节省几个字节。</p>
<p>然后是清楚border，一般常用的需要清除的只有fieldset、img两个元素，特别是img，如果不清楚在加上链接的时候会出现蓝色边框。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">fieldset<span style="color: #00AA00;">,</span> img <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>对于h标签,我只重置了该标签的font-size其它都没重置，在yui中的font-weight:normal;重置被我去除了，因为在我的使用中的大多数情况下h标签都是需要font-weight:bold的，在这里去除了以后还要加，反而麻烦了。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">h1<span style="color: #00AA00;">,</span>h2<span style="color: #00AA00;">,</span>h3<span style="color: #00AA00;">,</span>h4<span style="color: #00AA00;">,</span>h5<span style="color: #00AA00;">,</span>h6 <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>li标签的list重置，我选择了eric大牛的方法，</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">ol<span style="color: #00AA00;">,</span> ul <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>而没有用yui的方法</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">li <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>因为蓝色理想那篇文章里写，前一种方法的性能更好，这个目前没有什么实例证明，不过3个直接姑且就先用第一种吧。</p>
<p>再下来是table的样式</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">table <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-collapse</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">collapse</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
caption<span style="color: #00AA00;">,</span> th <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">text-align</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;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>最后几个伪类的样式</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>这个主要是针对非IE浏览器链接点击时的虚线框。</p>
<p>另外我一直很犹豫是否把链接的下划线去掉，经过考虑以后还是不在reset里面去掉了。</p>
<p>秉承够用就好的原则，代码中我去掉了那些我不常用的标签的重置，比如abbr,acronym,sup,sub,code,address,cite,dfn,var,blockquote,q标签，一般项目中基本上用不到，所以就不设置了。strong,em等标签还是使用默认样式，这里也不重置了。</p>
<p>将前面的综合一下最后的代码是：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
reset css version: 1.0 | 20090714
*/</span>
body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> fieldset<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span> input<span style="color: #00AA00;">,</span> button<span style="color: #00AA00;">,</span> textarea<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
fieldset<span style="color: #00AA00;">,</span> img <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">,</span>h2<span style="color: #00AA00;">,</span>h3<span style="color: #00AA00;">,</span>h4<span style="color: #00AA00;">,</span>h5<span style="color: #00AA00;">,</span>h6 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ol<span style="color: #00AA00;">,</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
table <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-collapse</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">collapse</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
caption<span style="color: #00AA00;">,</span> th <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-align</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;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/built-personal-reset-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>根据访问者分辨率，自动调用不同版式CSS的代码</title>
		<link>http://www.yuwuxing.com/change-the-layout-css-for-different-resolution/</link>
		<comments>http://www.yuwuxing.com/change-the-layout-css-for-different-resolution/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 02:03:33 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[分辨率]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=49</guid>
		<description><![CDATA[<p>虽然现在已经基本淘汰800分辨率了1024已经成为主流，但是随着大屏幕液晶的不断降价，更高的分辨率将会逐步成为主流，为了适应越来越大的分辨率，有时候我们会采用流体布局，但是流体布局有时候也有局限性，下面一段js可以实现根据用户客户端分辨率的不同，调用不同的css代码来实现适应不同分辨率的效果。</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>虽然现在已经基本淘汰800分辨率了1024已经成为主流，但是随着大屏幕液晶的不断降价，更高的分辨率将会逐步成为主流，为了适应越来越大的分辨率，有时候我们会采用流体布局，但是流体布局有时候也有局限性，下面一段js可以实现根据用户客户端分辨率的不同，调用不同的css代码来实现适应不同分辨率的效果。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> Swidth <span style="color: #339933;">=</span> screen.<span style="color: #660066;">width</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> Surl <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.yours.com/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> Skin <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;cssstyle1.css&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;cssstyle2.css&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> Skintemp<span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Swidth <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">1280</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Surl <span style="color: #339933;">+=</span> <span style="color: #3366CC;">&quot;skin_1200&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
    Surl <span style="color: #339933;">+=</span> <span style="color: #3366CC;">&quot;skin&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> Skin.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Skintemp <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;link&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Skintemp.<span style="color: #660066;">type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;text/css&quot;</span><span style="color: #339933;">;</span>
    Skintemp.<span style="color: #660066;">rel</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;stylesheet&quot;</span><span style="color: #339933;">;</span>
    Skintemp.<span style="color: #660066;">href</span> <span style="color: #339933;">=</span> Surl <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;/&quot;</span> <span style="color: #339933;">+</span> Skin<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;head&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>Skintemp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/change-the-layout-css-for-different-resolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acid2 Browser Test</title>
		<link>http://www.yuwuxing.com/acid2-browser-test/</link>
		<comments>http://www.yuwuxing.com/acid2-browser-test/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 03:17:50 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=30</guid>
		<description><![CDATA[<p>恕我火星了，今天才知道有Acid2 Browser Test这个东西，动手测试了一下手头的浏览器，IE8 FF3 谷歌浏览器都正常FF2和IE7及以下版本都不正常。</p><p>上网搜索了一下</p><blockquote><h2>Acid2 Browser Test</h2><p>Acid2 is a test page, written to help browser vendors ensure proper support for web standards in their products. Please <a href="http://www.webstandards.org/files/acid2/test.html">take the Acid2 test</a>!</p>...</blockquote><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>恕我火星了，今天才知道有Acid2 Browser Test这个东西，动手测试了一下手头的浏览器，IE8 FF3 谷歌浏览器都正常FF2和IE7及以下版本都不正常。</p>
<p>上网搜索了一下</p>
<blockquote><h2>Acid2 Browser Test</h2>
<p>Acid2 is a test page, written to help browser vendors ensure proper support for web standards in their products. Please <a href="http://www.webstandards.org/files/acid2/test.html">take the Acid2 test</a>!</p>
<p>If you&rsquo;d like more in-depth information about <a href="http://www.webstandards.org/files/acid2/test.html">the Acid2 test</a>, we&rsquo;ve provided a detailed technical <a href="http://www.webstandards.org/action/acid2/guide/">guide that explains how the test works</a>.</p>
<p><em><strong>Note:</strong> Some 827 people (rough estimate, contents may have settled during shipping) have written to point out that the CSS used in the test is invalid. This is <strong>deliberate</strong>, as a means of exposing the ability of user agents to handle invalid CSS <strong>properly</strong>.</em></p>
<p><em><strong>Note:</strong> When taking the test, you should use the default settings of the browser you are testing. Changing the zoom level, minimum font size, applying a fit-to-width algorithm, or making other changes may alter the rendition of the Acid2 page without this constituting a failure in compliance.</em> (Added 21 July 2006)</p>
</blockquote>
<p>更深层次的研究放在以后吧，工作先</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Facid2-browser-test%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/acid2-browser-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>详解CSS的优先权（ZT）</title>
		<link>http://www.yuwuxing.com/the-css-priority/</link>
		<comments>http://www.yuwuxing.com/the-css-priority/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 16:28:00 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=29</guid>
		<description><![CDATA[<p>看这篇文章之前，对这个问题一直没深入研究，导致有时候遇到一些问题会很麻烦，看到这篇文章让我茅塞顿开，转帖回来保存一下以便今后复习。</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">适合自己的才是最好的——打造最适合自己习惯的reset.css</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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://www.planabc.net/2008/05/06/css_specificity/">http://www.planabc.net/2008/05/06/css_specificity/</a></p>
<p>看这篇文章之前，对这个问题一直没深入研究，导致有时候遇到一些问题会很麻烦，看到这篇文章让我茅塞顿开，转帖回来保存一下以便今后复习。</p>
<p>发现很多朋友对 CSS 的优先权不甚了解，规则很简单。需要说明的一点，如果你的样式管理需要深层判断 CSS 的优先权，更应反思自己的 CSS 代码，是否合理？是否优化？</p>
<p><a title="CSS2.1" target="_blank" href="http://www.w3.org/TR/CSS21">CSS2.1</a> 中规定了关于 CSS 规则 <a title="Calculating a selector's specificity" target="_blank" href="http://www.w3.org/TR/CSS21/cascade.html#specificity">Specificity</a>（特异性）的计算方式，用一个四位的数字串（注：CSS2 中是用三位）来表示，最后以 Specificity 的高低判断 CSS 的优先权。</p>
<p>Specificity 具体的计算规则：</p>
<ul>
<li>元素的 style 样式属性，加 1,0,0,0。</li>
<li>每个 ID 选择符（#id），加 0,1,0,0。</li>
<li>每个 class 选择符（.class）、每个属性选择符（例 [attr=&rdquo;&quot;] ）、每个伪类（例 :hover），加 0,0,1,0。</li>
<li>每个元素或伪元素（例 :firstchild）等，加 0,0,0,1。</li>
<li>其他选择符（例 全局选择符 *，子选择符 &gt;），加 0,0,0,0。</li>
</ul>
<p>最后逐位相加数字串，得到最终的 Specificity 值，按照从左到右的顺序逐位比较。</p>
<p>除了 Specificity 还有一些其他规则：</p>
<ul>
<li>!important 声明的规则高于一切，如果 !important 声明冲突，则比较优先权。</li>
<li>如果优先权一样，则按源码中&ldquo;后来者居上&rdquo;的原则。</li>
<li>由继承而得到的样式属性不参与 specificity 的计算，低于一切其他规则（例 全局选择符 * ）。</li>
</ul>
<p>范例分析：</p>
<pre><code><span class="pln">h1 </span><span class="pun"><font color="#666600">{</font></span><span class="pln">color</span><span class="pun"><font color="#666600">:</font></span><span class="pln"> red</span><span class="pun"><font color="#666600">;}</font></span><span class="pln"></span><span class="com"><font color="#880000">/* 只有一个普通元素加成，结果是 0,0,0,1 */</font></span><span class="pln">body h1 </span><span class="pun"><font color="#666600">{</font></span><span class="pln">color</span><span class="pun"><font color="#666600">:</font></span><span class="pln"> green</span><span class="pun"><font color="#666600">;}</font></span><span class="pln"></span><span class="com"><font color="#880000">/* 两个普通元素加成，结果是 0,0,0,2 */</font></span><span class="pln"></span><span class="com"><font color="#880000">/*0,0,0,1 小于 0,0,0,2 ，后者胜出*/</font></span><span class="pln">

h2</span><span class="pun"><font color="#666600">.</font></span><span class="pln">grape </span><span class="pun"><font color="#666600">{</font></span><span class="pln">color</span><span class="pun"><font color="#666600">:</font></span><span class="pln"> purple</span><span class="pun"><font color="#666600">;}</font></span><span class="pln"></span><span class="com"><font color="#880000">/* 一个普通元素、一个class选择符加成，结果是 0,0,1,1*/</font></span><span class="pln">h2 </span><span class="pun"><font color="#666600">{</font></span><span class="pln">color</span><span class="pun"><font color="#666600">:</font></span><span class="pln"> silver</span><span class="pun"><font color="#666600">;}</font></span><span class="pln"></span><span class="com"><font color="#880000">/*一个普通元素，结果是 0,0,0,1 */</font></span><span class="pln"></span><span class="com"><font color="#880000">/*0,0,1,1 大于 0,0,0,1 ，前者胜出*/</font></span><span class="pln">

html </span><span class="pun"><font color="#666600">&gt;</font></span><span class="pln"> body table tr</span><span class="pun"><font color="#666600">[</font></span><span class="pln">id</span><span class="pun"><font color="#666600">=&rdquo;</font></span><span class="pln">totals</span><span class="pun"><font color="#666600">&rdquo;]</font></span><span class="pln"> td ul </span><span class="pun"><font color="#666600">&gt;</font></span><span class="pln"> li </span><span class="pun"><font color="#666600">{</font></span><span class="pln">color</span><span class="pun"><font color="#666600">:</font></span><span class="pln"> maroon</span><span class="pun"><font color="#666600">;}</font></span><span class="pln"></span><span class="com"><font color="#880000">/* 7个普通元素、一个属性选择符、两个其他选择符（子选择符 &gt;），结果是0,0,1,7 */</font></span><span class="pln">li</span><span class="com"><font color="#880000">#answer {color: navy;}</font></span><span class="pln"></span><span class="com"><font color="#880000">/* 一个ID选择符，一个普通选择符，结果是0,1,0,1 */</font></span><span class="pln"></span><span class="com"><font color="#880000">/*0,0,1,7 小于 0,1,0,1，后者胜出*/</font></span></code></pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">适合自己的才是最好的——打造最适合自己习惯的reset.css</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/the-css-priority/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>举国同悲，一条CSS代码把网页变黑白</title>
		<link>http://www.yuwuxing.com/one-code-to-change-webpage-to-blackandwhite/</link>
		<comments>http://www.yuwuxing.com/one-code-to-change-webpage-to-blackandwhite/#comments</comments>
		<pubDate>Mon, 19 May 2008 08:05:33 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=25</guid>
		<description><![CDATA[<div class="code">html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }</div><p>加在CSS里面网页就可以变黑白的了，但是FLASH还是彩色</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">根据访问者分辨率，自动调用不同版式CSS的代码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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[<div class="code">html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }</div>
<p>加在CSS里面网页就可以变黑白的了，但是FLASH还是彩色</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">几个纯CSS菜单效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fchange-the-layout-css-for-different-resolution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">根据访问者分辨率，自动调用不同版式CSS的代码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss3-columns-attribute%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fone-code-to-change-webpage-to-blackandwhite%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS3 Columns属性研究</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/one-code-to-change-webpage-to-blackandwhite/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IETester多IE版本共存的解决方案</title>
		<link>http://www.yuwuxing.com/ietester/</link>
		<comments>http://www.yuwuxing.com/ietester/#comments</comments>
		<pubDate>Wed, 14 May 2008 07:30:34 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[ietester]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=24</guid>
		<description><![CDATA[<p><img height="316" alt="" width="546" src="/wp-content/uploads/ietester.gif" /></p><p>&#160;</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fietester-v0-44%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IETESTER V0.44强势公布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>用WEB标准设计网页最麻烦的可能就是在各浏览器里面的兼容性问题，其中IE的各版本兼容性问题又是最头疼的，多版本IE共存一直是个难题，现在好了，有了IETester，可支持支持IE5.5——IE8，可以基本满足所有这方面的需求了（IE5,IE4就算了吧。。。）截止到09年8月最新版本0.3.5已经可以支持win7了</p>
<p>下载地址：<a href="http://www.my-debugbar.com/ietester/install-ietester-v0.3.5.exe">http://www.my-debugbar.com/ietester/install-ietester-v0.3.5.exe</a></p>
<p><img src="/wp-content/uploads/ietester.gif" alt="" /></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fietester-v0-44%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IETESTER V0.44强势公布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fietester%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/ietester/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>div层总是被flash层遮盖的解决方案</title>
		<link>http://www.yuwuxing.com/flash-mask-div-solution/</link>
		<comments>http://www.yuwuxing.com/flash-mask-div-solution/#comments</comments>
		<pubDate>Fri, 09 May 2008 05:11:37 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=22</guid>
		<description><![CDATA[<p>在网页设计中经常由于客户的种种需求，而需要DIV层和FLASH的交互，但是往往DIV都被FLASH遮盖住了。以下是解决方案:</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">FLASH的外部调用SWF的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">flash中用attachMovie复制元件置于舞台的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>在网页设计中经常由于客户的种种需求，而需要DIV层和FLASH的交互，但是往往DIV都被FLASH遮盖住了。</p>
<p>过去参与的一个项目：<a href="http://www.digitalwuhan.gov.cn/index.html">http://www.digitalwuhan.gov.cn/index.html</a>（该网站问题多多就不说了，各位就不用批网站的问题了，现在只讨论本论题。）</p>
<p>顶部的flash就涉及此问题，具体是怎么解决的呢？因为今天看到有人提出此问题，就把解决方案拿出来分析一下。</p>
<h3>先看该网站的FLASH加载代码：</h3>
<blockquote><p>&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;&nbsp;codebase=&quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot;&nbsp;name=&quot;red1&quot; width=&quot;1003&quot; height=&quot;218&quot; align=&quot;middle&quot; id=&quot;red1&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;movie&quot; value=&quot;images/top_blue.swf&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #f00">&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;embed src=&quot;images/top_blue.swf&quot; quality=&quot;high&quot; <span style="color: #090">wmode=&quot;transparent&quot;</span>&nbsp;bgcolor=&quot;#ffffff&quot; width=&quot;1003&quot; height=&quot;218&quot; name=&quot;red1&quot;&nbsp;align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot;&nbsp;type=&quot;application/x-shockwave-flash&quot;&nbsp;pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;<br />&lt;/object&gt; </p></blockquote>
<p>主要起作用的就是用红色和绿色标注的这两句，其中红色的<span style="color: #f00">&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;</span>这句主要用于<strong style="color: #f00">IE</strong>下的效果实现，绿色的<span style="color: #090">wmode=&quot;transparent&quot;</span>则是<strong style="color: #090">Firefox</strong>下效果实现的代码。</p>
<h3>附加资料：</h3>
<blockquote><p><strong>关于wmode属性资料：</strong></p>
<p>（可选）允许使用 Internet Explorer 4.0 中的透明 Flash 内容、绝对定位和分层显示功能。此标记/属性仅在带有 Flash Player ActiveX 控件的 Windows 中有效。</p>
<p>&quot;Window&quot;在 Web 页上用影片自己的矩形窗口来播放应用程序。&quot;Window&quot;表明此 Flash 应用程序与 HTML 层没有任何交互，并且始终位于最顶层。</p>
<p>&quot;Opaque&quot; 使应用程序隐藏页面上位于它后面的所有内容。</p>
<p>&quot;Transparent&quot;使 HTML 页的背景可以透过应用程序的所有透明部分显示出来，并且可能会降低动画性能。</p>
<p>&quot;Opaque windowless&quot;和&quot;Transparent windowless&quot;都可与 HTML 层交互，从而允许 SWF 文件上方的层遮蔽应用程序。这两种选项之间的差异在于&quot;Transparent&quot;允许透明，因此，如果 SWF 文件的某一部分是透明的，则 SWF 文件下方的 HTML 层可以透过该部分显示出来，而&quot;opaque&quot;则不会显示。</p>
<p>如果忽略此属性，默认值为 Window。仅适用于 object。</p>
</blockquote>
<p style="color:red;">最后更新：2009-2-16</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">FLASH的外部调用SWF的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">flash中用attachMovie复制元件置于舞台的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-text-shadow%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS文字阴影效果</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/flash-mask-div-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>几个纯CSS菜单效果</title>
		<link>http://www.yuwuxing.com/only-use-css-menu/</link>
		<comments>http://www.yuwuxing.com/only-use-css-menu/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 03:38:43 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[菜单]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=20</guid>
		<description><![CDATA[<p>5个纯CSS菜单效果，没有使用JS的</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">适合自己的才是最好的——打造最适合自己习惯的reset.css</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>&nbsp;</p>
<p><a href="http://www.yuwuxing.com/wp-content/uploads/二级dropdown弹出菜单.html" target="_blank">二级dropdown弹出菜单.html</a></p>
<p><a href="http://www.yuwuxing.com/wp-content/uploads/三级dropdown弹出菜单.html" target="_blank">三级dropdown弹出菜单.html</a></p>
<p><a href="http://www.yuwuxing.com/wp-content/uploads/flyout-竖向三级弹出菜单.html" target="_blank">flyout-竖向三级弹出菜单.html</a></p>
<p><a href="http://www.yuwuxing.com/wp-content/uploads/水平三级横向弹出菜单.html" target="_blank">水平三级横向弹出菜单.html</a></p>
<p><a href="http://www.yuwuxing.com/wp-content/uploads/水平竖弹向上三级弹出菜单.html" target="_blank">水平竖弹向上三级弹出菜单.html</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fthe-css-priority%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">详解CSS的优先权（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2F20-beautiful-ajax-css-table%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">20 个漂亮的 Ajax + CSS 表格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcss-hack-collect%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS Hack 汇总快查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-sexy-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">译文:创建性感的CSS（ZT）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fbuilt-personal-reset-css%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fonly-use-css-menu%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">适合自己的才是最好的——打造最适合自己习惯的reset.css</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/only-use-css-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

