<?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>Pivot Code &#187; CSS</title>
	<atom:link href="http://www.pivotcode.com/category/web-development/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pivotcode.com</link>
	<description>欢迎来我的小思想绽放的地方……</description>
	<lastBuildDate>Thu, 26 Aug 2010 02:19:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HTML5初探——个人HTML5简历</title>
		<link>http://www.pivotcode.com/html5-resume/</link>
		<comments>http://www.pivotcode.com/html5-resume/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 03:06:34 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[fieldset]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[legend]]></category>
		<category><![CDATA[resume]]></category>

		<guid isPermaLink="false">http://www.pivotcode.com/?p=680</guid>
		<description><![CDATA[下一个WEB时代将是HTML5的?它是一场WEB的革命，因为改写了WEB的历史? 呃，关于HTML5我只使用，不说话…… HTML5被浏览器支持了有很长一段时间了，而由于我的惰性，因此只知道其中的一些标签可以用来做什么，而一直没有去实践过如何去做。 也曾经一时兴起的用dreamweaver新建一个html文档兴致勃勃的一边查阅W3C教程一边在dw里编写HTML5代码。可是当我在chrome下浏览的时候却发现页面呈现的效果简直狗屁不是!于是我怀疑chrome所说的支持HTML5会不会是一个谎言？ 后来的后来我才知道，原来是我的声明有问题！这些最基础的东西竟然被我忽略掉了，惭愧的说其实之前对于文档声明我从来都是被DW默认习惯了，因此从没有去关注过…… &#60;!DOCTYPE HTML&#62;&#60;!--HTML5声明就是这么简单--&#62; 在HTML5中增加了很多更符合语义化的标签，应用这些标签能让你在尽可能不单独定义class的情况下呈现你的布局与样式。并且需要着重再强调一次的是它更加符合语义化。如果您想了解更多关于HTML5的知识，您可以访问W3C网站的HTML5教程:http://www.w3school.com.cn/html5/ 废话少说，以下是我结合简单的HTML5标签来制作的个人简历（您需要在chrome、safari、opera、Firefox下才能正常浏览） 在这份简历中，用到的HTML5标签有 1 2 3 4 5 6 7 &#60;header&#62;&#60;/header&#62; &#60;aside&#62;&#60;/aside&#62; &#60;article&#62;&#60;/article&#62; &#60;address&#62;&#60;/address&#62; &#60;fieldset&#62; &#60;legend&#62;&#60;/legend&#62; &#60;/fieldset&#62; 需要提醒一下的是，开始我用header标签在chrome下能正常显示布局，而在firefox和opera下不能正常显示，后来才知道原来在firefox和opera下默认的header标签是行内元素而不是我期望的块级元素，于是，我们在使用之前，仍需要重置css样式。下面是我在网上找到的HTML5的css重置代码： html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>下一个WEB时代将是HTML5的?它是一场WEB的革命，因为改写了WEB的历史?<br />
呃，关于HTML5我只使用，不说话……</p></blockquote>
<p>HTML5被浏览器支持了有很长一段时间了，而由于我的惰性，因此只知道其中的一些标签可以用来做什么，而一直没有去实践过如何去做。</p>
<p>也曾经一时兴起的用dreamweaver新建一个html文档兴致勃勃的一边查阅W3C教程一边在dw里编写HTML5代码。可是当我在chrome下浏览的时候却发现页面呈现的效果简直狗屁不是!于是我怀疑chrome所说的支持HTML5会不会是一个谎言？</p>
<p>后来的后来我才知道，原来是我的声明有问题！这些最基础的东西竟然被我忽略掉了，惭愧的说其实之前对于文档声明我从来都是被DW默认习惯了，因此从没有去关注过……</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE HTML&gt;&lt;!--HTML5声明就是这么简单--&gt;</pre></div></div>

<p>在HTML5中增加了很多更符合语义化的标签，应用这些标签能让你在尽可能不单独定义class的情况下呈现你的布局与样式。并且需要着重再强调一次的是它更加符合语义化。如果您想了解更多关于HTML5的知识，您可以访问W3C网站的HTML5教程:<a href="http://www.w3school.com.cn/html5/">http://www.w3school.com.cn/html5/</a></p>
<p>废话少说，以下是我结合简单的HTML5标签来制作的个人简历（您需要在chrome、safari、opera、Firefox下才能正常浏览）</p>
<p><iframe src="http://www.pivotcode.com/resume.html" width="910" height="2200" frameborder="0"></iframe></p>
<p>在这份简历中，用到的HTML5标签有</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;header&gt;&lt;/header&gt;
&lt;aside&gt;&lt;/aside&gt;
&lt;article&gt;&lt;/article&gt;
&lt;address&gt;&lt;/address&gt;
&lt;fieldset&gt;
&lt;legend&gt;&lt;/legend&gt;
&lt;/fieldset&gt;</pre></td></tr></table></div>

<p>需要提醒一下的是，开始我用header标签在chrome下能正常显示布局，而在firefox和opera下不能正常显示，后来才知道原来在firefox和opera下默认的header标签是行内元素而不是我期望的块级元素，于是，我们在使用之前，仍需要重置css样式。下面是我在网上找到的HTML5的css重置代码：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<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> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span>
a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span>
del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span>
small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span>
b<span style="color: #00AA00;">,</span> i<span style="color: #00AA00;">,</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td<span style="color: #00AA00;">,</span>
article<span style="color: #00AA00;">,</span> aside<span style="color: #00AA00;">,</span> audio<span style="color: #00AA00;">,</span> canvas<span style="color: #00AA00;">,</span> details<span style="color: #00AA00;">,</span> figcaption<span style="color: #00AA00;">,</span>
figure<span style="color: #00AA00;">,</span> footer<span style="color: #00AA00;">,</span> header<span style="color: #00AA00;">,</span> hgroup<span style="color: #00AA00;">,</span> mark<span style="color: #00AA00;">,</span> menu<span style="color: #00AA00;">,</span> meter<span style="color: #00AA00;">,</span> nav<span style="color: #00AA00;">,</span>
output<span style="color: #00AA00;">,</span> progress<span style="color: #00AA00;">,</span> section<span style="color: #00AA00;">,</span> summary<span style="color: #00AA00;">,</span> time<span style="color: #00AA00;">,</span> video <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: #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: #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: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
article<span style="color: #00AA00;">,</span> aside<span style="color: #00AA00;">,</span> dialog<span style="color: #00AA00;">,</span> figure<span style="color: #00AA00;">,</span> footer<span style="color: #00AA00;">,</span> header<span style="color: #00AA00;">,</span>
hgroup<span style="color: #00AA00;">,</span> nav<span style="color: #00AA00;">,</span> section<span style="color: #00AA00;">,</span> blockquote <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
nav 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>
&nbsp;
ol <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;">decimal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
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;">disc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul 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;">circle</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
blockquote<span style="color: #00AA00;">,</span> q <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">quotes</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
blockquote<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> blockquote<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span>
q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">''</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ins <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
del <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">line-through</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
mark <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
abbr<span style="color: #00AA00;">&#91;</span>title<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">&#91;</span>title<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">help</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* tables still need 'cellspacing=&quot;0&quot;' in the markup */</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>
&nbsp;
hr <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</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>
&nbsp;
input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> button <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
input<span style="color: #00AA00;">,</span> select<span style="color: #00AA00;">,</span> a img <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">middle</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h2>简历HTML部分</h2>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt; 
&lt;title&gt;刘铭森的个人简历&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;fieldset class=&quot;mt10 mb10&quot;&gt;
&lt;legend&gt;个人简历&lt;/legend&gt;
&lt;header class=&quot;clearfix&quot;&gt;
	&lt;aside&gt;&lt;img src=&quot;http://www.pivotcode.com/wp-content/uploads/2010/07/mingsenliu.jpg&quot;&gt;&lt;/aside&gt;
	&lt;h1&gt;刘铭森&lt;/h1&gt;
	&lt;h2&gt;- 前端开发 &lt;a href=&quot;http://www.pivotcode.com&quot; target=&quot;_blank&quot; title=&quot;前端开发技术博客&quot;&gt;http://www.pivotcode.com&lt;/a&gt;&lt;/h2&gt;
	&lt;h2&gt;- 摄影 &lt;a href=&quot;http://photo.mingsenliu.com&quot; target=&quot;_blank&quot; title=&quot;摄影博客&quot;&gt;http://photo.mingsenliu.com&lt;/a&gt;&lt;/h2&gt;
	&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
&lt;/header&gt;
&lt;article&gt;
	&lt;fieldset&gt;
	&lt;legend&gt;职能&lt;/legend&gt;
&nbsp;
		&lt;ol&gt;
			&lt;li&gt;精练使用&lt;abbr title=&quot;EXtensible HyperText Markup Language&quot;&gt;xHTML&lt;/abbr&gt;、&lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/abbr&gt;规范代码，兼容主流浏览器（包括IE6）&lt;/li&gt;
			&lt;li&gt;熟用javascript动态&lt;abbr title=&quot;Dynamic Hypertext Marked Language&quot;&gt;DHTML&lt;/abbr&gt;效果实现,兼容主流浏览器&lt;/li&gt;
			&lt;li&gt;有学习与实践 &lt;abbr title=&quot;HyperText Markup Language&quot;&gt;HTML5&lt;/abbr&gt; 与 &lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS3&lt;/abbr&gt; 前沿技术经验&lt;/li&gt;
			&lt;li&gt;熟用jQuery代码库，了解YUI,Ajax&lt;/li&gt;
			&lt;li&gt;精练Photoshop切图与效果实现，会用flash制作简单动画，对ActionScript有所了解&lt;/li&gt;
			&lt;li&gt;对php,sql的后台实现有所了解，对php代码有所研究，会应用前端技术嵌套PHP代码制作Wordpress模板&lt;/li&gt;
			&lt;li&gt;翻唱某些歌不走调，而且唱得还可以&lt;/li&gt;
			&lt;li&gt;会用单反相机拍摄点不影响对方形象的照片&lt;/li&gt;
		&lt;/ol&gt;
&nbsp;
	&lt;/fieldset&gt;
	&lt;fieldset&gt;
	&lt;legend&gt;工作能力&lt;/legend&gt;
&nbsp;
		&lt;ol&gt;
			&lt;li&gt;懂得如何协作和怎样协作才可以以同样的时间获得更高的效率&lt;/li&gt;
			&lt;li&gt;编写代码的质量和效率高&lt;/li&gt;
			&lt;li&gt;懂得如何优化网站性能与&lt;abbr title=&quot;search engine optimization&quot;&gt;SEO&lt;/abbr&gt;&lt;/li&gt;
			&lt;li&gt;接触过很多项目，有丰富的web2.0网站前端开发经验&lt;/li&gt;
			&lt;li&gt;对用户体验和产品交互有自己的认识，同时也了解用户的使用习惯&lt;/li&gt;
			&lt;li&gt;学习能力能适应开发和业务需求，需要什么就能学什么并且学会学好&lt;/li&gt;
			&lt;li&gt;不会吸烟，不污染办公室环境&lt;/li&gt;
		&lt;/ol&gt;
&nbsp;
	&lt;/fieldset&gt;
	&lt;fieldset&gt;
	&lt;legend&gt;工作经验&lt;/legend&gt;
&nbsp;
		&lt;dl&gt;
			&lt;dt&gt;2009.11--今 &lt;a href=&quot;http://www.yeeyan.org&quot; target=&quot;_blank&quot;&gt;北京译言协力传媒科技有限公司&lt;/a&gt;&lt;/dt&gt;
			&lt;dd&gt;·&lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/abbr&gt;与&lt;abbr title=&quot;EXtensible HyperText Markup Language&quot;&gt;xHTML&lt;/abbr&gt;页面重构与体验优化&lt;/dd&gt;
			&lt;dd&gt;·Javascript动态效果实现(结合jQuery)&lt;/dd&gt;
			&lt;dd&gt;·兼部分页面设计与广告Banner设计&lt;/dd&gt;
			&lt;dt&gt;2009.3--今(兼职) &lt;a href=&quot;http://www.internetsolutionz.com&quot; target=&quot;_blank&quot;&gt;Internet Solutionz Inc.&lt;/a&gt;&lt;/dt&gt;
			&lt;dd&gt;·公司网站设计与切图&lt;/dd&gt;
			&lt;dd&gt;·公司的网页重构项目参与（&lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/abbr&gt; &amp;amp; &lt;abbr title=&quot;EXtensible HyperText Markup Language&quot;&gt;xHTML&lt;/abbr&gt;）&lt;/dd&gt;
			&lt;dd&gt;·公司项目Javascript动态效果实现(结合jQuery)&lt;/dd&gt;
			&lt;dd&gt;·公司宣传Banner与VI设计&lt;/dd&gt;
			&lt;dt&gt;2008.10--2009.3 &lt;a href=&quot;http://www.liaoru.com&quot; target=&quot;_blank&quot;&gt;北京了如科技有限公司&lt;/a&gt;&lt;/dt&gt;
			&lt;dd&gt;·负责旗下品牌房友圈网站的页面重构（&lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/abbr&gt; &amp;amp; &lt;abbr title=&quot;EXtensible HyperText Markup Language&quot;&gt;xHTML&lt;/abbr&gt;）&lt;/dd&gt;
			&lt;dd&gt;·负责部分页面与企业VI设计&lt;/dd&gt;
			&lt;dt&gt;参与网站项目 &lt;a href=&quot;http://www.joboto.com&quot; target=&quot;_blank&quot;&gt;周伯通互动招聘社区&lt;/a&gt;&lt;/dt&gt;
			&lt;dd&gt;·&lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/abbr&gt;与&lt;abbr title=&quot;EXtensible HyperText Markup Language&quot;&gt;xHTML&lt;/abbr&gt;页面重构&lt;/dd&gt;
			&lt;dd&gt;·Javascript动态效果实现(结合jQuery)&lt;/dd&gt;
		&lt;/dl&gt;
&nbsp;
	&lt;/fieldset&gt;
	&lt;fieldset&gt;
	&lt;legend&gt;您可能还想知道的&lt;/legend&gt;
&nbsp;
		&lt;dl&gt;
			&lt;dt&gt;习惯的开发环境&lt;/dt&gt;
			&lt;dd&gt;·&lt;abbr title=&quot;windows Apache MySql PHP&quot;&gt;WAMP&lt;/abbr&gt; &amp; Aptana &amp; FireBug&lt;/dd&gt;
			&lt;dd&gt;·&lt;abbr title=&quot;windows Apache MySql PHP&quot;&gt;WAMP&lt;/abbr&gt; &amp; Dreamweaver &amp; FireBug&lt;/dd&gt;
			&lt;dd&gt;·&lt;abbr title=&quot;windows Apache MySql PHP&quot;&gt;WAMP&lt;/abbr&gt; &amp; EditPlus &amp; FireBug&lt;/dd&gt;
			&lt;dt&gt;习惯的测试环境&lt;/dt&gt;
			&lt;dd&gt;Windows 7 + FireFox &amp; Chrome &amp;  &amp;amp; Opera &amp;amp; IE8 &amp; IE Tester&lt;/dd&gt;
			&lt;dt&gt;学历&lt;/dt&gt;
			&lt;dd&gt;·6年级开始学画画，高中开始不好好学习，现在开始后悔&lt;/dd&gt;
			&lt;dd&gt;·故目前学历只有中专（天津精通学院计算机专业）&lt;/dd&gt;
			&lt;dt&gt;语言能力&lt;/dt&gt;
			&lt;dd&gt;·一口掺杂着河北保定方言的汉语普通话&lt;/dd&gt;
			&lt;dd&gt;·一般的英语读写能力（在不断学习和积累的路上）&lt;/dd&gt;
			&lt;dd&gt;·看不懂和听不懂的其他语言能力&lt;/dd&gt;
			&lt;dt&gt;我在读的书&lt;/dt&gt;
			&lt;dd&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.douban.com/service/badge/mingsenliu/?show=dolist&amp;amp;n=20&amp;amp;columns=10&amp;amp;hideself=yes&amp;amp;cat=book&quot; &gt;&lt;/script&gt;&lt;/dd&gt;
			&lt;dt&gt;我读过的书（不完全统计）&lt;/dt&gt;
			&lt;dd&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.douban.com/service/badge/mingsenliu/?show=collection&amp;amp;n=20&amp;amp;columns=10&amp;amp;hideself=yes&amp;amp;cat=book&quot; &gt;&lt;/script&gt;&lt;/dd&gt;
		&lt;/dl&gt;
&nbsp;
	&lt;/fieldset&gt;
&nbsp;
	&lt;fieldset&gt;
	&lt;legend&gt;如果以上信息没让您失望&lt;/legend&gt;
		&lt;address&gt;
			&lt;ul&gt;
				&lt;li&gt;手机：&lt;span&gt;15101123812&lt;/span&gt;&lt;/li&gt;
				&lt;li&gt;E-mail &amp; Gtalk : &lt;span&gt;mingsenliu@gmail.com&lt;/span&gt;&lt;/li&gt;
				&lt;li&gt;QQ &amp; MSN : &lt;span&gt;mingsenliu@msn.com&lt;/span&gt;&lt;/li&gt;
				&lt;li&gt;个人网站：&lt;span&gt;&lt;a href=&quot;http://www.pivotcode.com&quot; target=&quot;_blank&quot;&gt;http://www.pivotcode.com&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
				&lt;li&gt;现住址：&lt;span&gt;北京市朝阳区水锥子社区5号楼209室&lt;/span&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/address&gt;
	&lt;/fieldset&gt;
&lt;/article&gt;
&lt;/fieldset&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<h2>简历CSS部分</h2>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">fieldset<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">880px</span><span style="color: #00AA00;">;</span>margin<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#E0E7F1</span><span style="color: #00AA00;">;</span>box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#E0E7F1</span><span style="color: #00AA00;">;</span>-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#E0E7F1</span><span style="color: #00AA00;">&#125;</span>
fieldset fieldset<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>margin-<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
legend<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>text-align<span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">&#125;</span>
fieldset fieldset legend<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;">&#125;</span>
header<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">840px</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>background<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E0E7F1</span><span style="color: #00AA00;">;</span>margin-<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
header h1<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;">26px</span><span style="color: #00AA00;">;</span>color<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#036</span><span style="color: #00AA00;">;</span>margin-<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
header h2<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;">14px</span><span style="color: #00AA00;">;</span>color<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#36C</span><span style="color: #00AA00;">;</span>line-<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
header aside<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>float<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>background<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>border<span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">&#125;</span>
header aside img<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
article h2<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>margin-<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
article ol<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>list-style<span style="color: #00AA00;">:</span><span style="color: #993333;">decimal</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
article ol li<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
article dl<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>line-<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
article dl dt<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">&#125;</span>
article dl dd<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
address 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;">square</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>margin-<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>font-family<span style="color: #00AA00;">:</span>Georgia<span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot;simhei&quot;</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">&#125;</span>
address ul li<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
address ul li span<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#06C</span><span style="color: #00AA00;">;</span>font-style<span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>由简历的源代码可见，结构完全摆脱掉了class样式的依赖。对于HTML5你心动了吗？</p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/css-please/" title="CSS3兼容代码生成器——css-please">CSS3兼容代码生成器——css-please</a></li><li><a href="http://www.pivotcode.com/css-rename/" title="css命名规则">css命名规则</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/html5-resume/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CSS结合单图定位制作的一个漂亮的投票应用</title>
		<link>http://www.pivotcode.com/cssimg-position-vote/</link>
		<comments>http://www.pivotcode.com/cssimg-position-vote/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 07:49:05 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[vote]]></category>
		<category><![CDATA[投票]]></category>

		<guid isPermaLink="false">http://www.pivotcode.com/?p=498</guid>
		<description><![CDATA[这个投票代码是我在很早以前做项目时完成的，今天在新的工作中又用到了投票功能，于是我就把上个项目做的东西拿出来做了简单的优化，以便让这个代码更好的扩展和移植。 投票功能在实际应用中的关键在于：需要用百分比控制显示条的长度，之所以使用百分比是用来配合程序分配相应的值来实现投票比率均分的显示效果。 在这个应用里，为了更好的利用图像表现进度条的显示，用到了很多标签，然后对标签进行排列控制长度得到了最终的效果. DEMO: 以下是CSS代码： @charset &#34;utf-8&#34;; /* CSS Document */ *&#123;margin:0;padding:0&#125; .voteInfo&#123; width:550px; padding-top:10px; float:left; &#125; .voteInfo span&#123; display:block; color:#999; height:20px; line-height:20px; &#125; .voteInfo span em&#123;float:right; color:#F00;&#125; .voteInfo h1&#123; font-size:16px; height:30px; line-height:30px; color:#005FAB; font-weight:bold; text-align:center; margin-top:20px;&#125; .voteInfo ul&#123; width:486px; list-style:none; margin:0 auto &#125; .voteInfo ul p&#123; font-size:12px; color:#999; line-height:18px; &#125; .voteInfo ul li&#123; height:20px; [...]]]></description>
			<content:encoded><![CDATA[<p>这个投票代码是我在很早以前做项目时完成的，今天在新的工作中又用到了投票功能，于是我就把上个项目做的东西拿出来做了简单的优化，以便让这个代码更好的扩展和移植。</p>
<p>投票功能在实际应用中的关键在于：需要用百分比控制显示条的长度，之所以使用百分比是用来配合程序分配相应的值来实现投票比率均分的显示效果。</p>
<p>在这个应用里，为了更好的利用图像表现进度条的显示，用到了很多标签，然后对标签进行排列控制长度得到了最终的效果.</p>
<p>DEMO:</p>
<p><iframe frameborder='0' width='550' height='360' src='http://www.pivotcode.com/demo/vote.html'></iframe></p>
<p>以下是CSS代码：<br />
<span id="more-498"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@charset &quot;utf-8&quot;;</span>
<span style="color: #808080; font-style: italic;">/* CSS Document */</span>
<span style="color: #00AA00;">*</span><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>padding<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#125;</span>
.voteInfo<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">550px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> span em<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#F00</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> h1<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;">16px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#005FAB</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;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">486px</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul p<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;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteClassName</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>padding-<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>text-align<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">186px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">186px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em h6<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">184px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote1</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote2</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-20px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote3</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote4</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote5</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote6</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote7</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote8</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-140px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote9</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-160px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em i<span style="color: #6666ff;">.vote10</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-180px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg1</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg2</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg3</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg4</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg5</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg6</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-100px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg7</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg8</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-140px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg9</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-160px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteDataLength</span> em b<span style="color: #6666ff;">.votebg10</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/poll.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-180px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteNumber</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>padding-<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteRedio</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.voteInfo</span> ul li span<span style="color: #6666ff;">.voteSubmitBtm</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>以下是html代码：</p>
<blockquote><p>需要注意的是，进度条的长度一定要用百分比的内联样式，这样才能方便程序对这个数值动态控制</p></blockquote>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&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;title&gt;CSS实现的投票效果&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/vote.css&quot; /&gt;
&lt;/head&gt;
&nbsp;
&lt;body&gt;
&lt;div class=&quot;voteInfo&quot;&gt;
    &lt;h1&gt;投票标题&lt;/h1&gt;
    &lt;ul&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目1:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote1&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg1&quot; style=&quot;width:100%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;&lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;100%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目2:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote2&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg2&quot; style=&quot;width:90%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;90%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目3:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote3&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg3&quot; style=&quot;width:80%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;80%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目4:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote4&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg4&quot; style=&quot;width:70%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;70%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目5:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote5&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg5&quot; style=&quot;width:60%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;60%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目6:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote6&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg6&quot; style=&quot;width:50%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;50%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目7:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote7&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg7&quot; style=&quot;width:40%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;40%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目8:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote8&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg8&quot; style=&quot;width:30%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;30%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目9:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote9&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg9&quot; style=&quot;width:20%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;20%&lt;/span&gt;
    &lt;/li&gt;
    &lt;li&gt;
    &lt;span class=&quot;voteClassName&quot;&gt;项目10:&lt;/span&gt;
    &lt;span class=&quot;voteDataLength&quot;&gt;&lt;em&gt;&lt;i class=&quot;vote10&quot;&gt;&lt;/i&gt;
    &lt;h6&gt;&lt;b class=&quot;votebg10&quot; style=&quot;width:10%;&quot;&gt;&lt;/b&gt;&lt;/h6&gt;
    &lt;/em&gt;&lt;/span&gt;
    &lt;span class=&quot;voteNumber&quot;&gt;10%&lt;/span&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>至此，所有代码都在这里了，由于为了更好的表现因此代码嵌套的比较多也比较复杂，因此如果不特别追求效果的话，可以直接用背景色代替，进而获得更精简的代码。</p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/css-please/" title="CSS3兼容代码生成器——css-please">CSS3兼容代码生成器——css-please</a></li><li><a href="http://www.pivotcode.com/css-reset/" title="CSS重构（CSS Reset）">CSS重构（CSS Reset）</a></li><li><a href="http://www.pivotcode.com/css-five-common-functions/" title="CSS五个常见却不常用的属性">CSS五个常见却不常用的属性</a></li><li><a href="http://www.pivotcode.com/css-rename/" title="css命名规则">css命名规则</a></li><li><a href="http://www.pivotcode.com/css-text-shadow/" title="css文字阴影">css文字阴影</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/cssimg-position-vote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3兼容代码生成器——css-please</title>
		<link>http://www.pivotcode.com/css-please/</link>
		<comments>http://www.pivotcode.com/css-please/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 04:51:04 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[css please]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[兼容]]></category>
		<category><![CDATA[跨浏览器]]></category>

		<guid isPermaLink="false">http://www.pivotcode.com/?p=485</guid>
		<description><![CDATA[CSS3和HTML5是web技术发展以来的又一次革命，然而如今的浏览器都不能完全的支持CSS3，有些浏览器则是通过自己的特有属性来支持部分CSS3的属性。更可气的是，占有浏览器最多份额的IE对CSS3的支持更是捉襟见肘，不过好在微软官方提供了一些特有滤镜来填补这些技术空白，然而这些特有属性对于我们前段开发人员来说不便于记忆，于是我们就需要用到这个网站来帮我们生成跨浏览器的CSS3属性了。 CSS Please是一个在线生成跨浏览器的CSS3代码生成器，通过它可以生成已支持CSS3属性的浏览器兼容性代码。 以下是我整理的中文翻译版本： 地址：http://www.pivotcode.com/demo/css3compatibility/css3compatibility.html 示例： 这是英文原版地址：http://css3please.com 此程序参考源来自《前段观察》：http://www.qianduan.net/css3-please.html 相关日志HTML5初探——个人HTML5简历CSS结合单图定位制作的一个漂亮的投票应用CSS重构（CSS Reset）CSS五个常见却不常用的属性css命名规则]]></description>
			<content:encoded><![CDATA[<p>CSS3和HTML5是web技术发展以来的又一次革命，然而如今的浏览器都不能完全的支持CSS3，有些浏览器则是通过自己的特有属性来支持部分CSS3的属性。更可气的是，占有浏览器最多份额的IE对CSS3的支持更是捉襟见肘，不过好在微软官方提供了一些特有滤镜来填补这些技术空白，然而这些特有属性对于我们前段开发人员来说不便于记忆，于是我们就需要用到这个网站来帮我们生成跨浏览器的CSS3属性了。</p>
<p>CSS Please是一个在线生成跨浏览器的CSS3代码生成器，通过它可以生成已支持CSS3属性的浏览器兼容性代码。</p>
<p>以下是我整理的中文翻译版本：</p>
<p>地址：<a href='http://www.pivotcode.com/demo/css3compatibility/css3compatibility.html' target='_blank'>http://www.pivotcode.com/demo/css3compatibility/css3compatibility.html</a><br />
示例：<br />
<iframe width='800' height='800' src='http://www.pivotcode.com/demo/css3compatibility/css3compatibility.html'></iframe></p>
<p>这是英文原版地址：<a href='http://css3please.com' target='_blank'>http://css3please.com</a></p>
<p>此程序参考源来自《前段观察》：<a href='http://www.qianduan.net/css3-please.html' target='_blank'>http://www.qianduan.net/css3-please.html</a></p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/html5-resume/" title="HTML5初探——个人HTML5简历">HTML5初探——个人HTML5简历</a></li><li><a href="http://www.pivotcode.com/cssimg-position-vote/" title="CSS结合单图定位制作的一个漂亮的投票应用">CSS结合单图定位制作的一个漂亮的投票应用</a></li><li><a href="http://www.pivotcode.com/css-reset/" title="CSS重构（CSS Reset）">CSS重构（CSS Reset）</a></li><li><a href="http://www.pivotcode.com/css-five-common-functions/" title="CSS五个常见却不常用的属性">CSS五个常见却不常用的属性</a></li><li><a href="http://www.pivotcode.com/css-rename/" title="css命名规则">css命名规则</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/css-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS重构（CSS Reset）</title>
		<link>http://www.pivotcode.com/css-reset/</link>
		<comments>http://www.pivotcode.com/css-reset/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 04:46:53 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[CSS Reset]]></category>
		<category><![CDATA[CSS重构]]></category>
		<category><![CDATA[博客园]]></category>

		<guid isPermaLink="false">http://www.pivotcode.com/?p=480</guid>
		<description><![CDATA[顾名思义，css重构就是重设浏览器的表现样式。为什么要重构呢？因为浏览器样式在不同的浏览器渲染下的默认显示各有不同，为了我们在开发中能够让项目在所有浏览器下的显示效果是一样的，所以在开发之前我们要按照自己习惯的方式来重构CSS代码。 那么我们需要怎样的习惯呢？这个还是要靠自己在项目中积累了。以前我在初学时也是复制别人的CSS Reset代码，然后再进行自己的项目，可是有的时候我发现有些没必要重构的样式在之前重构掉了，在单独到一个样式定义时，我还需要给他重新写上，而且，在不同的项目下的重构样式也会各不相同，例如一个图片网站和一个博客网站。因此，我往往都是简单的重构一些必须的样式，后期用到需要重构的额外再写，因此我的习惯就是随用随加。 今天在博客园里看到了一篇文章中的十个重构的例子。接下来就是剽窃的内容了： 一、Generic Reset CSS * &#123; padding: 0; margin: 0; border: 0; &#125; 这也是一款CSS Reset的方法，让所有的选择器的padding、margin和border都设置成0。这是一种强大的方法，也是最简单，最安全的方法，不过，也是最占用资源的方法。对于小型的网站来说，用这个并不会带来大的资源浪费，但如果是像Yahoo这种架构非常大的网站，刚需要有选择地进行CSS重设，以减少资源浪费。 二、Ateneu Popular CSS Reset html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, [...]]]></description>
			<content:encoded><![CDATA[<p>顾名思义，css重构就是重设浏览器的表现样式。为什么要重构呢？因为浏览器样式在不同的浏览器渲染下的默认显示各有不同，为了我们在开发中能够让项目在所有浏览器下的显示效果是一样的，所以在开发之前我们要按照自己习惯的方式来重构CSS代码。</p>
<p>那么我们需要怎样的习惯呢？这个还是要靠自己在项目中积累了。以前我在初学时也是复制别人的CSS Reset代码，然后再进行自己的项目，可是有的时候我发现有些没必要重构的样式在之前重构掉了，在单独到一个样式定义时，我还需要给他重新写上，而且，在不同的项目下的重构样式也会各不相同，例如一个图片网站和一个博客网站。因此，我往往都是简单的重构一些必须的样式，后期用到需要重构的额外再写，因此我的习惯就是随用随加。</p>
<p>今天在博客园里看到了一篇文章中的十个重构的例子。接下来就是剽窃的内容了：</p>
<p>一、Generic Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</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: #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;">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></div></div>

<blockquote><p>这也是一款CSS Reset的方法，让所有的选择器的padding、margin和border都设置成0。这是一种强大的方法，也是最简单，最安全的方法，不过，也是最占用资源的方法。对于小型的网站来说，用这个并不会带来大的资源浪费，但如果是像Yahoo这种架构非常大的网站，刚需要有选择地进行CSS重设，以减少资源浪费。
</p></blockquote>
<p>二、Ateneu Popular CSS Reset</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<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> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span>
address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span>
kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span>
var<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span>
table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<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: #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: #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: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</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>
a<span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</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;">separate</span><span style="color: #00AA00;">;</span>border-spacing<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
th<span style="color: #00AA00;">,</span> td <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>
img<span style="color: #00AA00;">,</span> iframe <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</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>
input<span style="color: #00AA00;">,</span> textarea<span style="color: #00AA00;">,</span> select<span style="color: #00AA00;">,</span> button <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;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>font-family<span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
select <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
hr <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>padding<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>border<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>color<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>background-<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>三、Chris Poteet’s Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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: #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: #00AA00;">&#125;</span>
body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</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;">,</span> p<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> dl <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
li<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> blockquote <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</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></pre></div></div>

<p>四、Yahoo’s CSS Reset</p>

<div class="wp_syntax"><div 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>pre<span style="color: #00AA00;">,</span>
form<span style="color: #00AA00;">,</span>fieldset<span style="color: #00AA00;">,</span>input<span style="color: #00AA00;">,</span>textarea<span style="color: #00AA00;">,</span>p<span style="color: #00AA00;">,</span>blockquote<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;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</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: #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>
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>
address<span style="color: #00AA00;">,</span>caption<span style="color: #00AA00;">,</span>cite<span style="color: #00AA00;">,</span>code<span style="color: #00AA00;">,</span>dfn<span style="color: #00AA00;">,</span>em<span style="color: #00AA00;">,</span>strong<span style="color: #00AA00;">,</span>th<span style="color: #00AA00;">,</span>var <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</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>
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: #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-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span>q<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span>”<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
abbr<span style="color: #00AA00;">,</span>acronym <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></div></div>

<p>五、Eric Meyer Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<span style="color: #00AA00;">,</span> table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span>
tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span>
kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<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> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span>
acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span>
fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</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;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</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: #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: #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;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</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>
body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</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;">separate</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;">,</span> td <span style="color: #00AA00;">&#123;</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: #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: #00AA00;">&#125;</span>
blockquote<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> blockquote<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> “”<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
blockquote<span style="color: #00AA00;">,</span> q <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">quotes</span><span style="color: #00AA00;">:</span> “” “”<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>六、Tantek Celik Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span><span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span> <span style="color: #00AA00;">&#125;</span>
ul<span style="color: #00AA00;">,</span>ol <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;">&#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;">,</span>pre<span style="color: #00AA00;">,</span>code <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;">1em</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</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>pre<span style="color: #00AA00;">,</span>form<span style="color: #00AA00;">,</span>body<span style="color: #00AA00;">,</span>html<span style="color: #00AA00;">,</span>p<span style="color: #00AA00;">,</span>blockquote<span style="color: #00AA00;">,</span>fieldset<span style="color: #00AA00;">,</span>input
<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;">&#125;</span>
a img<span style="color: #00AA00;">,</span><span style="color: #3333ff;">:link </span>img<span style="color: #00AA00;">,</span><span style="color: #3333ff;">:visited </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: #993333;">none</span> <span style="color: #00AA00;">&#125;</span>
address <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>七、Christian Montoya Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> fieldset <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: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span>/<span style="color: #933;"><span style="color: #cc66cc;">120</span>%</span> Verdana<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</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;">,</span> p<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span>
blockquote<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> address <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</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>
li<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> blockquote <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
form label <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
fieldset <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
input<span style="color: #00AA00;">,</span> select<span style="color: #00AA00;">,</span> textarea <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;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>八、Rudeworks Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <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: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
html <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">62.5</span>%</span> “Lucida Grande”<span style="color: #00AA00;">,</span> Lucida<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</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: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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;">,</span> p<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span>
blockquote<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> address <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1em</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
cite<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> dfn <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
sup <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.3em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
sub <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-0.2em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
li<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> blockquote <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
code<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'text'</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> textarea <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;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> monaco<span style="color: #00AA00;">,</span> “Lucida Console”<span style="color: #00AA00;">,</span> courier<span style="color: #00AA00;">,</span> mono-space<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
del <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">line-through</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ins<span style="color: #00AA00;">,</span> dfn <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
small<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> sub <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;"><span style="color: #cc66cc;">85</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
abbr<span style="color: #00AA00;">,</span> acronym <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">85</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">letter-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.1em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">dotted</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a abbr<span style="color: #00AA00;">,</span> a acronym <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
sup <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">super</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
sub <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> sub<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h1 <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;">2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h2 <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;">1.8em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h3 <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;">1.6em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h4 <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;">1.4em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h5 <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;">1.2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</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;">1em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:active </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: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a img <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</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: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
label<span style="color: #00AA00;">,</span> button <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
input<span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> select<span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> textarea<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
fieldset <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.clear</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.float-left</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.float-right</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#wrapper</span> <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: #993333;">auto</span><span style="color: #00AA00;">;</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: #00AA00;">&#125;</span></pre></div></div>

<p>九、Anieto2K Reset CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<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> p<span style="color: #00AA00;">,</span>
blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span>
cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span>
ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span>
strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span>
fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span>
table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td<span style="color: #00AA00;">,</span>
<span style="color: #993333;">center</span><span style="color: #00AA00;">,</span> u<span style="color: #00AA00;">,</span> b<span style="color: #00AA00;">,</span> i <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: #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: #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: #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: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span>
<span style="color: #00AA00;">&#125;</span>
body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</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;">&#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;">&#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;">&#125;</span>
blockquote<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> blockquote<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> “”
<span style="color: #00AA00;">&#125;</span>
blockquote<span style="color: #00AA00;">,</span> q <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">quotes</span><span style="color: #00AA00;">:</span> “” “”
<span style="color: #00AA00;">&#125;</span>
input<span style="color: #00AA00;">,</span> textarea <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;">&#125;</span>
hr <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: #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: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>十、CSSLab CSS Reset</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<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> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span>
big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span>
small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span>
fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span> table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span>
thead<span style="color: #00AA00;">,</span> tr<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: #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: #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: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</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>
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;">separate</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;">,</span> td <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>
a img<span style="color: #00AA00;">,</span> iframe <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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>
input<span style="color: #00AA00;">,</span> textarea<span style="color: #00AA00;">,</span> select<span style="color: #00AA00;">,</span> button <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;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
select <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Fixes incorrect placement of numbers in ol’s in IE6/7 */</span>
ol <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* == clearfix == */</span>
<span style="color: #6666ff;">.clearfix</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> “.”<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.clearfix</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.clearfix</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">1</span>%</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.clearfix</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>以上方法大同小异，需求不同因而方法不同，一个好的重构代码是即能达到自己想使用的效果，又能提高自己的效率，更能节省不必要浪费的资源，还可以节省不必要浪费的代码，这才是重构最终要实现的目的。</p>
<p>部分代码转自：博客园 &#8211; 基于B/S模式的设计与开发</p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/cssimg-position-vote/" title="CSS结合单图定位制作的一个漂亮的投票应用">CSS结合单图定位制作的一个漂亮的投票应用</a></li><li><a href="http://www.pivotcode.com/css-please/" title="CSS3兼容代码生成器——css-please">CSS3兼容代码生成器——css-please</a></li><li><a href="http://www.pivotcode.com/css-five-common-functions/" title="CSS五个常见却不常用的属性">CSS五个常见却不常用的属性</a></li><li><a href="http://www.pivotcode.com/css-rename/" title="css命名规则">css命名规则</a></li><li><a href="http://www.pivotcode.com/css-text-shadow/" title="css文字阴影">css文字阴影</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/css-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS五个常见却不常用的属性</title>
		<link>http://www.pivotcode.com/css-five-common-functions/</link>
		<comments>http://www.pivotcode.com/css-five-common-functions/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 02:42:50 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[!important]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[clip]]></category>
		<category><![CDATA[Common]]></category>
		<category><![CDATA[Cursor]]></category>
		<category><![CDATA[Display]]></category>
		<category><![CDATA[IE6 hack]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[min]]></category>
		<category><![CDATA[min-height]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[White-space]]></category>
		<category><![CDATA[属性]]></category>

		<guid isPermaLink="false">http://www.pivotcode.com/?p=465</guid>
		<description><![CDATA[这篇文章介绍了 5 个实用的 CSS 属性。你应该很熟悉，但很可能很少会使用到。我并不是在谈论展望全新的 CSS3 属性，我指的是旧的 CSS2 中的属性，如：clip，min-height，white-space，curosr 和 display 等一些被所有浏览器广泛支持的属性。因此，千万不要错过这篇文章，因为你可能发现它们竟有如此之大的用途。 1、CSS Clip 剪辑 (clip) 属性就像一个面具。它允许你使用矩形掩盖页面元素的内容。要剪辑一个元素：你必须指定其 position 属性为 absolute，然后指定相对于元素的 top，right，bottom，left 值。 图片剪辑实例 以下示例演示了如何使用 clip 属性掩盖一张图片。首先，指定 &#60;div&#62; 元素为 position:relative，然后指定 &#60;img&#62; 元素为 position:absolute，并且根据实际需要设定 rect 值。 .clip &#123; position: relative; height: 130px; width: 200px; border: solid 1px #ccc; &#125; .clip img &#123; position: absolute; clip: rect&#40;30px 165px [...]]]></description>
			<content:encoded><![CDATA[<p>这篇文章介绍了 5 个实用的 CSS 属性。你应该很熟悉，但很可能很少会使用到。我并不是在谈论展望全新的 CSS3 属性，我指的是旧的 CSS2 中的属性，如：clip，min-height，white-space，curosr 和 display 等一些被所有浏览器广泛支持的属性。因此，千万不要错过这篇文章，因为你可能发现它们竟有如此之大的用途。</p>
<p>1、CSS Clip</p>
<p>剪辑 (clip) 属性就像一个面具。它允许你使用矩形掩盖页面元素的内容。要剪辑一个元素：你必须指定其 position 属性为 absolute，然后指定相对于元素的 top，right，bottom，left 值。</p>
<p style="text-align: center;"><a href="http://www.pivotcode.com/wp-content/uploads/2010/03/01.gif"><img class="size-full wp-image-466 aligncenter" title="01" src="http://www.pivotcode.com/wp-content/uploads/2010/03/01.gif" alt="" width="470" height="349" /></a></p>
<p><strong>图片剪辑实例</strong></p>
<p>以下示例演示了如何使用 clip 属性掩盖一张图片。首先，指定 &lt;div&gt; 元素为 position:relative，然后指定 &lt;img&gt; 元素为 position:absolute，并且根据实际需要设定 rect 值。</p>
<p style="text-align: center;"><a href="http://www.pivotcode.com/wp-content/uploads/2010/03/02.gif"><img class="size-full wp-image-467 aligncenter" title="02" src="http://www.pivotcode.com/wp-content/uploads/2010/03/02.gif" alt="" width="470" height="219" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.clip</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">130px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.clip</span> img <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">clip</span><span style="color: #00AA00;">:</span> rect<span style="color: #00AA00;">&#40;</span><span style="color: #933;">30px</span> <span style="color: #933;">165px</span> <span style="color: #933;">100px</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>图像调整尺寸和剪辑</p>
<p>在这个示例中，我将展示如何调整图像尺寸和剪辑图片。素材图片是矩形的，我想将其削减至 50％的尺寸，用来创建一个正方形格式的缩略图。因此，我用宽度和高度属性来调整图像，并使用 clip 剪辑属性予以掩盖。然后用 left 属性将图片移开左侧 15px 的距离。</p>
<p style="text-align: center;"><a href="http://www.pivotcode.com/wp-content/uploads/2010/03/03.gif"><img class="size-full wp-image-468 aligncenter" title="03" src="http://www.pivotcode.com/wp-content/uploads/2010/03/03.gif" alt="" width="470" height="422" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.gallery</span> li <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.gallery</span> img <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">clip</span><span style="color: #00AA00;">:</span> rect<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">85px</span> <span style="color: #933;">70px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>2、Min-height</p>
<p>min-height 属性允许你指定元素的最小高度，适用于需要平衡布局的情况。以确保内容区域高于侧边栏。</p>
<p style="text-align: center;"><a href="http://www.pivotcode.com/wp-content/uploads/2010/03/04.gif"><img class="size-full wp-image-469 aligncenter" title="04" src="http://www.pivotcode.com/wp-content/uploads/2010/03/04.gif" alt="" width="470" height="270" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.with_minheight</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">550px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>IE6 的 Min-height hack</p>
<p>注：神奇的 IE6 原生不支持 min-height 属性，不过幸好有一个min-height hack。</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.with_minheight</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">550px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span> !important<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">550px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>3、White-space</p>
<p>white-space 属性指定了元素中空白的处理方式。比如，指定 white-space:nowrap 会阻止文本自动换行。</p>
<p style="text-align: center;"><a href="http://www.pivotcode.com/wp-content/uploads/2010/03/05.gif"><img class="size-full wp-image-470 aligncenter" title="05" src="http://www.pivotcode.com/wp-content/uploads/2010/03/05.gif" alt="" width="470" height="258" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">em <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">nowrap</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>4、Cursor</p>
<p>如果你改变了按钮的行为，其指针也应该随之改变。比如，当一个按钮不可用时，指针应该改变为默认的箭头，来表明它不可点击。因此，cursor 属性在开发 Web 应用程序时相当有用。</p>
<p style="text-align: center;"><a href="http://www.pivotcode.com/wp-content/uploads/2010/03/06.gif"><img class="size-full wp-image-471 aligncenter" title="06" src="http://www.pivotcode.com/wp-content/uploads/2010/03/06.gif" alt="" width="470" height="200" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.disabled</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">default</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.busy</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">wait</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.clickable</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>5、Display inline / block</p>
<p>如果你不知道：块级元素是作为独立的一行来渲染的，而行内元素是在同一行被渲染的。&lt;div&gt;，&lt;h1&gt; 和 &lt;p&gt; 标签都是块级元素，&lt;em&gt;，&lt;span&gt;，&lt;strong&gt; 都是行内元素。通过 display:inline 或 block 的方式，你可以重设这些元素的 display 样式。</p>
<p> <a href="http://www.pivotcode.com/wp-content/uploads/2010/03/07.gif"><img class="size-full wp-image-472 aligncenter" title="07" src="http://www.pivotcode.com/wp-content/uploads/2010/03/07.gif" alt="" width="470" height="206" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.block</span> em <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.inline</span> h4<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.inline</span> p <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>英文原稿：<a href="http://www.webdesignerwall.com/tutorials/5-simple-but-useful-css-properties" target="_blank">5 Simple, But Useful CSS Properties | WebDesignWall</a><br />
翻译整理：<a href="http://www.mangguo.org/5-simple-but-useful-css-properties" target="_blank">5 个简单实用的 CSS 属性 | 芒果</a></p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/ie-6-overflow-element/" title="也谈IE6下block元素float多出文字BUG">也谈IE6下block元素float多出文字BUG</a></li><li><a href="http://www.pivotcode.com/cssimg-position-vote/" title="CSS结合单图定位制作的一个漂亮的投票应用">CSS结合单图定位制作的一个漂亮的投票应用</a></li><li><a href="http://www.pivotcode.com/css-please/" title="CSS3兼容代码生成器——css-please">CSS3兼容代码生成器——css-please</a></li><li><a href="http://www.pivotcode.com/css-reset/" title="CSS重构（CSS Reset）">CSS重构（CSS Reset）</a></li><li><a href="http://www.pivotcode.com/common-regular-expressions/" title="常用正则表达式速查">常用正则表达式速查</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/css-five-common-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6固定定位position属性fixed BUG</title>
		<link>http://www.pivotcode.com/ie6-position-fixed-bug/</link>
		<comments>http://www.pivotcode.com/ie6-position-fixed-bug/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 04:53:25 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[BUG]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[relative]]></category>
		<category><![CDATA[renren]]></category>
		<category><![CDATA[人人网]]></category>
		<category><![CDATA[固定定位]]></category>
		<category><![CDATA[定位]]></category>
		<category><![CDATA[相对定位]]></category>
		<category><![CDATA[绝对定位]]></category>

		<guid isPermaLink="false">http://www.pivotcode.com/?p=430</guid>
		<description><![CDATA[当需要把一个元素永远固定在浏览器的一个位置的时候，那么就需要用到position的fixed属性。然后用top和left设置元素的位置。 这个效果也应用在人人网的个人首页底部的工具栏。 常去人人网的朋友肯定会发现，如果用IE6浏览器访问人人网的话，这个工具条以前是不存在的。后来，人人已经通过js实现此功能，但是它的效果和正常浏览器下访问是不同的，即每当拖动滚动条它就会隐藏，当停止时再出现。所以，值得肯定的是IE6不支持这个position的fixed属性。 这个问题也一直都在困扰着我，因为我一直都在想把这个效果实现在我的一个项目上，而又避开使用javascript。 后来在‘幸福收藏夹’博客，找到了解决方案——利用position:absolute定位在IE6下实现固定定位的效果，以下是实现原理： fixed元素的绝对位置相对于HTML元素，滚动条则是基于body元素而不属于html元素。 当我们拖动滚动条滚动的时候，内容都会随窗口滚动，这时滚动的是body元素。HTML元素被浏览器判定为相对定位的根级元素，而我们定义的position:absolute元素也在HTLML元素当中，属于HTML元素的子元素。因此我们所定义的absolute元素会根据HTML元素的大小而进行绝对定位。如果我们未曾对HTML元素设置样式的情况下，它的大小是随内容的大小而变的,这样一来如果我们在其中使用绝对定位，并不能实现我们想得到的固定定位的效果。因此我们需要给我们需要绝对定位元素的相对定位盒模型指定一个绝对大小，即窗口当前的大小。但是body元素仍需保持其原有大小，否则就没有滚动条了。这时我们需要将超出HTML元素的内容隐藏掉，就可以让HTML元素永远保持在一个固定大小了。 代码如下： html&#123;overflow:hidden;&#125; // Important（必须）。 body&#123;overflow:auto;height:100%&#125; 代码规定了html将只有当前窗口的大小，溢出的内容隐藏。但是body仍会随高度自动变化。于是我们就可以利用position:absolute来把元素固定在窗口任意位置了。例如仿人人网定位元素在底边： 示例的完整代码： &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;ie6-position-fixed-bug&#60;/title&#62; &#60;style&#62; * { padding:0; margin:0; } html{_overflow:hidden;}/*IE6hack,必须*/ body{height:100%;overflow:auto;} #footer .bottom { width:580px; height:20px; background-color:#ddd; border:1px solid #aaa; position:fixed; _position:absolute;/*IE6hack,必须*/ bottom:0; left:50%; margin-left:-290px; } &#60;/style&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>当需要把一个元素永远固定在浏览器的一个位置的时候，那么就需要用到position的fixed属性。然后用top和left设置元素的位置。</p>
<p>这个效果也应用在人人网的个人首页底部的工具栏。</p>
<p>常去人人网的朋友肯定会发现，如果用IE6浏览器访问人人网的话，这个工具条以前是不存在的。后来，人人已经通过js实现此功能，但是它的效果和正常浏览器下访问是不同的，即每当拖动滚动条它就会隐藏，当停止时再出现。所以，值得肯定的是IE6不支持这个position的fixed属性。</p>
<p>这个问题也一直都在困扰着我，因为我一直都在想把这个效果实现在我的一个项目上，而又避开使用javascript。<br />
<span id="more-430"></span><br />
后来在‘幸福收藏夹’博客，找到了解决方案——利用position:absolute定位在IE6下实现固定定位的效果，以下是实现原理：</p>
<blockquote><p>fixed元素的绝对位置相对于HTML元素，滚动条则是基于body元素而不属于html元素。<br />
当我们拖动滚动条滚动的时候，内容都会随窗口滚动，这时滚动的是body元素。HTML元素被浏览器判定为相对定位的根级元素，而我们定义的position:absolute元素也在HTLML元素当中，属于HTML元素的子元素。因此我们所定义的absolute元素会根据HTML元素的大小而进行绝对定位。如果我们未曾对HTML元素设置样式的情况下，它的大小是随内容的大小而变的,这样一来如果我们在其中使用绝对定位，并不能实现我们想得到的固定定位的效果。因此我们需要给我们需要绝对定位元素的相对定位盒模型指定一个绝对大小，即窗口当前的大小。但是body元素仍需保持其原有大小，否则就没有滚动条了。这时我们需要将超出HTML元素的内容隐藏掉，就可以让HTML元素永远保持在一个固定大小了。</p></blockquote>
<p>代码如下：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> // Important（必须）。
body<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>代码规定了html将只有当前窗口的大小，溢出的内容隐藏。但是body仍会随高度自动变化。于是我们就可以利用position:absolute来把元素固定在窗口任意位置了。例如仿人人网定位元素在底边：</p>
<p><iframe width='580' height='300' src='http://www.pivotcode.com/demo/ie6-position-fixed-bug.html'></iframe></p>
<p>示例的完整代码：</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&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;title&gt;ie6-position-fixed-bug&lt;/title&gt;
&lt;style&gt;
* {
	padding:0;
	margin:0;
}
html{_overflow:hidden;}/*IE6hack,必须*/
body{height:100%;overflow:auto;}
#footer .bottom {
	width:580px;
	height:20px;
	background-color:#ddd;
	border:1px solid #aaa;
	position:fixed;
	_position:absolute;/*IE6hack,必须*/
	bottom:0;
	left:50%;
	margin-left:-290px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;
&lt;h1&gt;测试定位&lt;/h1&gt;
占位文字
&lt;/div&gt;
&lt;div id=&quot;footer&quot;&gt;
  &lt;div class=&quot;bottom&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>注：本文参考自幸福收藏夹</p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/ie-6-overflow-element/" title="也谈IE6下block元素float多出文字BUG">也谈IE6下block元素float多出文字BUG</a></li><li><a href="http://www.pivotcode.com/microsoft-expression-web-3-superpreview/" title="体验篇：Microsoft Expression Web 3 SuperPreview全攻略">体验篇：Microsoft Expression Web 3 SuperPreview全攻略</a></li><li><a href="http://www.pivotcode.com/css-text-shadow/" title="css文字阴影">css文字阴影</a></li><li><a href="http://www.pivotcode.com/ie6-img-max-widht/" title="IE6下图像的最大宽度">IE6下图像的最大宽度</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/ie6-position-fixed-bug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>css命名规则</title>
		<link>http://www.pivotcode.com/css-rename/</link>
		<comments>http://www.pivotcode.com/css-rename/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 03:04:39 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[id]]></category>
		<category><![CDATA[nav]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://mingsenliu.com/?p=265</guid>
		<description><![CDATA[头：header 内容：content/container 尾：footer 导航：nav 侧栏：sidebar 栏目：column 页面外围控制整体布局宽度：wrapper 左右中：left right center 登录条：loginbar 标志：logo 广告：banner 页面主体：main 热点：hot 新闻：news 下载：download 子导航：subnav 菜单：menu 子菜单：submenu 搜索：search 友情链接：friendlink 页脚：footer 版权：copyright 滚动：scroll 内容：content 标签页：tab 文章列表：list 提示信息：msg 小技巧：tips 栏目标题：title 加入：joinus 指南：guild 服务：service 注册：regsiter 状态态：status 投票：vote 合作伙伴：partner 注释的写法 /* Footer */ 内容区 /* End Footer */ id的命名 容器: container 页头：header 内容：content/container 页面主体：main 页尾：footer 导航：nav [...]]]></description>
			<content:encoded><![CDATA[<p>头：header<br />
内容：content/container<br />
尾：footer<br />
导航：nav<br />
侧栏：sidebar<br />
栏目：column<br />
页面外围控制整体布局宽度：wrapper<br />
左右中：left right center<br />
登录条：loginbar<br />
标志：logo<br />
广告：banner<br />
页面主体：main<br />
热点：hot<br />
新闻：news<br />
下载：download<br />
子导航：subnav<br />
菜单：menu<br />
子菜单：submenu<br />
搜索：search<br />
友情链接：friendlink<br />
页脚：footer<br />
版权：copyright<br />
滚动：scroll<br />
内容：content<br />
标签页：tab<br />
文章列表：list<br />
提示信息：msg<br />
小技巧：tips<br />
栏目标题：title<br />
加入：joinus<br />
指南：guild<br />
服务：service<br />
注册：regsiter<br />
状态态：status<br />
投票：vote<br />
合作伙伴：partner</p>
<p><span id="more-265"></span></p>
<p>注释的写法</p>
<p>/* Footer */<br />
内容区<br />
/* End Footer */</p>
<p>id的命名<br />
容器: container<br />
页头：header<br />
内容：content/container<br />
页面主体：main<br />
页尾：footer<br />
导航：nav<br />
侧栏：sidebar<br />
栏目：column<br />
页面外围控制整体布局宽度：wrapper<br />
左右中：left right center</p>
<p>id的命名</p>
<p>页面结构</p>
<p>容器: container<br />
页头：header<br />
内容：content/container<br />
页面主体：main<br />
页尾：footer<br />
导航：nav<br />
侧栏：sidebar<br />
栏目：column<br />
页面外围控制整体布局宽度：wrapper<br />
左右中：left right center</p>
<p>导航</p>
<p>导航：nav<br />
主导航：mainbav<br />
子导航：subnav<br />
顶导航：topnav<br />
边导航：sidebar<br />
左导航：leftsidebar<br />
右导航：rightsidebar<br />
菜单：menu<br />
子菜单：submenu<br />
标题: title<br />
摘要: summary</p>
<p>功能<br />
标志：logo<br />
广告：banner<br />
登陆：login<br />
登录条：loginbar<br />
注册：regsiter<br />
搜索：search<br />
功能区：shop<br />
标题：title<br />
加入：joinus<br />
状态：status<br />
按钮：btn<br />
滚动：scroll<br />
标签页：tab<br />
文章列表：list<br />
提示信息：msg<br />
当前的: current<br />
小技巧：tips<br />
图标: icon<br />
注释：note<br />
指南：guild<br />
服务：service<br />
热点：hot<br />
新闻：news<br />
下载：download<br />
投票：vote<br />
合作伙伴：partner<br />
友情链接：link<br />
版权：copyright</p>
<p>class的命名</p>
<p>(1)颜色:使用颜色的名称或者16进制代码,如<br />
.red { color: red; }<br />
.f60 { color: #f60; }<br />
.ff8600 { color: #ff8600; }</p>
<p>(2)字体大小,直接使用&#8221;font+字体大小&#8221;作为名称,如<br />
.font12px { font-size: 12px; }<br />
.font9pt {font-size: 9pt; }</p>
<p>(3)对齐样式,使用对齐目标的英文名称,如</p>
<p>.left { float:left; }<br />
.bottom { float:bottom; }</p>
<p>(4)标题栏样式,使用&#8221;类别+功能&#8221;的方式命名,如<br />
.barnews { }<br />
.barproduct { }</p>
<p>注意事项</p>
<p>1.一律小写;<br />
2.尽量用英文;<br />
3.不加中杠和下划线;<br />
4.尽量不缩写，除非一看就明白的单词.<br />
主要的 master.css<br />
模块 module.css<br />
基本共用 base.css<br />
布局，版面 layout.css<br />
主题 themes.css<br />
专栏 columns.css<br />
文字 font.css<br />
表单 forms.css<br />
补丁 mend.css<br />
打印 print.css</p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/html5-resume/" title="HTML5初探——个人HTML5简历">HTML5初探——个人HTML5简历</a></li><li><a href="http://www.pivotcode.com/cssimg-position-vote/" title="CSS结合单图定位制作的一个漂亮的投票应用">CSS结合单图定位制作的一个漂亮的投票应用</a></li><li><a href="http://www.pivotcode.com/css-please/" title="CSS3兼容代码生成器——css-please">CSS3兼容代码生成器——css-please</a></li><li><a href="http://www.pivotcode.com/css-reset/" title="CSS重构（CSS Reset）">CSS重构（CSS Reset）</a></li><li><a href="http://www.pivotcode.com/css-five-common-functions/" title="CSS五个常见却不常用的属性">CSS五个常见却不常用的属性</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/css-rename/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>css文字阴影</title>
		<link>http://www.pivotcode.com/css-text-shadow/</link>
		<comments>http://www.pivotcode.com/css-text-shadow/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 02:47:34 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[text-shadow]]></category>

		<guid isPermaLink="false">http://mingsenliu.com/?p=221</guid>
		<description><![CDATA[CSS Attribute ：text-shadow 近期在自己的项目中用到了这个属性，以前经常见到在精彩网页设计中以文字搭配阴影呈现的立体文字效果彰明较著，自己也曾有过跃跃欲试的冲动，后来在网上查了下它的兼容性，结果对IE所有版本浏览器都不兼容，由于IE浏览器的市场份额还是占多数，因此对于这个属性只是简单了解，没有深入研究并使用。 而现在，在项目中需要用到这个属性，那么就不得不为此细究一下了。 text-shadow属性在Firefox 3.5+，Safari 1.1+/chrome 2.0+和opera 9.5下被支持，对于IE只能期盼下一个版本了（对于IE浏览器的阴影效果微软提供了官方的解决方案，请继续往下看）。 此属性基本写法： text-shadow:[颜色 x轴 y轴 模糊半径] x,y轴控制阴影的偏移位置 颜色代表阴影的颜色 模糊半径可以控制阴影的模糊与不模糊 另外某些浏览器支持多层阴影，而对于多层阴影的表现方式是用逗号隔开在加一组属性，例如： text-shadow:[颜色 x轴 y轴 模糊半径],[颜色 x轴 y轴 模糊半径] (注：safari4.0后才支持多层阴影) 示例： text-shadow:black 2px 2px 0 DEMO 那么IE浏览器该怎么办呢？毕竟多数人还在使用IE。 IE浏览器对于好多css的新特性支持都不是很好，尤其是IE6（警告大家IE6不要再用了，否则你的电脑会成为病毒的温床）那么有个什么好的方案解决IE对于这个属性的兼容性问题呢？尤其是IE6！ 对于这个疑问，微软提出了官方的解决方案——利用shadow滤镜来实现： filter: dropshadow(OffX=1, OffY=1, Color='#f5f5f5', Positive='true') OffX对应text-shadow属性的X轴 OffY对应text-shadow属性的y轴 Color对应text-shadow属性的颜色 Positive设置为true就可以了 欲了解更多关于IE的这个滤镜，请查看官网介绍： Dropshadow ok，现在可以放心的使用文字阴影来实现你想要的效果了。 相关日志也谈IE6下block元素float多出文字BUGCSS结合单图定位制作的一个漂亮的投票应用CSS3兼容代码生成器——css-pleaseCSS重构（CSS Reset）CSS五个常见却不常用的属性]]></description>
			<content:encoded><![CDATA[<p>CSS Attribute ：text-shadow</p>
<p>近期在自己的项目中用到了这个属性，以前经常见到在精彩网页设计中以文字搭配阴影呈现的立体文字效果彰明较著，自己也曾有过跃跃欲试的冲动，后来在网上查了下它的兼容性，结果对IE所有版本浏览器都不兼容，由于IE浏览器的市场份额还是占多数，因此对于这个属性只是简单了解，没有深入研究并使用。</p>
<p>而现在，在项目中需要用到这个属性，那么就不得不为此细究一下了。<br />
text-shadow属性在Firefox 3.5+，Safari 1.1+/chrome 2.0+和opera 9.5下被支持，对于IE只能期盼下一个版本了（对于IE浏览器的阴影效果微软提供了官方的解决方案，请继续往下看）。<br />
此属性基本写法：</p>
<pre>text-shadow:[颜色 x轴 y轴 模糊半径]</pre>
<p>x,y轴控制阴影的偏移位置<br />
颜色代表阴影的颜色<br />
模糊半径可以控制阴影的模糊与不模糊</p>
<p>另外某些浏览器支持多层阴影，而对于多层阴影的表现方式是用逗号隔开在加一组属性，例如：</p>
<pre>text-shadow:[颜色 x轴 y轴 模糊半径],[颜色 x轴 y轴 模糊半径]</pre>
<p>(注：safari4.0后才支持多层阴影)</p>
<p>示例：</p>
<pre>text-shadow:black 2px 2px 0</pre>
<p><strong style="text-shadow: black 1px 1px 0; font-size: 30px;">DEMO</strong></p>
<p>那么IE浏览器该怎么办呢？毕竟多数人还在使用IE。</p>
<p>IE浏览器对于好多css的新特性支持都不是很好，尤其是IE6<span style="color: #ff0000;">（警告大家IE6不要再用了，否则你的电脑会成为病毒的温床）</span>那么有个什么好的方案解决IE对于这个属性的兼容性问题呢？尤其是IE6！</p>
<p>对于这个疑问，微软提出了官方的解决方案——利用shadow滤镜来实现：</p>
<pre>filter: dropshadow(OffX=1, OffY=1, Color='#f5f5f5', Positive='true')</pre>
<p>OffX对应text-shadow属性的X轴<br />
OffY对应text-shadow属性的y轴<br />
Color对应text-shadow属性的颜色<br />
Positive设置为true就可以了</p>
<p>欲了解更多关于IE的这个滤镜，请查看官网介绍： <a href="http://msdn.microsoft.com/en-us/library/ms532985%28VS.85%29.aspx" target="_blank">Dropshadow</a></p>
<p>ok，现在可以放心的使用文字阴影来实现你想要的效果了。</p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/ie-6-overflow-element/" title="也谈IE6下block元素float多出文字BUG">也谈IE6下block元素float多出文字BUG</a></li><li><a href="http://www.pivotcode.com/cssimg-position-vote/" title="CSS结合单图定位制作的一个漂亮的投票应用">CSS结合单图定位制作的一个漂亮的投票应用</a></li><li><a href="http://www.pivotcode.com/css-please/" title="CSS3兼容代码生成器——css-please">CSS3兼容代码生成器——css-please</a></li><li><a href="http://www.pivotcode.com/css-reset/" title="CSS重构（CSS Reset）">CSS重构（CSS Reset）</a></li><li><a href="http://www.pivotcode.com/css-five-common-functions/" title="CSS五个常见却不常用的属性">CSS五个常见却不常用的属性</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/css-text-shadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6下图像的最大宽度</title>
		<link>http://www.pivotcode.com/ie6-img-max-widht/</link>
		<comments>http://www.pivotcode.com/ie6-img-max-widht/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 09:10:01 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Expression]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[max-width]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[兼容性]]></category>
		<category><![CDATA[最大宽度]]></category>
		<category><![CDATA[溢出]]></category>

		<guid isPermaLink="false">http://mingsenliu.com/?p=177</guid>
		<description><![CDATA[图像如果显示在一个限制了宽度的div容器中时，图像有多大，它便会显示多大,当布局小于图像大小时便会产生溢出。同样的问题在table容器中一样。 那么你会说可以在CSS中定义布局中图像的宽度。那么如果图像小于布局的宽度时，图像便会被拉伸变形。那么有什么好的办法让这个图像即不会溢出，又能保持它原来的大小呢？这个时候我们可以用CSS的max-width方法来限制图像的最大宽度解决这个问题，具体用法就是: .layout&#123;width:600px;&#125; .layout img&#123;max-width:600px;height:auto;&#125;/*如果不希望图片会因为限制宽度而变形的话，那么把高度设置为自适应*/ 如此，问题解决，但是并不是所有问题都解决了，浏览器兼容性是永远都是前段工程师的噩梦，因为该死的IE6并不对这个属性提供支持。所以我们不得不针对IE6做一些处理。接下来就是只有IE支持的属性值：expression IE5及其以后版本支持在CSS中使用expression，用来把CSS属性和Javas cript表达式关联起来，这里的CSS属性可以是元素固有的属性，也可以是自定义属性。就是说CSS属性后面可以是一段Javas cript表达式，CSS属性的值等于Javascript表达式计算的结果。 在表达式中可以直接引用元素自身的属性和方法，也可以使用其他浏览器对象。这个表达式就好像是在这个元素的一个成员函数中一样。 用法是expression(statement),例如我们上面的CSS，我们需要在规则中加入 .layout&#123;width:600px;&#125; .layout img&#123;max-width:600px;width:expression&#40;this.width &#62; 600 ? 600: true&#41;;height:auto;&#125;/*this是指当前元素‘.’操作符中文代表中文意义的‘的’,width字面翻译宽度，后面是三元判断表达式，意思是说当img的宽度大于600时，img的宽等于600，否则不进行任何操作*/ 相关日志也谈IE6下block元素float多出文字BUG网页测试工具分享IE6固定定位position属性fixed BUG体验篇：Microsoft Expression Web 3 SuperPreview全攻略“IETester”微软官方产品SuperPreview之感慨篇]]></description>
			<content:encoded><![CDATA[<p>图像如果显示在一个限制了宽度的div容器中时，图像有多大，它便会显示多大,当布局小于图像大小时便会产生溢出。同样的问题在table容器中一样。</p>
<p>那么你会说可以在CSS中定义布局中图像的宽度。那么如果图像小于布局的宽度时，图像便会被拉伸变形。那么有什么好的办法让这个图像即不会溢出，又能保持它原来的大小呢？这个时候我们可以用CSS的max-width方法来限制图像的最大宽度解决这个问题，具体用法就是:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.layout</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.layout</span> img<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><span style="color: #808080; font-style: italic;">/*如果不希望图片会因为限制宽度而变形的话，那么把高度设置为自适应*/</span></pre></div></div>

<p>如此，问题解决，但是并不是所有问题都解决了，浏览器兼容性是永远都是前段工程师的噩梦，因为该死的IE6并不对这个属性提供支持。所以我们不得不针对IE6做一些处理。接下来就是只有IE支持的属性值：expression</p>
<blockquote><p>IE5及其以后版本支持在CSS中使用expression，用来把CSS属性和Javas cript表达式关联起来，这里的CSS属性可以是元素固有的属性，也可以是自定义属性。就是说CSS属性后面可以是一段Javas cript表达式，CSS属性的值等于Javascript表达式计算的结果。 在表达式中可以直接引用元素自身的属性和方法，也可以使用其他浏览器对象。这个表达式就好像是在这个元素的一个成员函数中一样。</p></blockquote>
<p>用法是expression(statement),例如我们上面的CSS，我们需要在规则中加入</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.layout</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.layout</span> img<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>width<span style="color: #00AA00;">:</span>expression<span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.width</span> <span style="color: #00AA00;">&gt;</span> <span style="color: #cc66cc;">600</span> ? <span style="color: #cc66cc;">600</span><span style="color: #00AA00;">:</span> true<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><span style="color: #808080; font-style: italic;">/*this是指当前元素‘.’操作符中文代表中文意义的‘的’,width字面翻译宽度，后面是三元判断表达式，意思是说当img的宽度大于600时，img的宽等于600，否则不进行任何操作*/</span></pre></div></div>

<p><iframe width="600" height="500" frameborder="0" src="http://www.pivotcode.com/demo/imgoverflow.html"></iframe></p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/ie-6-overflow-element/" title="也谈IE6下block元素float多出文字BUG">也谈IE6下block元素float多出文字BUG</a></li><li><a href="http://www.pivotcode.com/web-test-tools-share-2/" title="网页测试工具分享">网页测试工具分享</a></li><li><a href="http://www.pivotcode.com/ie6-position-fixed-bug/" title="IE6固定定位position属性fixed BUG">IE6固定定位position属性fixed BUG</a></li><li><a href="http://www.pivotcode.com/microsoft-expression-web-3-superpreview/" title="体验篇：Microsoft Expression Web 3 SuperPreview全攻略">体验篇：Microsoft Expression Web 3 SuperPreview全攻略</a></li><li><a href="http://www.pivotcode.com/superpreview-lament/" title="“IETester”微软官方产品SuperPreview之感慨篇">“IETester”微软官方产品SuperPreview之感慨篇</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/ie6-img-max-widht/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>也谈IE6下block元素float多出文字BUG</title>
		<link>http://www.pivotcode.com/ie-6-overflow-element/</link>
		<comments>http://www.pivotcode.com/ie-6-overflow-element/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 06:28:17 +0000</pubDate>
		<dc:creator>刘 铭森</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[BUG]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[溢出]]></category>

		<guid isPermaLink="false">http://mingsenliu.com/?p=113</guid>
		<description><![CDATA[最近做的一个项目经常会用到块级元素（block）浮动定位（float）的方式做的一个类似于BBS文章列表多行多列的布局方案。 我大概看了一下网上对于此种布局的布局办法，发现大多都是用表格来做的。连豆瓣、discuz的论坛也都是表格布局。 但是我对表格的布局有种敬而远之的畏惧感，一个是它的代码量很大，虽然用DW里添加表格的工具很快的添加，但是对于它的自适应元素的问题，我始终难以控制的行云流水。因此，我还是决定用css来做。 我选择用ul元素做列表框架，li元素做列表行，span元素做各列的容器的布局方式实现。 【css部分】 @charset &#34;utf-8&#34;; /* CSS Document */ ul li&#123;margin:0; padding:0; list-style:none; font-size:12px; color:#333&#125;/*初始化ul,li元素，让我们更方便使用*/ ul li&#123;width:800px; height:35px; line-height:35px; border-bottom:1px dashed #ccc&#125;/*定义高35像素的li元素，宽是布局的宽，还定义了一个虚线的下边框*/ ul li span&#123;display:block; float:left; height:35px; line-height:35px;&#125;/*定义span元素为块级元素，左浮动，高为li元素的高*/ &#160; /*分别定义需要的列span元素的宽度*/ ul li span.listOne&#123;width:300px;&#125; ul li span.listTwo&#123;width:200px;&#125; ul li span.listThr&#123;width:100px;&#125; ul li span.listFou&#123;width:100px;&#125; ul li span.listFiv&#123;width:100px;&#125; 【html部分】 &#160; &#160; &#160; &#160; &#160; &#160; &#60;ul&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>最近做的一个项目经常会用到块级元素（block）浮动定位（float）的方式做的一个类似于BBS文章列表多行多列的布局方案。</p>
<p>我大概看了一下网上对于此种布局的布局办法，发现大多都是用表格来做的。连豆瓣、discuz的论坛也都是表格布局。</p>
<p>但是我对表格的布局有种敬而远之的畏惧感，一个是它的代码量很大，虽然用DW里添加表格的工具很快的添加，但是对于它的自适应元素的问题，我始终难以控制的行云流水。因此，我还是决定用css来做。</p>
<p>我选择用ul元素做列表框架，li元素做列表行，span元素做各列的容器的布局方式实现。</p>
<h2>【css部分】</h2>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@charset &quot;utf-8&quot;;</span>
<span style="color: #808080; font-style: italic;">/* CSS Document */</span>
ul li<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: #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: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">&#125;</span><span style="color: #808080; font-style: italic;">/*初始化ul,li元素，让我们更方便使用*/</span>
ul li<span style="color: #00AA00;">&#123;</span><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> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">35px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">35px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">&#125;</span><span style="color: #808080; font-style: italic;">/*定义高35像素的li元素，宽是布局的宽，还定义了一个虚线的下边框*/</span>
ul li span<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">35px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">35px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><span style="color: #808080; font-style: italic;">/*定义span元素为块级元素，左浮动，高为li元素的高*/</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*分别定义需要的列span元素的宽度*/</span>
ul li span<span style="color: #6666ff;">.listOne</span><span style="color: #00AA00;">&#123;</span><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><span style="color: #00AA00;">&#125;</span>
ul li span<span style="color: #6666ff;">.listTwo</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
ul li span<span style="color: #6666ff;">.listThr</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
ul li span<span style="color: #6666ff;">.listFou</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
ul li span<span style="color: #6666ff;">.listFiv</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<h2>【html部分】</h2>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;ul&gt;
&nbsp;
	&lt;li&gt;
&lt;span&gt;帖子列表&lt;/span&gt;
&lt;span&gt;帖子分类&lt;/span&gt;
&lt;span&gt;发布者&lt;/span&gt;
&lt;span&gt;最后回复&lt;/span&gt;
&lt;span&gt;发布时间&lt;/span&gt;&lt;/li&gt;
&nbsp;
&nbsp;
	&lt;li&gt;
&lt;span&gt;&lt;a href=&quot;#&quot;&gt;这里是帖子标题&lt;/a&gt;&lt;/span&gt;
&lt;span&gt;&lt;a href=&quot;#&quot;&gt;这里是帖子分类&lt;/a&gt;&lt;/span&gt;
&lt;span&gt;&lt;a href=&quot;#&quot;&gt;发布者姓名&lt;/a&gt;&lt;/span&gt;
&lt;span&gt;回复者姓名&lt;/span&gt;
&lt;span&gt;2009-10-10 20：10&lt;/span&gt;&lt;/li&gt;
&nbsp;
&lt;/ul&gt;</pre></div></div>

<p>这样，如果在IE6+浏览器看的话，会是预想的两行5列的效果，没有任何问题。但是，如果在IE6下看，右侧会多出最后一列中的末字到下一行，如图所示</p>
<p><a href="http://mingsenliu.com/wp-content/uploads/2009/12/overflow.jpg" target="_blank"><img class="aligncenter size-full wp-image-133" title="overflow" src="http://mingsenliu.com/wp-content/uploads/2009/12/overflow.jpg" alt="overflow" width="456" height="89" /></a></p>
<p>代码是没有任何问题的，因为在其他浏览器没有任何问题。所以那肯定是IE6的问题。</p>
<p>以前没有用过此种布局，因此并没有过处理此问题的经验。后来去往上搜了一下，往上大多都是出自同门师傅的答案，内容如下：</p>
<p>“1.是注释引起的,删除所有注释即可.<br />
2.hidden的input直接放在form下.<br />
3.display为none的div也有可能引发此bug.<br />
2,3可以通过外面再包一次DIV解决”</p>
<p>另外有一篇很详细的解说，但是他是通过宽度的调整解决的我没有尝试，有兴趣的可以试一下，奉上地址如下：<br />
<span style="color: #99cc00;">《IE6/IE7文字溢出bug原因及解决办法》</span><a href="http://www.yarak.net.cn/default.asp?id=82">http://www.yarak.net.cn/default.asp?id=82</a><br />
后来问了一下同事，他对此问题有过相应经验，不过他所知道的答案也是网上流传的方式。但是我的代码里并没有注释和以上类似的任何条件。<br />
后经尝试，得出以下方案：<br />
<span style="color: #ff0000;">1、在span的父元素上定义溢出隐藏overflow：hidden;可以解决此问题。</span><br />
<span style="color: #ff0000;">2、span元素在html中书写时不进行换行（块级元素的特性）</span><br />
<span style="color: #ff0000;">3、span元素去掉浮动（float）并把显示方式改成display：inline-block</span><br />
<span style="color: #000000;">如此，溢出BUG问题解决</span></p>
<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.pivotcode.com/ie6-img-max-widht/" title="IE6下图像的最大宽度">IE6下图像的最大宽度</a></li><li><a href="http://www.pivotcode.com/css-five-common-functions/" title="CSS五个常见却不常用的属性">CSS五个常见却不常用的属性</a></li><li><a href="http://www.pivotcode.com/ie6-position-fixed-bug/" title="IE6固定定位position属性fixed BUG">IE6固定定位position属性fixed BUG</a></li><li><a href="http://www.pivotcode.com/css-text-shadow/" title="css文字阴影">css文字阴影</a></li><li><a href="http://www.pivotcode.com/cssimg-position-vote/" title="CSS结合单图定位制作的一个漂亮的投票应用">CSS结合单图定位制作的一个漂亮的投票应用</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pivotcode.com/ie-6-overflow-element/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
