<?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>彬Go &#187; CSS</title>
	<atom:link href="http://blog.bingo929.com/category/technology/css/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bingo929.com</link>
	<description>关注前端开发/网页设计/网站可用性/用户体验,暴风彬彬的趣味互联网生活...</description>
	<lastBuildDate>Tue, 24 Aug 2010 09:26:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HTML5和CSS3工具资源汇总</title>
		<link>http://blog.bingo929.com/html5-and-css3-tools-list.html</link>
		<comments>http://blog.bingo929.com/html5-and-css3-tools-list.html#comments</comments>
		<pubDate>Mon, 28 Jun 2010 12:37:05 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[资源]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2971</guid>
		<description><![CDATA[
　　HTML5和CSS3已经开始彻底变革全世界的Web前端开发和Web设计发展格局，因为他们给这个领域带来了太多太多令人惊奇的新特性！我用大量时间学习了HTML5和CSS3技术，它们的动画、圆角等特效... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/html5-and-css3-tools-list.html"><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-title.jpg" width="500" height="140" alt="HTML5和CSS3工具资源汇总" /></a></p>
<p>　　<a href="http://blog.bingo929.com/category/technology/html5">HTML5</a>和<a href="http://blog.bingo929.com/tag/css3">CSS3</a>已经开始彻底变革全世界的Web前端开发和Web设计发展格局，因为他们给这个领域带来了太多太多令人惊奇的新特性！我用大量时间学习了HTML5和CSS3技术，它们的动画、圆角等特效会令你震惊&#8230;在后面的内容中彬Go将向大家推荐一些能帮助你更好的掌握甚至精通HTML5和CSS3的终极工具资源集合。虽然还有很多特性不被浏览器所支持，但我们作为前端开发从业者，有必要掌握它们。彬Go希望这些HTML5和CSS3工具资源能对大家的学习和工作有所帮助。<br />
<span id="more-2971"></span></p>
<p><strong><span style="color: #ff6600;">您还可以参考以下HTML5和CSS3相关文章:</span></strong><br />
《<a href="http://blog.bingo929.com/html-5-canvas-the-basics-html5.html">关于HTML 5 canvas 的基础教程</a>》<br />
《<a href="http://blog.bingo929.com/50-awesome-css3-animations.html">用CSS3制作50个超棒动画效果教程</a>》<br />
《<a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html">5个CSS3技术实现设计增强</a>》<br />
《<a href="http://blog.bingo929.com/html5-ie-enabling-script.html">让所有IE支持HTML5的解决方案</a>》<br />
《<a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html">一起感受HTML5和CSS3的能量</a>》<br />
《<a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html">提升你设计水平的CSS3新技术</a>》</p>
<h3><a href="http://html5readiness.com/" target="_blank">HTML5 &#038; CSS3 准备就绪</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-01.jpg" width="485" height="139" alt="CSS3" /><br />
　　该网站通过扇形图表的形式展现了从08年到10年以来各大浏览器对HTML5和CSS3的支持情况。发展势头还是很可观的。</p>
<h3><a href="http://heideri.ch/jso/" target="_blank">HTML5安全手册</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-02.jpg" width="485" height="139" alt="HTML5" /></p>
<h3><a href="http://css-tricks.com/examples/ButtonMaker/" target="_blank">CSS3按钮生成器</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-03.jpg" width="485" height="139" alt="HTML5资源" /><br />
　　所见即所得的为你生成CSS3按钮，你仅需通过基本的鼠标点击便可生成令人满意的CSS3按钮，点击生成好的按钮即可查看相应的CSS3代码。</p>
<h3><a href="http://caniuse.com/" target="_blank">When can I use…（HTML5 &#038; CSS3 浏览器兼容性）</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-04.jpg" width="485" height="139" alt="HTML5工具" /><br />
　　很详细的关于HTML5, CSS3, SVG等技术的浏览器兼容性列表。</p>
<h3><a href="http://www.codenique.com/web_color/css3_color_names.php" target="_blank">CSS3颜色值/名称速查手册</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-05.jpg" width="485" height="139" alt="HTML5+CSS3" /><br />
　　CSS3颜色值查询手册，包括颜色英文名、16进制值、rgb百分比、rgb整数值、颜色缩写和颜色效果等&#8230;</p>
<h3><a href="http://css3generator.com/" target="_blank">CSS3生成器</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-06.jpg" width="485" height="139" alt="HTML5" /><br />
　　在线测试CSS3新特性，即时生成效果。</p>
<h3><a href="http://www.modernizr.com/" target="_blank">Modernizr</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-07.jpg" width="485" height="139" alt="CSS3" /></p>
<h3><a href="http://www.html5test.com/" target="_blank">当前浏览器对HTML5支持情况测试</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-08.jpg" width="485" height="139" alt="HTML5资源" /><br />
　　该工具可以帮助你测试当前你使用的浏览器对HTML5的兼容情况，很详细，很有用！</p>
<h3><a href="http://border-radius.com/" target="_blank">CSS 边框半径(代码生成器)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-09.jpg" width="485" height="139" alt="HTML5工具" /><br />
　　通过输入数值即可生成CSS3代码的CSS 边框代码生成器。使用很简便。</p>
<h3><a href="http://www.findmebyip.com/litmus/#target-selector" target="_blank">FindMeByIP（HTML5 &#038; CSS3 浏览器兼容性手册）</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-10.jpg" width="485" height="139" alt="HTML5+CSS3" /><br />
　　很详细的HTML5和CSS3浏览器兼容性手册。</p>
<h3><a href="http://gradients.glrzad.com/" target="_blank">CSS3渐变生成器</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-11.jpg" width="485" height="139" alt="HTML5" /></p>
<h3><a href="http://css3watch.com/" target="_blank">CSS3 Watch</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-12.jpg" width="485" height="139" alt="CSS3" /></p>
<h3><a href="http://westciv.com/tools/" target="_blank">前端开发工具&#038;资源小集合</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-13.jpg" width="485" height="139" alt="HTML5资源" /></p>
<h3><a href="http://css3please.com/" target="_blank">CSS3, please!(实时体验CSS3代码)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-14.jpg" width="485" height="139" alt="HTML5工具" /></p>
<h3><a href="http://labs.thecssninja.com/font_dragr/" target="_blank">font dragr</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-15.jpg" width="485" height="139" alt="HTML5+CSS3" /></p>
<h3><a href="http://www.widgetpad.com/694/" target="_blank">CSS3生成器</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-16.jpg" width="485" height="139" alt="HTML5" /></p>
<h3><a href="http://cssdesk.com/" target="_blank">CSS桌面</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-17.jpg" width="485" height="139" alt="CSS3" /><br />
　　CSS桌面可以让你在线练习CSS3代码，并实时将渲染效果呈现在右侧，很棒的CSS3在线练习工具。</p>
<h3><a href="http://html5.org/tools/web-apps-tracker" target="_blank">HTML5修订版本跟踪器</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-18.jpg" width="485" height="139" alt="HTML5资源" /></p>
<h3><a href="http://www.fontsquirrel.com/fontface/generator" target="_blank">font-face 生成器</a></h3>
<p><a href="http://blog.bingo929.com/"><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-19.jpg" width="485" height="139" alt="HTML5工具" /></a></p>
<h3><a href="http://tools.css3.info/selectors-test/test.html" target="_blank">CSS3 选择器测试工具</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-20.jpg" width="485" height="139" alt="HTML5+CSS3" /></p>
<h3><a href="http://www.iecss.com/print-protector/" target="_blank">IE 打印保险器</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-21.jpg" width="485" height="139" alt="HTML5" /></p>
<h3><a href="http://www.webdevout.net/browser-support-css" target="_blank">详细CSS 浏览器支持情况列表</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/06/html5-css3-tools/html5-css3-22.jpg" width="485" height="139" alt="CSS3" /></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看HTML5及CSS3最新资源、教程。 </p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="HTML5和CSS3工具资源汇总" href="http://blog.bingo929.com/html5-and-css3-tools-list.html">http://blog.bingo929.com/html5-and-css3-tools-list.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html" title="一起感受HTML5和CSS3的能量 (2009-08-10)">一起感受HTML5和CSS3的能量</a> (29)</li>
	<li><a href="http://blog.bingo929.com/css-div-css-xhtml-css.html" title="学无止境的CSS(xHTML+CSS技巧教程资源大全) (2009-06-17)">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a> (20)</li>
	<li><a href="http://blog.bingo929.com/css-sprites-css-techniques-tools-tutorials.html" title="CSS Sprites(CSS图像拼合技术)教程、工具集合 (2009-05-20)">CSS Sprites(CSS图像拼合技术)教程、工具集合</a> (26)</li>
	<li><a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html" title="5个CSS3技术实现设计增强 (2009-08-24)">5个CSS3技术实现设计增强</a> (7)</li>
	<li><a href="http://blog.bingo929.com/43-div-css-psd-xhtml-css.html" title="43个实例xHTML+CSS(DIV+CSS)网页及导航布局教程 (2009-03-20)">43个实例xHTML+CSS(DIV+CSS)网页及导航布局教程</a> (40)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/html5-and-css3-tools-list.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>用CSS3制作50个超棒动画效果教程</title>
		<link>http://blog.bingo929.com/50-awesome-css3-animations.html</link>
		<comments>http://blog.bingo929.com/50-awesome-css3-animations.html#comments</comments>
		<pubDate>Mon, 15 Mar 2010 06:20:28 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2857</guid>
		<description><![CDATA[
　　CSS3为我们带来了令人惊叹的新特性，而最有趣的就是CSS动画。今天彬Go向大家推荐这50个CSS动画集合可以让你通过使用JavaScript函数来让动画更生动。为了能够预览到这些惊人的CSS3技术带来... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/50-awesome-css3-animations.html"><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/css3-animations-title.jpg" alt="50个css3技术教程" title="css3-动画-教程" width="500" height="150" class="alignnone size-full wp-image-2872" /></a></p>
<p>　　CSS3为我们带来了令人惊叹的新特性，而最有趣的就是CSS动画。今天彬Go向大家推荐这50个CSS动画集合可以让你通过使用JavaScript函数来让动画更生动。为了能够预览到这些惊人的CSS3技术带来的动画特效，请大家使用如<strong>Safari</strong>和<strong>Chrome</strong>这类基于WebKit内核的浏览器。(<strong>IE浏览器谢绝观赏</strong>~)<br />
<span id="more-2857"></span></p>
<p><strong><span style="color: #ff6600;">您还可以参考以下CSS3相关文章:</span></strong><br />
《<a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html">5个CSS3技术实现设计增强</a>》<br />
《<a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html">一起感受HTML5和CSS3的能量</a>》<br />
《<a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html">提升你设计水平的CSS3新技术</a>》</p>
<h3>1.<a href="http://css-tricks.com/examples/CSS3Clock/" target="_blank">CSS3实现钟表效果(基于jQuery)</a></h3>
<p>　　使用CSS3的基本变形特性:rotate，并结合了jQuery这类javaScript框架制作的CSS3时钟效果。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/clock-jQuery-css3-animations.jpg" alt="表-jQuery-css3" title="表-jQuery-css3" width="500" height="228" class="alignnone size-full wp-image-2869" /></p>
<h3>2.<a href="http://www.fofronline.com/experiments/clock/#clock" target="_blank">模拟时钟</a></h3>
<p>　　模拟时钟基于过渡webkit和CSS3变形，javascript用于将其按当前时间转动。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/analogue-clock-css3-animations.jpg" alt="时钟效果-css3" title="时钟效果-css3" width="500" height="228" class="alignnone size-full wp-image-2863" /></p>
<h3>3.<a href="http://www.fofronline.com/experiments/cube-3d/" target="_blank">可使用箭头键旋转的3D立方体</a></h3>
<p>　　你可以使用上、下、左、右方向键控制这个3D立方体，它是基于webkit-perspective, -webkit-transform 和 -webkit-transition 创建。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/3D-cube-rotates-arrow-keys-css3-animations.jpg" alt="css3-3D立方体" title="css3-教程-3D" width="500" height="228" class="alignnone size-full wp-image-2859" /></p>
<h3>4.<a href="http://www.fofronline.com/experiments/cube/multiCubes.html" target="_blank">多种3D立方体(淡入淡出)</a></h3>
<p>　　多种3D立方体使用CSS3和它的属性‘transform’ 和 ‘transition’ ，我个人觉得效果很震撼，你能看到写在3D立方体上的透视感极强的文字。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/multiple-3d-cubes-slide-in-out-css3-animations.jpg" alt="多种3D立方体(淡入淡出)" title="多种3D立方体(淡入淡出)" width="500"  /></p>
<h3>5.<a href="http://www.fofronline.com/experiments/accordion/#two" target="_blank">CSS3手风琴效果</a></h3>
<p>　　使用CSS3实现的手风琴菜单效果，基于webkit浏览器专有属性。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/accordion-css3-animations.jpg" alt="CSS3手风琴效果" title="CSS3手风琴效果" width="500"  /></p>
<h3>6.<a href="http://www.fofronline.com/experiments/parallax/" target="_blank">自动滚动视差效果</a></h3>
<p>　　自动滚动视差效果使用WebKit的 CSS transition 属性。该效果无需JavaScript。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/auto-scrolling-parallax-css3-animations.jpg" alt="自动滚动视差效果" title="自动滚动视差效果" width="500"  /></p>
<h3>7.<a href="http://www.zachstronaut.com/lab/isocube.html" target="_blank">Isocube</a></h3>
<p> 　　Isocube有些类似于3D立方体，但也有不同之处，它可以让他片贴在立方体面。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/isocube-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>8.<a href="http://devfiles.myopera.com/articles/1041/image-gallery.html" target="_blank">CSS3图片集</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/image-gallery-2-css3-animations.jpg" alt="" title="" width="500"  /></p>
<h3>9.<a href="http://girliemac.com/sandbox/matrix.html" target="_blank">CSS3 Matrix(黑客帝国效果)</a></h3>
<p>　　黑客帝国是最棒的科幻小说改编电影之一，现在使用纯CSS就能实现电影中的矩阵效果。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/matrix-css3-animations.jpg" alt="CSS3 Matrix(黑客帝国效果)" title="CSS3 Matrix(黑客帝国效果)" width="500"  /></p>
<h3>10.<a href="http://webdeveloperjuice.com/demos/css/css3effects.html" target="_blank">7种CSS3结合javascript技术的特效</a></h3>
<p>　　7种CSS3结合javascript技术的特效实例. 所包含的效果有淡入淡出, 震动, 轻移, 扩大, 跳动, 旋转 和 手风琴效果。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/7-javascript-effect-css3-animations.jpg" alt="7种CSS3结合javascript技术的特效" title="7种CSS3结合javascript技术的特效" width="500"  /></p>
<h3>11.<a href="http://dinolatoga.com/demo/webkit-image-hover-effects/" target="_blank">各种鼠标悬停图片特效</a></h3>
<p>　　六个由CSS3替代JavaScript而实现的鼠标悬停图片效果，CSS3实现这种悬停效果依然很炫！<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/image-hover-effects-css3-animations.jpg" alt="各种鼠标悬停图片特效" title="各种鼠标悬停图片特效" width="500"  /></p>
<h3>12.<a href="http://www.romancortes.com/blog/pure-css-coke-can/" target="_blank">旋转的可口可乐易拉罐(使用滚动条控制)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/turning-coke-can-control-with-scrollbar-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>13.<a href="http://www.romancortes.com/blog/css-3d-meninas/" target="_blank">3D 《宫女》</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/3D-meninas-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>14.<a href="http://media.24ways.org/2009/14/5/index.html" target="_blank">宝利来画廊</a></h3>
<p>　　宝利来画廊是由CSS3技术实现的将一些照片堆在一起，有趣的是鼠标悬停照片是，照片会旋转并缓慢放大~<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/polaroid-gallery-2-css3-animations.jpg" alt="CSS3教程" title="CSS3教程" width="500"  /></p>
<h3>15.<a href="http://media.24ways.org/2009/15/space.html" target="_blank">太空</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/space-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>16.<a href="http://www.zurb.com/playground/osx-dock" target="_blank">Mac Dock</a></h3>
<p>　　CSS3模拟的mac操作系统菜单&#8230;<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/mac-dock-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>17.<a href="http://www.zurb.com/playground/drop-in-modals" target="_blank">Drop-In Modals</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/drop-in-modals-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>18.<a href="http://www.zurb.com/playground/sliding-vinyl" target="_blank">滑动的唱片</a></h3>
<p>　　该效果使用了CSS3过渡和些许HTML，在它上面放一个唱片专辑会看上去更生动。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/sliding-vinyl-css3-animations.jpg" alt="CSS3实例" title=""CSS3实例 width="500"  /></p>
<h3>19.<a href="http://www.zurb.com/playground/css3-polaroids" target="_blank">CSS3 Zooming Polaroids</a></h3>
<p>　　该效果会将一个照片列表按顺序排列，并把它们按不同的角度旋转，使用了CSS2和CSS3技术，无JavaScript。它从图片的alt属性中读取出照片描述并放到了照片的下方。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/zooming-polaroids-css3-animations.jpg" alt="CSS3 Zooming Polaroids" title="CSS3 Zooming Polaroids" width="500"  /></p>
<h3>20.<a href="http://www.the-art-of-web.com/css/css-animation/" target="_blank">CSS3 火箭动画</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/animated-rocket-css3-animations.jpg" alt="CSS3 火箭动画" title="CSS3 火箭动画" width="500"  /></p>
<h3>21.<a href="http://webkit.org/blog-files/3d-transforms/poster-circle.html" target="_blank">Poster Circle</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/poster-circle-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>22.<a href="http://webkit.org/blog-files/3d-transforms/morphing-cubes.html" target="_blank">变形的立方体</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/morphing-cubes-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>23.<a href="http://www.3site.eu/examples/gallery/" target="_blank">动画版宝丽来画廊</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/polaroid-gallery-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>24.<a href="http://www.zachstronaut.com/lab/text-shadow-box/text-shadow-box.html" target="_blank">聚光灯下的投影效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/spotlight-cast-shadow-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>25.<a href="http://demo.tutorialzine.com/2009/12/colorful-clock-jquery-css/demo.html" target="_blank">色彩鲜艳的时钟</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/colorful-clock-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>26.<a href="http://demo.tutorialzine.com/2009/11/hovering-gallery-css3-jquery/demo.php" target="_blank">Lightbox Gallery</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/lightbox-gallery-draggable-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>27.<a href="http://buildinternet.com/live/elasticthumbs/" target="_blank">弹性缩略图菜单</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/elastic-thumbnail-menu-css3-animations.jpg" alt="弹性缩略图菜单" title="弹性缩略图菜单" width="500"  /></p>
<h3>28.<a href="http://paulbakaus.com/lab/js/coverflow/" target="_blank">Coverflow</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/coverflow-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>29.<a href="http://demo.marcofolio.net/jquery_dj/" target="_blank">jQuery DJ Hero</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/jQuery-dj-hero-css3-animations.jpg" alt="jQuery DJ Hero" title="jQuery DJ Hero" width="500"  /></p>
<h3>30.<a href="http://designlovr.com/examples/dynamic_stack_of_index_cards/" target="_blank">Dynamic Stacking Cards</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/dynamic-stacking-cards-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>31.<a href="http://www.alexandtheweb.com/demos/transitions-test.html" target="_blank">另一个CSS3图片画廊效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/image-gallery-css3-animations.jpg" alt="" title="" width="500"  /></p>
<h3>32.<a href="http://www.satine.org/research/webkit/snowleopard/snowstack.html" target="_blank">雪堆(使用方向键控制)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/snow-stack-control-with-arrow-keys-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>33.<a href="http://stuffandnonsense.co.uk/content/demo/cannybill/21-10-2009/pricing.html" target="_blank">CSS3动画版价格栏</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/pricing-column-css3-animations.jpg" alt="CSS3动画版价格栏" title="CSS3动画版价格栏" width="500"  /></p>
<h3>34.<a href="http://demo.marcofolio.net/slick_jquery_css3_menu/default.html" target="_blank">平滑jQuery+CSS3菜单</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/slick-jQuery-menu-css3-animations.jpg" alt="平滑jQuery+CSS3菜单" title="平滑jQuery+CSS3菜单" width="500"  /></p>
<h3>35.<a href="http://www.kamikazemusic.com/demo/csstabs.html" target="_blank">CSS标签(无JavaScript)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/tabs-without-javascript-css3-animations.jpg" alt="CSS标签(无JavaScript)" title="CSS标签(无JavaScript)" width="500"  /></p>
<h3>36.<a href="http://development.tobypitman.com/css/menu.html" target="_blank">CSS标签菜单(无JavaScript)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/tab-menus-without-javascript-css3-animations.jpg" alt="CSS标签菜单(无JavaScript)" title="CSS标签菜单(无JavaScript)" width="500"  /></p>
<h3>37.<a href="http://o.sitepen.com/labs/code/cssDock/" target="_blank">SVG+CSS3鱼眼菜单</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/svg-fisheye-menu-css3-animations.jpg" alt="VG+CSS3鱼眼菜单" title="VG+CSS3鱼眼菜单" width="500"  /></p>
<h3>38.<a href="http://webkit.org/blog-files/leaves/index.html" target="_blank">CSS3落叶效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/falling-leaves-css3-animations.jpg" alt="CSS3落叶效果" title="CSS3落叶效果" width="500"  /></p>
<h3>39.<a href="http://samples.webmatze.de/rotating_image_gallery.htm" target="_blank">CSS3旋转图集效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/rotating-gallery-css3-animations.jpg" alt="CSS3旋转图集效果" title="CSS3旋转图集效果" width="500"  /></p>
<h3>40.<a href="http://www.newmediacampaigns.com/files/http://www.webdesignerwall.com/wp-content/uploads/2010/02/nicer-navigation-with-css-transitions/demo.html" target="_blank">CSS3下拉菜单</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/dropdown-menu-css3-animations.jpg" alt="CSS3下拉菜单" title="CSS3下拉菜单" width="500"  /></p>
<h3>41.<a href="http://blog.gesteves.com/post/261593774/im-done-star-wars-opening-crawl-using-only-html" target="_blank">星球大战风格爬行文字(纯HTML+CSS)</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/star-wars-crawl-css3-animations.jpg" alt="星球大战风格爬行文字(纯HTML+CSS)" title="星球大战风格爬行文字(纯HTML+CSS)" width="500"  /></p>
<h3>42.<a href="http://webkit.org/demos/sticky-notes/" target="_blank">CSS3即时贴</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/sticky-notes-css3-animation.jpg" alt="CSS3即时贴" title="CSS3即时贴" width="500"  /></p>
<h3>43.<a href="http://natbat.net/code/clientside/css/snowflakes/" target="_blank">css3雪花</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/Snowflakes-css3-animations.jpg" alt="css3雪花" title="css3雪花" width="500"  /></p>
<h3>44.<a href="http://www.niquelao.net/wp-content/uploads/2009/12/example1.html" target="_blank">又一个鱼眼效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/another-fisheye-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>45.<a href="http://www.cssplay.co.uk/menu/css3-animation.html" target="_blank">CSS3逐帧动画</a></h3>
<p>　　第一个CSS3逐帧动画实例需要你持续使用鼠标点击图片，当播放到最后一帧时它会自动播放第一帧，如此循环，但第一个实例只能在FireFox和Opera下实现。第二个Css3逐帧动画实例需要你使用鼠标在图片上移动，依旧是mousemove这个动作，只要鼠标在移动图片动画就会持续播放，但动画的播放速度是与你的鼠标移动速度有关的，该实例支持Safari, Google Chrome, IE8, Firefox 和 Opera。<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2010/03/Frame-by-Frame-css3-animations.jpg" alt="CSS3逐帧动画" title="CSS3逐帧动画" width="500"  /></p>
<h3>46.<a href="http://anthonycalzadilla.com/css3-ATAT/index-bones.html" target="_blank">全地域装甲载具</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/at-walker-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>47.<a href="http://www.thecssninja.com/demo/css_accordion/#Section2" target="_blank">又一个CSS3手风琴效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/Another-Accordion-css3-animations.jpg" alt="又一个CSS3手风琴效果" title="又一个CSS3手风琴效果" width="500"  /></p>
<h3>48.<a href="http://files.myopera.com/FataL/pres/pres.xml#name" target="_blank">无Flash版动态展示</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/dynamic-presentation-without-flash-css3-animations.jpg" alt="CSS3实例" title="CSS3实例" width="500"  /></p>
<h3>49.<a href="http://elliottrothman.com/files/smoothie.html" target="_blank">平滑菜单栏</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/smoothie-css3-animations.jpg" alt="平滑菜单栏" title="平滑菜单栏" width="500"  /></p>
<h3>50.<a href="http://24ways.org/2009/css-animations" target="_blank">loading旋转效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2010/03/spinner-css3-animations.jpg" alt="loading旋转效果" title="loading旋转效果" width="500"  /></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看CSS3最新教程。 </p>
<p>英文原文:<a title="50 Awesome Animations made with CSS3" href="http://www.1stwebdesigner.com/development/50-awesome-css3-animations/" target="_blank">50 Awesome Animations made with CSS3</a><br />
翻译原文:<a title="用CSS3制作50个超棒动画效果教程" href="http://blog.bingo929.com/50-awesome-css3-animations.html">用CSS3制作50个超棒动画效果教程</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="用CSS3制作50个超棒动画效果教程" href="http://blog.bingo929.com/50-awesome-css3-animations.html">http://blog.bingo929.com/50-awesome-css3-animations.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html" title="提升你设计水平的CSS3新技术 (2009-07-28)">提升你设计水平的CSS3新技术</a> (14)</li>
	<li><a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html" title="一起感受HTML5和CSS3的能量 (2009-08-10)">一起感受HTML5和CSS3的能量</a> (29)</li>
	<li><a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html" title="5个CSS3技术实现设计增强 (2009-08-24)">5个CSS3技术实现设计增强</a> (7)</li>
	<li><a href="http://blog.bingo929.com/png-transparency-in-ie6.html" title="3种修复IE6 PNG图片透明度问题的方法 (2008-12-09)">3种修复IE6 PNG图片透明度问题的方法</a> (8)</li>
	<li><a href="http://blog.bingo929.com/html5-ie-enabling-script.html" title="让所有IE支持HTML5的解决方案 (2009-10-13)">让所有IE支持HTML5的解决方案</a> (11)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/50-awesome-css3-animations.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>你需要了解的21个CSS惊人技巧</title>
		<link>http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html</link>
		<comments>http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 15:00:04 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2720</guid>
		<description><![CDATA[
　　级联样式表(CSS)在当代Web设计中已经成为重要的环节，如果没有CSS现在的网站将像10年前一样不堪入目。随着CSS技术的普及，越来越多的高质量CSS教程涌入互联网，让我们的学习更加方便。... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/21-css-title.jpg" alt="21-css-技巧" title="21-css-技巧" width="500" height="150" class="alignnone size-full wp-image-2721" /></a><br />
　　级联样式表(CSS)在当代Web设计中已经成为重要的环节，如果没有<a href="http://blog.bingo929.com/category/technology/css">CSS</a>现在的网站将像10年前一样不堪入目。随着<a href="http://blog.bingo929.com/tag/divcss">CSS</a>技术的普及，越来越多的高质量CSS教程涌入互联网，让我们的学习更加方便。下面彬Go向大家推荐21个惊人的CSS技巧，相信其中必有你想不到的。还等什么，继续往下看吧！<br />
<span id="more-2720"></span><br />
<strong><span style="color: #ff6600;">您还可以参考以下CSS相关教程及资源:</span></strong><br />
《<a href="http://blog.bingo929.com/css-sprites-css-techniques-tools-tutorials.html">CSS Sprites(CSS图像拼合技术)教程、工具集合</a>》<br />
《<a href="http://blog.bingo929.com/css-div-css-xhtml-css.html">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a>》<br />
《<a href="http://blog.bingo929.com/30-css-tec-examples.html">精选30个优秀的CSS技术和实例</a><br />
《<a href="http://blog.bingo929.com/spice-up-your-images-with-css-5-way.html">使用CSS为图片添加更多趣味的5种方法</a>》</p>
<h3>1.<a target="_blank" href="http://www.cssplay.co.uk/menu/slide_show">CSS跨浏览器幻灯片</a></h3>
<p><a target="_blank" href="http://blog.bingo929.com/wp-content/uploads/2009/10/cross-browser-slide-show.jpg"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/cross-browser-slide-show-500x331.jpg" alt="跨浏览器CSS幻灯片" title="跨浏览器CSS幻灯片" width="500" height="331" class="alignnone size-medium wp-image-2726" /></a><br />
<em>点击上图查看清晰原图</em><br />
演示了如何仅适用CSS打造一个跨浏览器的图片画廊</p>
<h3>2.<a target="_blank" href="http://www.frankmanno.com/ideas/css-imagemap/">基于CSS的图片地图</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-only-image-map.jpg" alt="CSS-图片地图" title="CSS-图片地图" width="341" height="261" class="alignnone size-full wp-image-2731" /><br />
这个教程演示了如何使用纯CSS创建一个&#8221;疯狂&#8221;的图片地图。</p>
<h3>3.<a target="_blank" href="http://www.cssplay.co.uk/menu/lightbox-hover.html">纯CSS无JavaScript的LightBox</a></h3>
<p><a target="_blank" href="http://blog.bingo929.com/wp-content/uploads/2009/10/Css-Only-LightBox.jpg"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/Css-Only-LightBox-499x255.jpg" alt="纯CSS无JavaScript的LightBox" title="纯CSS无JavaScript的LightBox" width="499" height="255" class="alignnone size-medium wp-image-2732" /></a><br />
<em>点击上图查看清晰原图</em></p>
<h3>4.<a target="_blank" href="http://www.ampsoft.net/webdesign-l/image-button.html">CSS图片替换技术制作的按钮</a></h3>
<p><a href="http://blog.bingo929.com/"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/image-replacement-submit-button.jpg" alt="CSS图片替换技术制作的按钮" title="CSS图片替换技术制作的按钮" width="439" height="99" class="alignnone size-full wp-image-2736" /></a><br />
使用CSS将表单提交按钮替换为图片，如果禁用CSS将变回普通按钮。</p>
<h3>5.<a target="_blank" href="http://www.pmob.co.uk/pob/animated.htm">用CSS实现动画导航菜单</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/animated-navigation-menu.jpg" alt="CSS-导航菜单-动画" title="CSS-导航菜单-动画" width="318" height="71" class="alignnone size-full wp-image-2724" /></p>
<h3>6.<a target="_blank" href="http://www.zabdesign.de/pro/public/sitemap/sitemap-styled.html">用CSS创建类似树形导航菜单</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/tree-like-navigation.png" alt="CSS-树形导航" title="CSS-树形导航" width="334" height="247" class="alignnone size-full wp-image-2723" /></p>
<h3>7.<a target="_blank" href="http://www.zabdesign.de/pro/public/sitemap/sitemap-styled.html">CSS渐变文字效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/css-gradient-effect.jpg" alt="CSS渐变文字效果" title="CSS渐变文字效果" width="477" height="147" class="alignnone size-full wp-image-2728" /></p>
<h3>8.<a target="_blank" href="http://www.webdesignerwall.com/tutorials/css-menu-list-design/">CSS目录菜单设计</a></h3>
<p><a target="_blank" href="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-Menu-List.png"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-Menu-List-500x169.png" alt="CSS-目录菜单" title="CSS-目录菜单" width="500" height="169" class="alignnone size-medium wp-image-2730" /></a><br />
<em>点击上图查看清晰原图</em><br />
很容易理解的关于使用CSS border属性或CSS背景图属性实现目录菜单的教程。</p>
<h3>9.<a target="_blank" href="http://www.alistapart.com/articles/negativemargins/">使用CSS负margin创建自适应布局</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/liquid-web-layout-css-500x177.jpg" alt="CSS负margin创建自适应布局" title="CSS负margin创建自适应布局" width="500" height="177" class="alignnone size-medium wp-image-2737" /></p>
<h3>10.<a target="_blank" href="http://fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css/">使用CSS固定你的页脚</a></h3>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/10/broken.jpg"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/broken-500x389.jpg" alt="CSS-固定-页脚" title="CSS-固定-页脚" width="500" height="389" class="alignnone size-medium wp-image-2747" /></a><br />
<em>点击上图查看清晰原图</em><br />
你也许会遇到这种情况:当你为每个页面设置相同的页脚后，有些页面的主题内容量很少，使得页脚自动向上移动，看上去的浏览器下面很空。这个教程将教你如何使用CSS固定页脚在页面底部来解决这个头疼的问题。</p>
<h3>11.<a target="_blank" href="http://veerle.duoh.com/blog/comments/simple_scalable_css_based_breadcrumbs/">简单、灵活的CSS面包屑导航</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/scalable-breadcrumb-navigation.jpg" alt="CSS-面包屑-导航" title="CSS-面包屑-导航" width="356" height="45" class="alignnone size-full wp-image-2740" /></p>
<h3>12.<a target="_blank" href="http://www.pearsonified.com/2006/09/snazzy_pullquotes_for_your_blo.php"> 为你的博客创建时髦的引用(Pullquotes)</a></h3>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/10/pullquotes-css.png"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/pullquotes-css-500x157.png" alt="pullquotes-css" title="pullquotes-css" width="500" height="157" class="alignnone size-medium wp-image-2739" /></a></p>
<h3>13.<a target="_blank" href="http://www.thewojogroup.com/2008/12/css-stacked-bar-graphs/">CSS实现的柱状图表</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/stacked-bar-graph.jpg" alt="CSS-图表" title="CSS-图表" width="444" height="305" class="alignnone size-full wp-image-2741" /></p>
<h3>14.<a target="_blank" href="http://www.smileycat.com/miaow/archives/000230.php">如何为链接列表创建块级悬停效果</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/Block-Hover-CSS-List.png" alt="CSS-技巧" title="CSS-技巧" width="414" height="286" class="alignnone size-full wp-image-2725" /></p>
<h3>15.<a target="_blank" href="http://www.alistapart.com/articles/multicolumnlists">CSS多列列表</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/Multi-Column-Lists.png" alt="CSS多列列表" title="CSS多列列表" width="458" height="133" class="alignnone size-full wp-image-2738" /></p>
<h3>16.<a target="_blank" href="http://css-tricks.com/date-display-with-sprites/">用CSS Sprites技术实现日期显示</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/Display-Date-Using-Sprites.png" alt="用CSS Sprites技术实现日期显示" title="用CSS Sprites技术实现日期显示" width="417" height="165" class="alignnone size-full wp-image-2734" /></p>
<h3>17.<a target="_blank" href="http://css-tricks.com/date-badges-and-comment-bubbles-for-your-blog/">使用CSS美化你的日期和评论</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/date-comment-badges.jpg" alt="CSS" title="CSS" width="269" height="172" class="alignnone size-full wp-image-2733" /></p>
<h3>18.<a target="_blank" href="http://www.devirtuoso.com/2009/07/how-to-build-a-css-image-viewer-the-clever-way/">使用CSS创建图片浏览器</a></h3>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-Image-viewer.jpg"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-Image-viewer-500x296.jpg" alt="CSS-图片浏览器" title="CSS-图片浏览器" width="500" height="296" class="alignnone size-medium wp-image-2729" /></a><br />
<em>点击上图查看清晰原图</em></p>
<h3>19.<a target="_blank" href="http://www.devirtuoso.com/2009/07/creating-a-css-image-preloader/">创建CSS图片预载</a></h3>
<p>无需JavaScript，仅使用CSS背景图属性实现图片的预载。</p>
<h3>20.<a target="_blank" href="http://css-tricks.com/css-trick-fade-out-the-bottom-of-pages-with-a-fixed-position-image/">从页面底部淡出效果</a></h3>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/10/Fade-Out-Bottom.jpg"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/Fade-Out-Bottom-500x236.jpg" alt="CSS-淡出" title="CSS-淡出" width="500" height="236" class="alignnone size-medium wp-image-2735" /></a><br />
<em>点击上图查看清晰原图</em></p>
<h3>21.<a target="_blank" href="http://www.cssnewbie.com/12-creative-and-cool-uses-for-the-css-border-property/">创意且很酷的CSS边框属性</a></h3>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-Border-Property.jpg"><img src="http://blog.bingo929.com/wp-content/uploads/2009/10/CSS-Border-Property-500x175.jpg" alt="CSS-Border-属性" title="CSS-Border-属性" width="500" height="175" class="alignnone size-medium wp-image-2727" /></a></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看CSS最新教程及资源。 </p>
<p>英文原文:<a title="21 Amazing CSS Techniques You Should Know" href="http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/" target="_blank">21 Amazing CSS Techniques You Should Know</a><br />
翻译原文:<a title="你需要了解的21个CSS惊人技巧" href="http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html">你需要了解的21个CSS惊人技巧</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="你需要了解的21个CSS惊人技巧" href="http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html">http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/tianjin-ma-jiang-mahjong-contest-website-ui-design-css.html" title="近期作品:麻将电视赛官网UI设计+前端开发 (2009-06-13)">近期作品:麻将电视赛官网UI设计+前端开发</a> (44)</li>
	<li><a href="http://blog.bingo929.com/css-reset-collection.html" title="目前比较全的CSS重设(reset)方法总结 (2008-11-24)">目前比较全的CSS重设(reset)方法总结</a> (10)</li>
	<li><a href="http://blog.bingo929.com/css-browser-support.html" title="目前最全的浏览器/CSS选择器兼容性总结(2009-8-10更新) (2009-02-25)">目前最全的浏览器/CSS选择器兼容性总结(2009-8-10更新)</a> (17)</li>
	<li><a href="http://blog.bingo929.com/css-div-css-xhtml-css.html" title="学无止境的CSS(xHTML+CSS技巧教程资源大全) (2009-06-17)">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a> (20)</li>
	<li><a href="http://blog.bingo929.com/5-techniques-to-acquaint-you-with-css-3.html" title="你应当了解的5个CSS3新技术 (2009-01-08)">你应当了解的5个CSS3新技术</a> (16)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/21-amazing-css-techniques-you-should-know.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>99款高质量免费(X)HTML/CSS模板</title>
		<link>http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html</link>
		<comments>http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html#comments</comments>
		<pubDate>Fri, 23 Oct 2009 03:59:06 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2698</guid>
		<description><![CDATA[
　　大家都清楚一个网站象征着你和你的品牌，这取决于你如何构建自己的网站。正因为Wordpress越来越受到互联网设计群体的关注，它并不代表最基本的(X)HTML/CSS很丑、很杂乱和单调。彬Go将向... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html"><img width="500" height="150" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/div-css-xhtml-title.jpg" alt="div-css-xhtml-模板" /></a></p>
<p>　　大家都清楚一个网站象征着你和你的品牌，这取决于你如何构建自己的网站。正因为Wordpress越来越受到互联网设计群体的关注，它并不代表最基本的(X)HTML/<a href="http://blog.bingo929.com/tag/css">CSS</a>很丑、很杂乱和单调。彬Go将向大家推荐99个高质量的免费<a href="http://blog.bingo929.com/tag/divcss">(X)HTML/CSS</a>模板，你可以用于自己或公司企业的网站。<br />
<span id="more-2698"></span><br />
<strong><span style="color: #ff6600;">您还可以参考以下(X)HTML/CSS相关教程及资源:</span></strong><br />
《<a href="http://blog.bingo929.com/30-excellent-css-based-navigation-and-buttons-tutorial.html">30个基于CSS的导航和按钮优秀设计教程</a>》<br />
《<a href="http://blog.bingo929.com/best-of-2008-for-web-developers.html">2008年最佳Web设计/前端开发技巧、脚本及资源总结</a>》<br />
《<a href="http://blog.bingo929.com/30-css-tec-examples.html">精选30个优秀的CSS技术和实例</a>》<br />
《<a href="http://blog.bingo929.com/43-div-css-psd-xhtml-css.html">43个实例xHTML+CSS(DIV+CSS)网页及导航布局教程</a>》</p>
<h3>高质量免费(X)HTML/CSS模板</h3>
<h4 style="font-size:16px;">01. T-20</h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/t20/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-01.jpg" alt="css-xhtml-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/t20/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/t20.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">02. Shape</h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=54&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-02.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=54&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=54&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">03. Your Business</h4>
<p><a href="http://www.webpagedesign.com.au/Free_Templates/biztemplate/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-03.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.webpagedesign.com.au/Free_Templates/biztemplate/" target="_blank">在线预览</a> <a href="http://www.webpagedesign.com.au/wp-content/uploads/2009/02/biz.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">04.Solitude </h4>
<p><a href="http://demo.templateworld.com/zero/in_action/solitude/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-04.jpg" alt="div-css-模板" /></a><br />
<a href="http://demo.templateworld.com/zero/in_action/solitude/" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=55&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">05. Fashion Club (Registration Required)</h4>
<p><a href="http://www.templatekingdom.com/demo/CSS-Templates/Fashion/KG-F0001-FA/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-05.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/CSS-Templates/Fashion/KG-F0001-FA/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/3955/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">06. O’No! Typography</h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/o-no-typography/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-06.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/o-no-typography/" target="_blank">在线预览</a> <a href="http://media1.smashingmagazine.com/images/type-layouts/o-no-typography.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">07.Projection </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=53&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-07.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=53&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=53&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">08.Fresh Restaurant </h4>
<p><a href="http://www.templateyes.com/preview/021/index.html" target="_blank"><img width="500" height="269" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-08.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateyes.com/preview/021/index.html" target="_blank">在线预览</a> <a href="http://www.templateyes.com/dwnld/wt/template021.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">09.Jungleland 1.0 </h4>
<p><a href="http://www.styleshout.com/templates/preview/Jungleland1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-09.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/Jungleland1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=30&#038;url=templates/downloads/Jungleland1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">10.SindromK </h4>
<p><a href="http://indeziner.com/free-css-templates/sindromk-a-new-free-css-templates/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-10.jpg" alt="div-css-模板" /></a><br />
<a href="http://indeziner.com/free-css-templates/sindromk-a-new-free-css-templates/" target="_blank">在线预览</a> <a href="http://media.indeziner.com:81/freecsstemplates/sindromk.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">11. Environment Brand Design</h4>
<p><a href="http://www.opensourcetemplates.org/templates/preview/1361070670/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-11.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.opensourcetemplates.org/templates/preview/1361070670/" target="_blank">在线预览</a> <a href="http://www.opensourcetemplates.org/templates/download/1361070670/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">12.Colourise 1.0 </h4>
<p><a href="http://www.styleshout.com/templates/preview/Colourise1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-12.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/Colourise1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=22&#038;url=templates/downloads/Colourise1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">13.Charcoal (Registration Required) </h4>
<p><a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/BNB-F0001-WEBD/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-13.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/BNB-F0001-WEBD/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/3956/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">14.H Free Software </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/h_free_software/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-14.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/h_free_software/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=h_free_software.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">15. Dark and Sleek Web Design</h4>
<p><a href="http://sixrevisions.com/tutorials/web-development-tutorials/how-to-code-a-dark-and-sleek-web-design/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-15.jpg" alt="div-css-模板" /></a><br />
<a href="http://sixrevisions.com/tutorials/web-development-tutorials/how-to-code-a-dark-and-sleek-web-design/" target="_blank">在线预览</a> <a href="http://downloads.sixrevisions.com/dark_and_sleek_layout.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">16.Photo Portfolio </h4>
<p><a href="http://www.templatesbox.com/templates/272.htm" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-16.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatesbox.com/templates/272.htm" target="_blank">在线预览</a> <a href="http://www.templatesbox.com/download/272.htm" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">17. FACING</h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=46&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-17.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=46&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=46&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">18.Symisun </h4>
<p><a href="http://www.opendesigns.org/preview/?template=1266" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-18.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.opendesigns.org/preview/?template=1266" target="_blank">在线预览</a> <a href="http://www.opendesigns.org/designs/?id=1266" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">19.Luvbold </h4>
<p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/luvbold/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-19.jpg" alt="div-css-模板" /></a><br />
<a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/luvbold/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/luvbold.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">20.freetemplates </h4>
<p><a href="http://csscreme.com/freetemplates/flower_shop/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-20.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/flower_shop/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=flower_shop.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">21.2 Breed </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=50&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-21.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=50&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=50&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">22.Extreme Georgia </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/extreme-georgia/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-22.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/extreme-georgia/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/extreme-georgia.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">23.Electronix </h4>
<p><a href="http://csscreme.com/freetemplates/electronix/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-23.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/electronix/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=electronix.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">24.Catalogio </h4>
<p><a href="http://www.nuviotemplates.com/preview.php?template=catalogio-01" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-24.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.nuviotemplates.com/preview.php?template=catalogio-01" target="_blank">在线预览</a> <a href="http://www.nuviotemplates.com/download.php?template=catalogio-01" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">25.theARTofTYPE </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/the-art-of-type/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-25.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/the-art-of-type/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/the-art-of-type.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">26.Alexx C </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/alexx_c/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-26.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/alexx_c/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=alexx_c.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">27. Greefies</h4>
<p><a href="http://www.webpagedesign.com.au/Free_Templates/greefies/home.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-27.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.webpagedesign.com.au/Free_Templates/greefies/home.html" target="_blank">在线预览</a> <a href="http://www.webpagedesign.com.au/wp-content/uploads/2008/05/greefies.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">28. FreshMedia 1.0</h4>
<p><a href="http://www.styleshout.com/templates/preview/FreshMedia1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-28.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/FreshMedia1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=21&#038;url=templates/downloads/FreshMedia1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">29.Dusky </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=52&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-29.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=52&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=52&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">30.Creative Media </h4>
<p><a href="http://csscreme.com/freetemplates/creative_media/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-30.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/creative_media/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=creative_media.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">31.Package (Registration Required) </h4>
<p><a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/F-CSS-01/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-31.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/F-CSS-01/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/2709/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">32.Internet Music </h4>
<p><a href="http://www.solucija.com/preview/Internet_Music" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-32.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.solucija.com/preview/Internet_Music" target="_blank">在线预览</a> <a href="http://www.solucija.com/templates/download/Internet_Music.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">33.Typographic Times </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/typographic-times/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-33.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/typographic-times/" target="_blank">在线预览</a> <a href="http://media1.smashingmagazine.com/images/type-layouts/typographic-times-template.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">34. Turrion</h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/turrion/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-34.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/turrion/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=turrion.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">35.David Kruger </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/davidkruger/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-35.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/davidkruger/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/davidkruger.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">36. Clean Web 2.0 Style Web Design</h4>
<p><a href="http://sixrevisions.com/demo/web2_layout/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-36.jpg" alt="div-css-模板" /></a><br />
<a href="http://sixrevisions.com/demo/web2_layout/index.html" target="_blank">在线预览</a> <a href="http://downloads.sixrevisions.com/clean-web-2.0-source.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">37.FreshPick 1.0 </h4>
<p><a href="http://www.styleshout.com/templates/preview/FreshPick1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-37.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/FreshPick1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=29&#038;url=templates/downloads/FreshPick1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">38. Artificial Casting</h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=51&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-38.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=51&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=51&#038;flag=1" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">39.Business Company </h4>
<p><a href="http://csscreme.com/freetemplates/business_company_darkblue/" target="_blank"><img width="500" height="278" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-39.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/business_company_darkblue/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=business_company_darkblue.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">40.JavaScript Tricks </h4>
<p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/javascript-tricks/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-40.jpg" alt="div-css-模板" /></a><br />
<a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/javascript-tricks/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/javascript-tricks.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">41.Treasure hunters </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/treasure_hunters/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-41.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/treasure_hunters/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=treasure_hunters.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">42.Dating &#038; Wedding (Registration Required) </h4>
<p><a href="http://www.templatekingdom.com/demo/Website-Templates/Dating-And-Wedding/ABN-0004-DAW/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-42.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/Website-Templates/Dating-And-Wedding/ABN-0004-DAW/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/4984/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">43.TEMPER </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=48&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-43.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=48&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=48&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">44.EXTREME UPDATES </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=2&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-44.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=2&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=2&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">45. Experimental</h4>
<p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/experimental/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-45.jpg" alt="div-css-模板" /></a><br />
<a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/experimental/" target="_blank">在线预览</a> <a href="http://media1.smashingmagazine.com/images/type-layouts/experimental.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">46.Maintenance </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/maintenance/" target="_blank"><img width="500" height="222" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-46.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/maintenance/" target="_blank">在线预览</a> <a href="http://media1.smashingmagazine.com/images/type-layouts/maintenance.rar" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">47.Ubly </h4>
<p><a href="http://csstemplatesmarket.com/freewordpressthemes/index.php?wptheme=Ubly" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-47.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freewordpressthemes/index.php?wptheme=Ubly" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=ubly.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">48.Shalom Typo </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/shalom-typo/" target="_blank"><img width="500" height="222" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-48.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/shalom-typo/" target="_blank">在线预览</a> <a href="http://media1.smashingmagazine.com/images/type-layouts/shalom-typo.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">49.Beez design </h4>
<p><a href="http://csscreme.com/freetemplates/beez_design/" target="_blank"><img width="500" height="278" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-49.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/beez_design/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=beez_design.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">50.MiniCon </h4>
<p><a href="http://www.pukekodesigns.co.nz/client/minicon/index.htm" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-50.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.pukekodesigns.co.nz/client/minicon/index.htm" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/minicon.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">51.ec mania </h4>
<p><a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/F-CSS-02/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-51.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/F-CSS-02/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/2710/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">52.Tool shop </h4>
<p><a href="http://csscreme.com/freetemplates/tool_shop/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-52.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/tool_shop/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=tool_shop.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">53.REDISH </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=47&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-53.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=47&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=47&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">54.Rock Band </h4>
<p><a href="http://www.templateyes.com/preview/034/index.html" target="_blank"><img width="500" height="259" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-54.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateyes.com/preview/034/index.html" target="_blank">在线预览</a> <a href="http://www.templateyes.com/dwnld/wt/template034.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">55.Liquid</h4>
<p><a href="http://www.nuviotemplates.com/preview.php?template=liquid-03" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-55.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.nuviotemplates.com/preview.php?template=liquid-03" target="_blank">在线预览</a> <a href="http://www.nuviotemplates.com/download.php?template=liquid-03" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">56.Keep It Simple 1.0 </h4>
<p><a href="http://www.styleshout.com/templates/preview/KeepItSimple1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-56.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/KeepItSimple1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=27&#038;url=templates/downloads/KeepItSimple1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">57.Typo Today </h4>
<p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/typo-today/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-57.jpg" alt="div-css-模板" /></a><br />
<a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/typo-today/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/typo-today.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">58.Impress </h4>
<p><a href="http://www.nuviotemplates.com/preview.php?template=impress-06" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-58.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.nuviotemplates.com/preview.php?template=impress-06" target="_blank">在线预览</a> <a href="http://www.nuviotemplates.com/download.php?template=impress-06" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">59.Art &#038; Photography (Registration Required) </h4>
<p><a href="http://www.templatekingdom.com/demo/Website-Templates/Art-And-Photography/SMP-0005-ART/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-59.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/Website-Templates/Art-And-Photography/SMP-0005-ART/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/4511/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">60.Inverted Headline </h4>
<p><a href="http://www.opendesigns.org/preview/?template=1447" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-60.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.opendesigns.org/preview/?template=1447" target="_blank">在线预览</a> <a href="http://www.opendesigns.org/designs/?id=1447" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">61.Business Company </h4>
<p><a href="http://indeziner.com/free-css-templates/business-company-free-css-template/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-61.jpg" alt="div-css-模板" /></a><br />
<a href="http://indeziner.com/free-css-templates/business-company-free-css-template/" target="_blank">在线预览</a> <a href="http://media.indeziner.com:81/freecsstemplates/business-company.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">62.JET 30 </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=1&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-62.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=1&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=1&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">63.BREAKING ONTOP</h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=13&#038;flag=1" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-63.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=13&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=13&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">64.Quartz istorage </h4>
<p><a href="http://csscreme.com/freetemplates/quartz_istorage/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-64.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/quartz_istorage/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=quartz_istorage.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">65.Fireworks </h4>
<p><a href="http://www.freecsstemplates.org/preview/fireworks" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-65.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.freecsstemplates.org/preview/fireworks" target="_blank">在线预览</a> <a href="http://www.freecsstemplates.org/download/zip/fireworks" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">66.UrbanArtist 1.0 </h4>
<p><a href="http://www.styleshout.com/templates/preview/UrbanArtist1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-66.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/UrbanArtist1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=25&#038;url=templates/downloads/UrbanArtist1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">67.Eastern Tales </h4>
<p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/eastern-tales/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-67.jpg" alt="div-css-模板" /></a><br />
<a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/eastern-tales/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/eastern-tales.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">68.Unbound 1.0 </h4>
<p><a href="http://www.styleshout.com/templates/preview/Unbound1-0/index.html" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-68.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.styleshout.com/templates/preview/Unbound1-0/index.html" target="_blank">在线预览</a> <a href="http://www.styleshout.com/hits.php?type=tmp&#038;id=23&#038;url=templates/downloads/Unbound1-0.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">69.DelliStore </h4>
<p><a href="http://www.dellustrations.com/dellistore/" target="_blank"><img width="500" height="370" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-69.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.dellustrations.com/dellistore/" target="_blank">在线预览</a> <a href="http://www.smashingmagazine.com/2009/05/02/dellistore-a-free-professional-cssxhtmlpsd-template/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">70.NEW RISE </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=4&#038;flag=1" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-70.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=4&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=4&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">71.Miniml </h4>
<p><a href="http://www.nuviotemplates.com/preview.php?template=miniml-03" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-71.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.nuviotemplates.com/preview.php?template=miniml-03" target="_blank">在线预览</a> <a href="http://www.nuviotemplates.com/download.php?template=miniml-03" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">72.Greenie Theme </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/greenie-theme/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-72.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/greenie-theme/" target="_blank">在线预览</a> <a href="http://media1.smashingmagazine.com/images/type-layouts/greenie.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">73.F-GEN-02 (Registration Required) </h4>
<p><a href="http://www.templatekingdom.com/demo/Website-Templates/Travel/F-GEN-02/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-73.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/Website-Templates/Travel/F-GEN-02/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/demo/Website-Templates/Travel/F-GEN-02/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">74.Worldlines </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/worldlines/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-74.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/worldlines/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/worldlines.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">75.Web Application</h4>
<p><a href="http://www.opendesigns.org/preview/?template=1433" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-75.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.opendesigns.org/preview/?template=1433" target="_blank">在线预览</a> <a href="http://www.opendesigns.org/designs/?id=1433" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">76.Buesiness Company </h4>
<p><a href="http://www.stylishtemplate.com/demos/web-template-4426/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-76.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.stylishtemplate.com/demos/web-template-4426/" target="_blank">在线预览</a> <a href="http://www.stylishtemplate.com/dls/web-template-4426.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">77.GREEN WEB </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=5&#038;flag=1" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-77.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=5&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=5&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">78.WaterColored Portfolio </h4>
<p><a href="http://www.pvmgarage.com/downloads/watercolored_portfolio/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-78.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.pvmgarage.com/downloads/watercolored_portfolio/" target="_blank">在线预览</a> <a href="http://www.pvmgarage.com/downloads/WaterColored_Portfolio_Coded_PVMGARAGE.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">79.Blue Inc </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/blue-inc/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-79.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/blue-inc/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/blue-inc.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">80.Musical instruments </h4>
<p><a href="http://csscreme.com/freetemplates/musical_instruments/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-80.jpg" alt="div-css-模板" /></a><br />
<a href="http://csscreme.com/freetemplates/musical_instruments/" target="_blank">在线预览</a> <a href="http://csscreme.com/tpsaveas.php?tp=musical_instruments.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">81.LightSpee </h4>
<p><a href="http://www.opendesigns.org/preview/?template=1928" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-81.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.opendesigns.org/preview/?template=1928" target="_blank">在线预览</a> <a href="http://www.opendesigns.org/designs/?id=1928" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">82.Mirax </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/mirax/index.html" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-82.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/mirax/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=mirax.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">83.The theme </h4>
<p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/bio/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-83.jpg" alt="div-css-模板" /></a><br />
<a href="http://media1.smashingmagazine.com/wp-content/uploads/images/type-layouts/bio/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/bio.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">84.Darkside </h4>
<p><a href="http://www.nuviotemplates.com/preview.php?template=darkside-03" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-84.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.nuviotemplates.com/preview.php?template=darkside-03" target="_blank">在线预览</a> <a href="http://www.nuviotemplates.com/download.php?template=darkside-03" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">85.EarthlingTwo </h4>
<p><a href="http://www.freecsstemplates.org/preview/earthlingtwo" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-85.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.freecsstemplates.org/preview/earthlingtwo" target="_blank">在线预览</a> <a href="http://www.freecsstemplates.org/download/zip/earthlingtwo" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">86.Green Solutions </h4>
<p><a href="http://www.my-free-css-templates.com/cgi-bin/jump2.cgi?ID=356" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-86.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.my-free-css-templates.com/cgi-bin/jump2.cgi?ID=356" target="_blank">在线预览</a> <a href="http://www.my-free-css-templates.com/cgi-bin/jump.cgi?ID=356;v=ZIP" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">87.Strockes (Registration Required) </h4>
<p><a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/F-CSS-03/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-87.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templatekingdom.com/demo/CSS-Templates/Web-Design/F-CSS-03/" target="_blank">在线预览</a> <a href="http://www.templatekingdom.com/Download/action/download/templateId/2711/" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">88.RS14 </h4>
<p><a href="http://ramblingsoul.com/preview/rs14/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-88.jpg" alt="div-css-模板" /></a><br />
<a href="http://ramblingsoul.com/preview/rs14/" target="_blank">在线预览</a> <a href="http://ramblingsoul.com/dl/rs14.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">89.Internet Encyclopedia </h4>
<p><a href="http://www.solucija.com/preview/Internet_Encyclopedia" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-89.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.solucija.com/preview/Internet_Encyclopedia" target="_blank">在线预览</a> <a href="http://www.solucija.com/templates/download/Internet_Encyclopedia.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">90. TRIAL IMPACT </h4>
<p><a href="http://www.templateworld.com/freetemplates/zero/track.php?id=16&#038;flag=1" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-90.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.templateworld.com/freetemplates/zero/track.php?id=16&#038;flag=1" target="_blank">在线预览</a> <a href="http://www.templateworld.com/freetemplates/zero/track.php?id=16&#038;flag=2" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">91.The Radio Station </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/the_radio_station/index.html" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-91.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/the_radio_station/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=the_radio_station.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">92. Ideea Hosting </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/ideea_hosting/index.html" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-92.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/ideea_hosting/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=ideea_hosting.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">93.Simplify </h4>
<p><a href="http://www.nuviotemplates.com/preview.php?template=simplify-02" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-93.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.nuviotemplates.com/preview.php?template=simplify-02" target="_blank">在线预览</a> <a href="http://www.nuviotemplates.com/download.php?template=simplify-02" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">94.Design Style </h4>
<p><a href="http://www.stylishtemplate.com/demos/web-template-4452/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-94.jpg" alt="div-css-模板" /></a><br />
<a href="http://www.stylishtemplate.com/demos/web-template-4452/" target="_blank">在线预览</a> <a href="http://www.stylishtemplate.com/dls/web-template-4452.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">95.Hot box </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/hot-box/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-95.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/hot-box/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/hot-box.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">96.Medical Clinic </h4>
<p><a href="http://csstemplatesmarket.com/freecsstemplates/medical_clinic/index.html" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-96.jpg" alt="div-css-模板" /></a><br />
<a href="http://csstemplatesmarket.com/freecsstemplates/medical_clinic/index.html" target="_blank">在线预览</a> <a href="http://csstemplatesmarket.com/tpsaveas.php?tp=medical_clinic.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">97.Imagination </h4>
<p><a href="http://ramblingsoul.com/preview/imagination/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-97.jpg" alt="div-css-模板" /></a><br />
<a href="http://ramblingsoul.com/preview/imagination/" target="_blank">在线预览</a> <a href="http://ramblingsoul.com/dl/imagination.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">98.Safe As Houses </h4>
<p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/safe-as-houses/" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-98.jpg" alt="div-css-模板" /></a><br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/type-layouts/safe-as-houses/" target="_blank">在线预览</a> <a href="http://media2.smashingmagazine.com/images/type-layouts/safe-as-houses.zip" target="_blank">下载该模板</a></p>
<h4 style="font-size:16px;">99.Free Admin Template </h4>
<p><a href="http://webresourcesdepot.com/wp-content/uploads/file/admin-template/index.html" target="_blank"><img width="500" height="352" src="http://blog.bingo929.com/wp-content/uploads/2009/10/div-css/hqxhct-99.jpg" alt="div-css-模板" /></a><br />
<a href="http://webresourcesdepot.com/wp-content/uploads/file/admin-template/index.html" target="_blank">在线预览</a> <a href="http://www.webresourcesdepot.com/free-admin-template-for-web-applications/" target="_blank">下载该模板</a></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看(X)HTML/CSS最新教程及资源。</p>
<p>英文原文:<a title="99 High-Quality Free (X)HTML/CSS Templates" href="http://www.instantshift.com/2009/09/29/99-high-quality-free-xhtmlcss-templates/" target="_blank">99 High-Quality Free (X)HTML/CSS Templates</a><br />
翻译原文:<a title="99款高质量免费(X)HTML/CSS模板" href="http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html">99款高质量免费(X)HTML/CSS模板</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="99款高质量免费(X)HTML/CSS模板" href="http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html">http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/30-css-tec-examples.html" title="精选30个优秀的CSS技术和实例 (2008-12-04)">精选30个优秀的CSS技术和实例</a> (27)</li>
	<li><a href="http://blog.bingo929.com/css-frameworks-15.html" title="精选15个国外CSS框架 (2008-11-29)">精选15个国外CSS框架</a> (42)</li>
	<li><a href="http://blog.bingo929.com/20-websites-learn-css.html" title="推荐20个让你学习并精通CSS的网站 (2008-10-28)">推荐20个让你学习并精通CSS的网站</a> (35)</li>
	<li><a href="http://blog.bingo929.com/css-div-css-xhtml-css.html" title="学无止境的CSS(xHTML+CSS技巧教程资源大全) (2009-06-17)">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a> (20)</li>
	<li><a href="http://blog.bingo929.com/html5-and-css3-tools-list.html" title="HTML5和CSS3工具资源汇总 (2010-06-28)">HTML5和CSS3工具资源汇总</a> (10)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/99-high-quality-free-xhtml-css-div-templates.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>5个CSS3技术实现设计增强</title>
		<link>http://blog.bingo929.com/5-css3-design-enhancements-div-css.html</link>
		<comments>http://blog.bingo929.com/5-css3-design-enhancements-div-css.html#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:28:41 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2547</guid>
		<description><![CDATA[
　　层叠样式表(css)是Web设计的一种语言，CSS的下一代版本CSS3已经蓄势待发。你是否可望开始使用它们却又不知从何下手呢？虽然还有一些新属性没有得到官方的确认，但是一些浏览器已经开... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html"><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-title.jpg" alt="css3-新特性-教程" title="css3-新特性-教程" width="500" height="150" class="alignnone size-full wp-image-2556" /></a></p>
<p>　　<strong>层叠样式表(css)</strong>是Web设计的一种语言，CSS的下一代版本CSS3已经蓄势待发。你是否可望开始使用它们却又不知从何下手呢？虽然还有一些新属性没有得到官方的确认，但是一些浏览器已经开始支持来自CSS3得新特性了。<br />
　　但问题是——许多浏览器支持了，唯独最主要的Internet Explorer浏览器仍不支持！<br />
　　很多人尤其是中国的前端er们会觉得既然IE不支持，那就先不关心CSS3。其实不应这样的，CSS3现在能为我们带来什么好处呢？至少现在我们就能使用那些CSS3的新特性来进行设计增强。如果你赞成渐进增强这个理念的话，我想你一定会赞同彬Go的看法的~~<br />
<span id="more-2547"></span><br />
<strong><span style="color: #ff6600;">您还可以参考以下CSS3相关教程及资源:</span></strong><br />
《<a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html">一起感受HTML5和CSS3的能量</a>》<br />
《<a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html">提升你设计水平的CSS3新技术</a>》<br />
《<a href="http://blog.bingo929.com/css-div-css-xhtml-css.html">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a>》<br />
《<a href="http://blog.bingo929.com/5-techniques-to-acquaint-you-with-css-3.html">你应当了解的5个CSS3新技术</a>》</p>
<p>设计增强是指在不影响网站可用性的基础上，使用一些高级样式来提升网站的视觉效果。</p>
<p>其实对于如何区分设计增强与不影响可用性的区别还是有一定的困难的:</p>
<ul>
<li><strong>设计增强的例子：</strong>使用border-radius属性为盒模型添加圆角，让网站更富有吸引力。不过，即使圆角属性不被浏览器支持，它也不会影响网站的正常使用。</li>
<li><strong>设计消弱可用性的例子：</strong>在某个元素上面层叠了一个使用了RGBA颜色值背景的元素，上面的元素使用半透明效果，很显然这两个元素都是必须让用户看到的。很显然，有一部分使用旧浏览器的用户想要看到下面的元素内容是很困难的，这种设计就降低了可用性。</li>
</ul>
<p>　　下面彬Go将带你一同学习<strong>5个不同的CSS3属性</strong>，如果从现在起你就开始尝试在你的网站中使用它们，那你将让你的网站<strong>实现既设计增强又不会消弱可用性</strong>。</p>
<p>　　<strong>以下是在应用CSS3设计增强之前的普通效果:</strong><br />
<img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-01.jpg" alt="css3-新特性" title="css3-新特性" width="430" height="430" class="alignnone size-full wp-image-2548" /></p>
<h3>1.透明颜色</h3>
<p><strong>目前支持的浏览器</strong>:Apple Safari 4, Firefox 3.0.5+, Google Chrome 1+</p>
<p>RGBA允许你控制某个特性填充颜色的不透明度，无论是文本、背景、边框还是背景颜色。</p>
<p>设置颜色透明度的时候，你需要使用RGB颜色值，不可以再使用十六进制值，而那个&#8221;A&#8221;则代表透明度，你可以设置从0(透明)到1(不透明)之间的数值。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span>-<span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span>-<span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span>-<span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span>-<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span></div></td></tr></tbody></table></div>
<p>你还可以单独使用RGB值:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.topbox</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">235</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">235</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">235</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.75</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">153</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">153</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">153</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">235</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">235</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">235</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.65</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>有个好消息就是至少你可以使用CSS滤镜单独针对IE浏览器设置背景颜色。<br />
<a href="http://blog.bingo929.com/wp-content/uploads/2009/08/ie_code.png"><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/ie_code-500x115.png" alt="IE条件注释-背景色透明" title="IE条件注释-背景色透明" width="500" height="115" class="alignnone size-medium wp-image-2557" /></a><br />
<em>点击图片查看清晰大图</em><br />
<em>注:由于Wordpress不能显示以上代码，所以将其弄成图片，所以你需要自行写以上代码了哦。</em></p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-02.jpg" alt="css3-教程" title="css3-教程" width="430" height="430" class="alignnone size-full wp-image-2549" /></p>
<h3>2.圆角</h3>
<p><strong>目前支持的浏览器</strong>:Apple Safari 3+, Firefox 1+, Google Chrome 1+</p>
<p>边框半径用于设置和模型每个角的曲率，仿佛有一对与特定的角落虚圆半径(r):</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">border-radius<span style="color: #00AA00;">:</span> r<span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p>虽然border-radius是未来CSS3的一部分，不过现在无论Mozilla(Firefox)和Webkit(Safari和Chrome)都已经有了自己的圆角版本。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p>你也可以单独设置某个角的半径:</p>
<table cellspacing="0" cellpadding="0" border="0" style="margin: 7px 0 13px 2px; border-collapse: collapse;">
<tbody>
<tr>
<td valign="middle" align="center" style="border: 1px solid rgb(153, 153, 153); padding: 10px 31px 10px 10px; width: 191px; background-color: rgb(238, 238, 238);">
<p class="p4"><strong>CSS3</strong></p>
</td>
<td valign="middle" align="center" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 235px; background-color: rgb(238, 238, 238);">
<p class="p4"><strong>Mozilla</strong></p>
</td>
<td valign="middle" align="center" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 257px; background-color: rgb(238, 238, 238);">
<p class="p4"><strong>WebKit</strong></p>
</td>
</tr>
<tr>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 191px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">border-<span style="background-color: rgb(230, 255, 79);">top-right-radius</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 235px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-moz-border-<span style="background-color: rgb(230, 255, 79);">radius-topright</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 257px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-webkit-border-<span style="background-color: rgb(230, 255, 79);">top-right-radius</span></p>
</td>
</tr>
<tr>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 191px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">border-<span style="background-color: rgb(230, 255, 79);">bottom-right-radius</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 235px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-moz-border-<span style="background-color: rgb(230, 255, 79);">radius-bottomright</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 257px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-webkit-border-<span style="background-color: rgb(230, 255, 79);">bottom-right-radius</span></p>
</td>
</tr>
<tr>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 191px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">border-<span style="background-color: rgb(230, 255, 79);">bottom-left-radius</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 235px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-moz-border-<span style="background-color: rgb(230, 255, 79);">radius-bottomleft</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 257px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-webkit-border-<span style="background-color: rgb(230, 255, 79);">bottom-left-radius</span></p>
</td>
</tr>
<tr>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 191px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">border-<span style="background-color: rgb(230, 255, 79);">top-left-radius</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 235px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-moz-border-<span style="background-color: rgb(230, 255, 79);">radius-topleft</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 257px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-webkit-border-<span style="background-color: rgb(230, 255, 79);">top-left-radius</span></p>
</td>
</tr>
<tr>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 191px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">border-<span style="background-color: rgb(230, 255, 79);">radius</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 235px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-moz-border-<span style="background-color: rgb(230, 255, 79);">radius</span></p>
</td>
<td valign="top" style="border: 1px solid rgb(153, 153, 153); padding: 10px; width: 257px;">
<p style="margin: 0px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-webkit-border-<span style="background-color: rgb(230, 255, 79);">radius</span></p>
</td>
</tr>
</tbody>
</table>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-03.jpg" alt="css3-教程" title="css3-教程" width="430" height="430" class="alignnone size-full wp-image-2550" /></p>
<h3>3.文字阴影</h3>
<p><strong>目前支持的浏览器</strong>:Apple Safari 3+, Firefox 3.0.5+, Google Chrome 1+</p>
<p>为文本添加阴影效果，控制阴影左/右和上/下的偏移，还可以设置阴影的颜色。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> x y blur <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p>你可以结合透明颜色值来设置文字阴影的明暗:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p>你还可以让文字有多个阴影，每个阴影属性使用逗号分隔:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">5px</span> <span style="color: #933;">4px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span>.45<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <br />
<span style="color: #933;">15px</span> <span style="color: #933;">-4px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.75<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-04.jpg" alt="css3-实例" title="css3-实例" width="430" height="430" class="alignnone size-full wp-image-2551" /></p>
<h3>4.盒阴影</h3>
<p><strong>目前支持的浏览器</strong>:Apple Safari 4+, Firefox 3+, Google Chrome 1+</p>
<p>为某个和元素添加阴影的CSS3属性声明格式与文本阴影相同:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">box-shadow<span style="color: #00AA00;">:</span> x y blur <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p>和文本阴影一样，Mozilla 和 Webkit 也有他们自己的盒阴影规则:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p>你也可以为某个盒元素添加多个阴影，仍然是使用逗号分隔。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">5px</span> <span style="color: #933;">4px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span>.45<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <br />
<span style="color: #933;">15px</span> <span style="color: #933;">-20px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.75<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">5px</span> <span style="color: #933;">4px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span>.45<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span><br />
<span style="color: #933;">15px</span> <span style="color: #933;">-20px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.75<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">5px</span> <span style="color: #933;">4px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span>.45<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span><br />
<span style="color: #933;">15px</span> <span style="color: #933;">-20px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.75<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-05.jpg" alt="css3-实例教程" title="css3-实例教程" width="430" height="430" class="alignnone size-full wp-image-2552" /></p>
<h3>5.多背景图</h3>
<p><strong>目前支持的浏览器</strong>:Apple Safari 1.3+, Google Chrome 1+</p>
<p>为某个单一元素添加多个背景图的话仅需要为不同的背景图声明之间添加都好来分隔开。当然，你还要为其它浏览器准备一张完整的图片。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>astro-<span style="color: #cc66cc;">127531</span>.png<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>astro-<span style="color: #cc66cc;">127531</span>.png<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>Hubble-<span style="color: #cc66cc;">112993</span>.png<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-06.jpg" alt="css3-实例教程" title="css3-实例教程" width="430" height="430" class="alignnone size-full wp-image-2553" /></p>
<h3>&#8220;买五送一&#8221;-旋转任何元素</h3>
<p><strong>目前支持的浏览器</strong>:Apple Safari 4+, Firefox 3.5+, Google Chrome 1+</p>
<p>虽然它目前不算是CSS3中的一部分，但Webkit已经有了它自己的一套变形属性，Mozilla也在效仿。变形包含了很多不同类型的值，不过其中最有意思也是最有用的就是旋转了。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-webkit-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>-15deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
-moz-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>-15deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></div></td></tr></tbody></table></div>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-07.jpg" alt="css3-旋转变形" title="css3-旋转变形" width="430" height="430" class="alignnone size-full wp-image-2554" /></p>
<p>下图为不支持CSS3的浏览器所呈现出来的样子(如Opera 9):<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2009/08/css3-08.jpg" alt="css3-兼容性" title="css3-兼容性" width="430" height="430" class="alignnone size-full wp-image-2555" /></p>
<p><a href="http://www.webdesignerdepot.com/examples/css3/"><strong>查看实例Demo</strong></a>(需要使用Safari 4+, Firefox 3.5+, or Chrome 1+浏览器)</p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看CSS3最新教程及资源。</p>
<p>英文原文:<a title="5 CSS3 Design Enhancements That You Can Use Today" href="http://www.webdesignerdepot.com/2009/08/5-css3-design-enhancements-that-you-can-use-today/" target="_blank">5 CSS3 Design Enhancements That You Can Use Today</a><br />
翻译原文:<a title="5个CSS3技术实现设计增强" href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html">5个CSS3技术实现设计增强</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="5个CSS3技术实现设计增强" href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html">http://blog.bingo929.com/power-of-html5-css3-div-css.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html" title="一起感受HTML5和CSS3的能量 (2009-08-10)">一起感受HTML5和CSS3的能量</a> (29)</li>
	<li><a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html" title="提升你设计水平的CSS3新技术 (2009-07-28)">提升你设计水平的CSS3新技术</a> (14)</li>
	<li><a href="http://blog.bingo929.com/css-div-css-xhtml-css.html" title="学无止境的CSS(xHTML+CSS技巧教程资源大全) (2009-06-17)">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a> (20)</li>
	<li><a href="http://blog.bingo929.com/5-techniques-to-acquaint-you-with-css-3.html" title="你应当了解的5个CSS3新技术 (2009-01-08)">你应当了解的5个CSS3新技术</a> (16)</li>
	<li><a href="http://blog.bingo929.com/style-your-ordered-list-div-css.html" title="为你的有序列表添加个性样式 (2009-02-03)">为你的有序列表添加个性样式</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/5-css3-design-enhancements-div-css.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>一起感受HTML5和CSS3的能量</title>
		<link>http://blog.bingo929.com/power-of-html5-css3-div-css.html</link>
		<comments>http://blog.bingo929.com/power-of-html5-css3-div-css.html#comments</comments>
		<pubDate>Mon, 10 Aug 2009 09:30:52 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[web标准]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2533</guid>
		<description><![CDATA[
　　Web设计师可以使用HTML4和CSS2.1完成一些很酷的东西。我们可以在不使用陈旧的基于table布局的基础上完成文档逻辑结构并创建内容丰富的网站。我们可以在不使用内联&#60;font&#62;和&#60;br&#62;... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html"><img class="alignnone size-full wp-image-2534" title="html5-css3-教程" src="http://blog.bingo929.com/wp-content/uploads/2009/08/html-css-power.jpg" alt="html5-css3-教程" width="500" height="147" /></a></p>
<p>　　Web设计师可以使用HTML4和CSS2.1完成一些很酷的东西。我们可以在不使用陈旧的基于table布局的基础上完成文档逻辑结构并创建内容丰富的网站。我们可以在不使用内联&lt;font&gt;和&lt;br&gt;标签的基础上对网站添加漂亮而细腻的风格样式。事实上，我们目前的设计能力已经让我们远离了那个可怕的浏览器战争时代、专有协议和那些充满闪动、滚动和闪烁的丑陋网页。<br />
　　虽然我们现在已经普遍使用了HTML4和CSS2.1，但是我们还可以做得更好！我们可以重组我们代码的结构并能让我们的页面代码更富有语义化特性。我们可以缩减带给页面美丽外观样式代码量并让他们有更高的可扩展性。现在，HTML5和CSS3正跃跃欲试的等待大家，下面让我们来看看他们是否真的能让我们的设计提升到下一个高度吧&#8230;<br />
<span id="more-2533"></span><br />
<strong><span style="color: #ff6600;">您还可以参考以下CSS3相关教程及资源:</span><br />
</strong>《<a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html">提升你设计水平的CSS3新技术</a>》<br />
《<a href="http://blog.bingo929.com/css-div-css-xhtml-css.html">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a>》</p>
<p>《<a href="http://blog.bingo929.com/css-browser-support.html">目前最全的浏览器/CSS选择器兼容性总结</a>》<br />
《<a href="http://blog.bingo929.com/5-techniques-to-acquaint-you-with-css-3.html">你应当了解的5个CSS3新技术</a>》</p>
<h3>跟&lt;div&gt;说再见,欢迎语义化标签</h3>
<p>　　曾经，设计师们经常会跟频繁使用基于table的没有任何语义的布局。不过最终还是要感谢像Jeffrey Zeldman和Eric Meyer这样的思想革新者，聪明的设计师们慢慢的接受了相对更语义化的&lt;div&gt;布局替代了table布局，并且开始调用外部样式表。但不幸的是，复杂的网页设计需要大量不同的标签结构代码，我们把它叫做“&lt;div&gt;-soup” 综合症。也许你很熟悉下面的代码:</p>
<div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;news&quot;</span>&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;section&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;article&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Div Soup Demonstration<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Posted on July 11th, 2009<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Tags: HMTL, code, demo<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;aside&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Tangential Information<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Tags: HMTL, code, demo<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></div></td></tr></tbody></table></div>
<p>　　尽管这有些勉强，但上面这个实例还是可以说明使用HTML4对一个复杂的设计进行代码化后依然过于臃肿(其实xHTML1.1也不过如此)。不过值得激动的是，HTML5解决“&lt;div&gt;-soup” 综合症并带给我们一套新的结构化元素。这些新的HTML5元素富有更细致的语义从而代替了那些毫无语义的&lt;div&gt;标签，并同时为CSS的调用提供了&#8221;自然&#8221;的CSS钩子。下面是HTML5的解决方案实例:</p>
<div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;article&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;header&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Div Soup Demonstration<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Posted on July 11th, 2009<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>header&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;footer&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Tags: HMTL, code, demo<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>footer&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>article&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;aside&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;header&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Tangential Information<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>header&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum text blah blah blah.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;footer&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Tags: HMTL, code, demo<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>footer&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>aside&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span></div></td></tr></tbody></table></div>
<p>　　正如我们所见，HTML5可以让我们用很多更语义化的结构化代码标签代替那些大量的无意义的&lt;div&gt;标签。这种语义化的特性不仅提升了我们网页的质量和语义，并且大量减少了曾经代码中用于CSS必须调用的class和id属性。事实上，CSS3也是可以然通过我们忽略掉所有class和id的。</p>
<h3>跟class属性说再见，欢迎整洁的标签</h3>
<p>　　结合了富有新的语义化标记的HTML5，CSS3为web设计师们的网页提供了神一般的力量。有了HTML5的能量，我们将得到更多的对文档代码的控制权，有了CSS3的能量，我们的控制权将趋于无穷大！</p>
<p>　　即使没有那些高级的CSS选择器，我们仍然可以通过强大的HTML5条调用不同的容器而不劳驾class和id这类属性。像以往的DIV布局，我们在css中可能要这样调用:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div<span style="color: #cc00cc;">#news</span> &nbsp; &nbsp;<span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
div<span style="color: #6666ff;">.section</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
div<span style="color: #6666ff;">.article</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
div<span style="color: #6666ff;">.header</span> &nbsp;<span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
div.<span style="color: #000000; font-weight: bold;">content</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
div<span style="color: #6666ff;">.footer</span> &nbsp;<span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
div<span style="color: #6666ff;">.aside</span> &nbsp; <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>我们再来看看基于HTML5的实例:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
article <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
header &nbsp;<span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
footer &nbsp;<span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
aside &nbsp; <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>　　这是个进步，但仍有一些问题需要解决。在&lt;div&gt;实例中，我们需要通过class或id属性来调用页面中的元素。这种逻辑将允许我们将样式应用到文档中的任何一个元素上，无论是整体还是个体。例如在&lt;div&gt;实例中，.section 和 .content元素很容易定位。但是在HTML5实例中，实际文档中会有很多个section元素。其实我们可以添加一些特定的属性选择器来调用那些不同的section元素，不过谢天谢地，我没现在可以用少量的高级CSS选择器来定位不同的section元素。</p>
<h3>不使用class和id定位HTML-5元素</h3>
<p>　　下面让我们来看看如何在不使用class和id的情况下定位HTML5页面元素的一个实例，我们可以使用三种CSS选择器来定位和辨别实例中的元素。如下:</p>
<ul>
<li>后代选择器:[CSS 2.1]: <strong>E</strong> <strong>F</strong></li>
<li>兄弟选择器:[CSS 2.1]: <strong>E</strong> + <strong>F</strong></li>
<li>子元素选择器:[CSS 2.1]: <strong>E</strong> > <strong>F</strong></li>
</ul>
<p>下面让我们来看看如何不使用class和id而完成对文档中的那些section元素的定位吧:<br />
<strong><br />
定位最外层的&lt;section&gt;元素</strong></p>
<p>　　考虑到我们的例子并不是一套完整的HTML5代码，所以我们假定在&lt;body&gt;元素下有个&lt;nav&gt;元素与&lt;section&gt;元素是兄弟元素。这样的话，我们就可以向下面代码那样定位最外层的&lt;section&gt;了:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">body nav<span style="color: #00AA00;">+</span>section <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>定位下一个&lt;section&gt;元素</strong><br />
作为最外层&lt;section&gt;元素下的唯一直属子集元素，这个&lt;section&gt;元素也许可以这样定位:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section<span style="color: #00AA00;">&gt;</span>section <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>定位&lt;article&gt;元素</strong><br />
可以定位&lt;article&gt;元素的方法有很多，不过最简单的方法当然就是后代选择器了:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section section article <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>定位&lt;header&gt;、&lt;section&gt;和&lt;footer&gt;元素</strong><br />
这三个元素分别在两个地方都出现过，一是在&lt;article&gt;元素中出现，另一是在&lt;aside&gt;元素中出现。这种差别能让我们轻松定位每个元素。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">article header <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
article section <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
article footer <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>或者一起定义:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section section header <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
section section section <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span><br />
section section footer <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>　　到目前为止，我们已经使用CSS2.1选择器排除掉了所有的class和id。那么我们为什么还需要使用CSS3呢？我很高兴你能这么问&#8230;</p>
<h3>使用CSS3对HTML5元素进行高级定位</h3>
<p>　　虽然我们已经使用CSS2.1选择器排除掉了所有的class和id，显然还会有很多更复杂的情况需要CSS3的高级选择器来解决。让我们通过完成一下的实例来了解一下如何在不使用无用的class和id属性的情况下利用CSS3定位页面元素。</p>
<p><strong>使用一个唯一的日志(post)ID定位所有日志</strong></p>
<p>　　wordpress提供给我们一种包含了ID的每篇日志的源代码输出。这种信息通常用于导航和/或了解资料的意图，不过CSS3可以利用这些唯一的ID来定义这些日志的样式。当然，你还可以像往常那样为每篇日志添加class=&#8221;post&#8221;这样的属性，但这就与我们练习的意图相冲突了(再加上它没有一点乐趣所在)。使用&#8221;子字符串匹配选择器&#8221;，我们就可以像下面这样定位所有日志和它们的不同元素了。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">article<span style="color: #00AA00;">&#91;</span>id<span style="color: #00AA00;">*=</span>post-<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/* 定位所有日志 */</span><br />
article<span style="color: #00AA00;">&#91;</span>id<span style="color: #00AA00;">*=</span>post-<span style="color: #00AA00;">&#93;</span> header h1 <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 定位所有日志中的h1标签 */</span><br />
article<span style="color: #00AA00;">&#91;</span>id<span style="color: #00AA00;">*=</span>post-<span style="color: #00AA00;">&#93;</span> section p <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 定位所有日志中的p标签 */</span></div></td></tr></tbody></table></div>
<p>我们仍然可以使用同样的方式定位评论的元素和它们的子元素。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">article<span style="color: #00AA00;">&#91;</span>id<span style="color: #00AA00;">*=</span>comment-<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/* 定位所有评论 */</span><br />
article<span style="color: #00AA00;">&#91;</span>id<span style="color: #00AA00;">*=</span>comment-<span style="color: #00AA00;">&#93;</span> header h1 <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 定位所有评论中的h1标签 */</span><br />
article<span style="color: #00AA00;">&#91;</span>id<span style="color: #00AA00;">*=</span>comment-<span style="color: #00AA00;">&#93;</span> section p <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 定位所有评论中的p标签 */</span></div></td></tr></tbody></table></div>
<p><strong>定位一些指定的区域(section)或文章(article)</strong><br />
　　有很多博客的日志量和评论量都相当大，HTML 5 会将它们由&lt;section&gt;或&lt;article&gt;元素组成。为了定位哪些指定的&lt;section&gt;或&lt;article&gt;元素，我们就要转而使用强大的“:nth-child”选择器了:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择第一个 &lt;section&gt; */</span><br />
article<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择第一个 &lt;article&gt; */</span><br />
<br />
section<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择第二个 &lt;section&gt; */</span><br />
article<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择第二个 &lt;article&gt; */</span></div></td></tr></tbody></table></div>
<p>同样，我们可以使用“:nth-last-child”选择器定位反序的一些元素。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section<span style="color: #3333ff;">:nth-last-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择最后一个 &lt;section&gt; */</span><br />
article<span style="color: #3333ff;">:nth-last-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择最后一个 &lt;article&gt; */</span><br />
<br />
section<span style="color: #3333ff;">:nth-last-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择倒数第二个 &lt;section&gt; */</span><br />
article<span style="color: #3333ff;">:nth-last-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* 选择倒数第二个 &lt;article&gt; */</span></div></td></tr></tbody></table></div>
<p><strong>使用更多的方式选择指定元素</strong><br />
　　另一种选择HTML5中指定元素(如header、section和footer)的方法就是利用&#8221;:only-of-type&#8221;选择器的优势。由于这些HTML5元素通常会在很多地方出现不止一次，所以当我们想定位那种在父元素下仅出现过一次的标签时这种方法很方便。例如，我们要选择的是在某<section>元素中有切仅有的唯一一个<section>元素，如以下代码:</p>
<div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;section&gt;</span>定位这个section元素<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;section&gt;</span>定位这个section元素<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;section&gt;</span>但不定位这个section元素<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;section&gt;</span>和这个section元素<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;section&gt;&lt;<span style="color: #66cc66;">/</span>section&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>section&gt;</span></div></td></tr></tbody></table></div>
<p>我们可以仅使用以下一行选择器:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">section<span style="color: #00AA00;">&gt;</span>section<span style="color: #3333ff;">:only-of-type </span><span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>　　再次唠叨，你可以固执的为每个元素添加ID属性，但你会失去代码的可扩展性、维护性和绝对简洁的结构与表现相分离。CSS3的确能让我们可快速更方便的定位几乎所有没有ID和class属性的页面元素。<br />
大家如果想了解一下现在的CSS3选择器的浏览器支持情况，可以参阅这篇文章(即时更新):<br />
<a href="http://blog.bingo929.com/css-browser-support.html" title="目前最全的浏览器/CSS选择器兼容性总结">《目前最全的浏览器/CSS选择器兼容性总结》</a></p>
<h3>总结</h3>
<p>　　我相信随着时间的推进和更多浏览器的支持，HTML5和CSS3将越来越受欢迎，它们将为web设计师们带来更无穷的能量，让我们的web前端更上一个台阶。</p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看HTML5和CSS3最新教程及资源。</p>
<p>英文原文:<a title="The Power of HTML 5 and CSS 3" href="http://perishablepress.com/press/2009/07/19/power-of-html5-css3/" target="_blank">The Power of HTML 5 and CSS 3</a><br />
翻译原文:<a title="一起感受HTML5和CSS3的能量" href="http://blog.bingo929.com/power-of-html5-css3-div-css.html">一起感受HTML5和CSS3的能量</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="一起感受HTML5和CSS3的能量" href="http://blog.bingo929.com/power-of-html5-css3-div-css.html">http://blog.bingo929.com/power-of-html5-css3-div-css.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/css-div-css-xhtml-css.html" title="学无止境的CSS(xHTML+CSS技巧教程资源大全) (2009-06-17)">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a> (20)</li>
	<li><a href="http://blog.bingo929.com/html5-and-css3-tools-list.html" title="HTML5和CSS3工具资源汇总 (2010-06-28)">HTML5和CSS3工具资源汇总</a> (10)</li>
	<li><a href="http://blog.bingo929.com/css-coding-semantic-naming.html" title="CSS代码命名惯例语义化的方法 (2008-11-21)">CSS代码命名惯例语义化的方法</a> (8)</li>
	<li><a href="http://blog.bingo929.com/optimizing-css-tutorial-div-css.html" title="5步让你的CSS样式表成功减肥 (2009-07-30)">5步让你的CSS样式表成功减肥</a> (13)</li>
	<li><a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html" title="5个CSS3技术实现设计增强 (2009-08-24)">5个CSS3技术实现设计增强</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/power-of-html5-css3-div-css.html/feed</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>5步让你的CSS样式表成功减肥</title>
		<link>http://blog.bingo929.com/optimizing-css-tutorial-div-css.html</link>
		<comments>http://blog.bingo929.com/optimizing-css-tutorial-div-css.html#comments</comments>
		<pubDate>Thu, 30 Jul 2009 06:00:04 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[web标准]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2516</guid>
		<description><![CDATA[
你有没有觉得你的CSS样式表文件过于臃肿？其实如果你注意并培养一些比较好的CSS书写习惯，我想你的CSS样式表过于&#8221;肥胖&#8221;的问题会得到很好的改善的。来看看下面的简单5步吧，掌握... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/optimizing-css-tutorial-div-css.html"><img class="alignnone size-full wp-image-2520" title="css-压缩-减肥" src="http://blog.bingo929.com/wp-content/uploads/2009/07/css-title.png" alt="css-压缩-减肥" width="500" height="98" /></a></p>
<p>你有没有觉得你的CSS样式表文件过于臃肿？其实如果你注意并培养一些比较好的CSS书写习惯，我想你的CSS样式表过于&#8221;肥胖&#8221;的问题会得到很好的改善的。来看看下面的简单5步吧，掌握之后你便能立即为你的CSS样式表修身了。<br />
<span id="more-2516"></span></p>
<h3>第一步:学会如何组合选择器</h3>
<p><strong>什么是选择器?</strong><br />
如果你还不知道什么叫做&#8221;选择器&#8221;，你可以先参考一下w3schools.com的<a href="http://www.w3schools.com/Css/css_syntax.asp" target="_blank">CSS语法概述</a>。</p>
<p><strong>未优化的CSS代码</strong><br />
在下面的图例中，你会看到来自三个不同选择器的同样的CSS属性声明。</p>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/07/css-01.gif" target="_blank"><img class="alignnone size-medium wp-image-2521" title="css-压缩-教程" src="http://blog.bingo929.com/wp-content/uploads/2009/07/css-01-500x260.gif" alt="css-压缩-教程" width="500" height="260" /></a><br />
<em>点击小图浏览清晰大图</em></p>
<p><strong>优化的CSS代码<br />
</strong>你可以将上面的css代码优化组合，让所有CSS选择器使用同一组属性。每个选择器之间用逗号分割开，像下面这样。</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">h2<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> .<span style="color: #993333;">block</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f0f0f0</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">crown.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">5px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><a href="http://www.sohtanaka.com/web-design/examples/optimizing-css/grouping-selectors.htm" target="_blank">查看Demo实例</a></p>
<h3>第二步:了解CSS选择器优先级</h3>
<p><strong>什么是CSS优先级?</strong><br />
选择器优先级是用于在CSS代码中同一个选择器使用不同属性时CSS优选处理哪些属性的规则。对选择器优先级不了解的话可以参考:<a href="http://juicystudio.com/article/selector-specificity.php" target="_blank">Juicy Studio –选择器优先级</a></p>
<p><strong>未优化的CSS代码</strong><br />
理解优先级规则中不同等级重要性是很必要的，如果写了同样优先级的CSS声明将有可能导致代码冲突和代码臃肿。</p>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/07/css-02.gif" target="_blank"><img class="alignnone size-medium wp-image-2522" title="css-优先级" src="http://blog.bingo929.com/wp-content/uploads/2009/07/css-02-500x260.gif" alt="css-优先级" width="500" height="260" /></a><br />
<em>点击小图浏览清晰大图</em></p>
<p><a href="http://www.sohtanaka.com/web-design/examples/optimizing-css/selector-specificity.htm" target="_blank">查看Demo实例</a></p>
<p><strong>优化的CSS代码</strong><br />
当你完全掌握CSS选择器优先级之后，你便能通过合并统一的属性声明来所见代码量，然后再单独声明元素的独有属性。你会很快找到优化CSS代码的技巧，对完成合并和匹配代码。下面是关于优化上图代码的实例:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">h2 <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f0f0f0</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">5px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
h2<span style="color: #6666ff;">.best</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">crown.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.fav</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">heart.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.comments</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">balloon.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.twitter</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">balloon_twitter.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#featured</span> h2<span style="color: #6666ff;">.twitter</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fffdd7</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd991</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>你还可以参考以下相关文章:</strong></p>
<ul>
<li><a href="http://htmldog.com/guides/cssadvanced/specificity/" target="_blank">HTML Dog – 优先级</a></li>
<li><a href="http://www.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/" target="_blank">Smashing Magazine – 一些你应该知道的东西</a></li>
<li><a href="http://css-tricks.com/specifics-on-css-specificity/" target="_blank">CSS Tricks – CSS优先级特性</a></li>
<li><a href="http://snook.ca/archives/html_and_css/understanding_c/" target="_blank">Jonathan Snook – 理解CSS优先级</a></li>
</ul>
<h3>第三步:学会如何合并类和ID</h3>
<p>和之前类似，你也可以通过匹配合并class名和id值来优化你的CSS代码。请记住,为同一个元素添加不同的多个class，你就可以通过组合不同的属性声明在实现你希望的效果。在适当的位置添加id属性也是可以让你对样式有更多的控制权。</p>
<p><strong>HTML</strong></p>
<div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;featured&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;best double&quot;</span>&gt;</span>Best of<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fav double&quot;</span>&gt;</span>Popular Posts<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;disable&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;comments double&quot;</span>&gt;</span>Comments<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;twitter double&quot;</span>&gt;</span>Twitter<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></div></td></tr></tbody></table></div>
<p><strong>CSS</strong></p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">...<br />
<br />
h2<span style="color: #6666ff;">.best</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">crown.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.fav</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">heart.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.comments</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">balloon.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.twitter</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">balloon_twitter.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #6666ff;">.tools</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</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;">wrench_screwdriver.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<br />
h2.<span style="color: #993333;">double</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">263px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <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><br />
&nbsp; &nbsp; <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><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#featured</span> h2.<span style="color: #993333;">double</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffe2e2</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#disable</span> h2 <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">40</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; opacity<span style="color: #00AA00;">:</span>.40<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -ms-filter<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=40)&quot;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#d5d5d5</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<h3>第四步:学会CSS简写</h3>
<p><a title="css" href="http://www.w3.org/TR/CSS2/about.html#shorthand">CSS简写</a>可以让你将多行的CSS属性声明缩写成简单的一行代码。现在你在很多地方都可以找到CSS缩写的相关教程，你也可以浏览以下CSS缩写教程:</p>
<ul>
<li><a href="http://blog.bingo929.com/7-principles-optimized-css.html">整理及优化CSS代码的7个原则</a></li>
<li><a href="http://blog.bingo929.com/10-css-shorthand-tips.html">10个CSS简写技巧让你永远受用</a></li>
<li><a href="http://www.sitepoint.com/article/introduction-css-shorthand/">Sitepoint – Introduction to CSS Shorthand</a></li>
<li><a href="http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/">456 Berea St – Efficient CSS with Shorthand Properties</a></li>
<li><a href="http://www.leigeber.com/2008/04/css-shorthand-cheat-sheet/">Leigeber – CSS Short Hand Cheat Sheet</a></li>
</ul>
<h3>第五步:将你的样式表分成几部分–@import</h3>
<p>在你完成一个比较大的网站项目时，你的样式表中的代码量是相当庞大的，也许会有很多不同模块的CSS声明及注释。这种情况下，你可以考虑使用将一个庞大的样式表切割成几个不同模块的小样式表，然后再用@import将他们组合起来。</p>
<p><strong>HTML</strong><br />
你可以像平常一样调用一个样式表</p>
<div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;styles.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p><strong>CSS – styles.css</strong><br />
这时styles.css作为你的主样式表，它将负责调用其它子样式表。(我会把子样式表放在’styles’ 目录下以便于组织管理，纯属个人习惯，你也可以有自己的习惯)</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #a1a100;">@import &quot;styles/main.css&quot;;</span><br />
<span style="color: #a1a100;">@import &quot;styles/checkout.css&quot;;</span><br />
<span style="color: #a1a100;">@import &quot;styles/shoppingcart.css&quot;;</span></div></td></tr></tbody></table></div>
<p><strong>译者注:</strong>@import虽然能够为某个大的CSS文件减肥，但是它在页面读取方面(尤其IE)还是有弊端的。感兴趣的读者可以看看这篇文章:<br />
<a href="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/" target="_blank">《Don’t Use @import》</a></p>
<p><strong>你还可以参考以下相关文章:</strong></p>
<ul>
<li><a href="http://www.alistapart.com/articles/progressiveenhancementwithcss/" target="_blank">A List Apart – Progressive Enhancement with CSS</a></li>
<li><a href="http://www.cssnewbie.com/css-import-rule/" target="_blank">CSS Newbie – Using the CSS @import Rule</a></li>
</ul>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看CSS最新教程及资源。</p>
<p>英文原文:<a title="5 Step Style Sheet Weight Loss Program" href="http://www.sohtanaka.com/web-design/optimizing-css-tutorial/" target="_blank">5 Step Style Sheet Weight Loss Program</a><br />
翻译原文:<a title="5步让你的CSS样式表成功减肥" href="http://blog.bingo929.com/optimizing-css-tutorial-div-css.html">5步让你的CSS样式表成功减肥</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a href="http://blog.bingo929.com/optimizing-css-tutorial-div-css.html">http://blog.bingo929.com/optimizing-css-tutorial-div-css.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/css-div-css-xhtml-css.html" title="学无止境的CSS(xHTML+CSS技巧教程资源大全) (2009-06-17)">学无止境的CSS(xHTML+CSS技巧教程资源大全)</a> (20)</li>
	<li><a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html" title="一起感受HTML5和CSS3的能量 (2009-08-10)">一起感受HTML5和CSS3的能量</a> (29)</li>
	<li><a href="http://blog.bingo929.com/css-coding-semantic-naming.html" title="CSS代码命名惯例语义化的方法 (2008-11-21)">CSS代码命名惯例语义化的方法</a> (8)</li>
	<li><a href="http://blog.bingo929.com/43-div-css-psd-xhtml-css.html" title="43个实例xHTML+CSS(DIV+CSS)网页及导航布局教程 (2009-03-20)">43个实例xHTML+CSS(DIV+CSS)网页及导航布局教程</a> (40)</li>
	<li><a href="http://blog.bingo929.com/tianjin-ma-jiang-mahjong-contest-website-ui-design-css.html" title="近期作品:麻将电视赛官网UI设计+前端开发 (2009-06-13)">近期作品:麻将电视赛官网UI设计+前端开发</a> (44)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/optimizing-css-tutorial-div-css.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>提升你设计水平的CSS3新技术</title>
		<link>http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html</link>
		<comments>http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 03:25:14 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2508</guid>
		<description><![CDATA[
前些日子在SmashingMagazine看到一篇关于CSS3新技术不错的文章，它详细介绍了CSS3的新特性和它的使用方法，它包括:浏览器专有属性、选择器(属性选择器、连字符、伪类、伪元素)、RGBA和透明度属... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-title.jpg" alt="CSS3新技术" width="500" height="150" /></a></p>
<p>前些日子在SmashingMagazine看到一篇关于CSS3新技术不错的文章，它详细介绍了CSS3的新特性和它的使用方法，它包括:浏览器专有属性、选择器(属性选择器、连字符、伪类、伪元素)、RGBA和透明度属性、多栏布局、多背景图、Word Wrap、文字阴影、CSS圆角、边框图片、盒阴影、盒尺寸、媒体查询、语音，并详细说明了每个新技术目前有哪些浏览器兼容。彬Go本想将本文翻译成中文版和大家分享，但发现已有国人完成翻译，所以就偷个小懒，转载一下人家的翻译，在此感谢前端观察的博主辛苦翻译本文，为大家贡献了如此珍贵的学习资料。</p>
<p>如果你热爱前端开发，你对CSS感兴趣，那么你肯定不可错过这篇文章。<br />
<span id="more-2508"></span><br />
级联样式表在13年前被引入，而且被广泛使用的CSS 2.1 标准在11年前被创建，显然我们现在已经与当年相差千里了。相当了不起的是期间网站开发有了多少进步——事实上，我们也无法想象。</p>
<p>为什么会这样呢，当提到CSS的时候，过去我们是如此的不情愿和害怕尝试？为什么我们还要使用讨厌的hack和依赖JavaScript的技术来写样式？为什么我们不能<strong>利用丰富的CSS3 特性和现代浏览器中可用的工具</strong> 并将我们的设计品质带到下一个等级？</p>
<p>是时候在我们的项目中引入CSS3 特性了，不用害怕逐渐在我们的样式表中加入css3特性和选择器会出问题。让我们的客户意识到<strong>CSS3的优势</strong> (而且让旧浏览器更快的消失)是我们力所能及的事情——我们应该这样做，特别是在它能够让网站更加灵活并减少开发和维护成本的时候。</p>
<p>在本文中，我们将研究CSS3的优势，并看一下一些网页设计师是如何使用它们的。最后，我们将了解到从CSS3中我们能得到什么以及我们如何在我们的项目中使用它的新特性。</p>
<p>同时请参考我们之前的一篇相关文章：<br />
<a href="http://www.smashingmagazine.com/2009/01/08/push-your-web-design-into-the-future-with-css3/" target="_blank">使用CSS3将你的网站设计推向未来</a></p>
<h3>使用浏览器专有属性</h3>
<p>为了使用大部分CSS3特性，我们不得不与原来的属性一起使用<strong>生产商专有扩展</strong>。原因是直到现在，大部分浏览器只支持部分CSS3属性。而且不幸的是，一些属性甚至到最后都可能不被W3C推荐，所以通过指定浏览器专有属性，将他们与标准属性区分开来是很重要的(然后在他们是多余的的时候使用符合标准的样式将之覆盖)。</p>
<p>当然，这种方法的劣势是，将导致一个杂乱的样式表和网站在浏览器之间的表现不一致。毕竟，我们不想在我们的样式表中重拾私有浏览器hack的需求。Internet Explorer的臭名昭著的marquee、blink以及其它标签在大量样式表中被应用，并在20世纪九十年代成为一个传奇；它们依然让现存的很多网站（在其他浏览器中）表现不一致甚至难以阅读。而我们现在也不想将我们自己置于同样的境地，对吧？</p>
<p>然而，网站<a href="http://dowebsitesneedtolookexactlythesameineverybrowser.com/" target="_blank">不需要</a>在所有的浏览器中看起来<strong>必须</strong>严格的一致。有的时候在某个浏览器中使用私有属性来实现特定的效果是可行的。</p>
<p><strong>最常见的私有属性</strong>是用于Webkit核心浏览器的(比如, Safari)， 它们以-webkit-开始，以及Gecko核心的浏览器(比如, Firefox)，以-moz-开始，还有Konqueror (-khtml-)、Opera (-o-) 以及Internet Explorer (-ms-)都有它们自己的属性扩展（目前只有IE8支持-ms-前缀）</p>
<p>作为专业的设计师，我们不得不注意：<strong>使用这些私有属性将让我们的样式表不能通过验证</strong>。所以目前将他们放到最终版的样式中是少见的。但是在某种情况下，比如试验或学习，我们至少可以考虑将他们和标准的CSS属性一起写到一个样式表中。</p>
<h4>扩展阅读</h4>
<ul>
<li><a href="http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords" target="_blank">Vendor-specific extensions and W3C</a></li>
<li><a href="http://www.css3.info/vendor-specific-extensions-to-css3/" target="_blank">Vendor-specific extensions to CSS3</a></li>
<li><a href="http://reference.sitepoint.com/css/vendorspecific" target="_blank">Vendor-specific properties</a></li>
</ul>
<h3>1. 选择器</h3>
<p>CSS选择器是个难以置信地强大的工具：它们允许我们<strong>在标签中指定特定的HTML元素</strong>而不必使用多余的class、 ID 或JavaScripts。而且它们中的大部分并不是CSS3中新添加的，而是没有被得到应有的广泛应用。如果你在尝试实现一个干净的、轻量级的标签以及 结构与表现更好的分离，高级选择器是非常有用的。它们可以减少在标签中的class和ID的数量并让设计师更方便的维护样式表。</p>
<h4>属性选择器</h4>
<p>三个新的属性选择器被添加到CSS3：</p>
<ul>
<li><code class="codecolorer css mac-classic"><span class="css"><span style="color: #00AA00;">&#91;</span>att<span style="color: #00AA00;">^=</span><span style="color: #ff0000;">&quot;value&quot;</span><span style="color: #00AA00;">&#93;</span></span></code><br />
匹配包含<strong>以特定的值开头的属性</strong>的元素</li>
<li><code class="codecolorer css mac-classic"><span class="css"><span style="color: #00AA00;">&#91;</span>att$<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;value&quot;</span><span style="color: #00AA00;">&#93;</span></span></code><br />
匹配包含<strong>以特定的值结尾的属性</strong>的元素</li>
<li><code class="codecolorer css mac-classic"><span class="css"><span style="color: #00AA00;">&#91;</span>att<span style="color: #00AA00;">*=</span><span style="color: #ff0000;">&quot;value&quot;</span><span style="color: #00AA00;">&#93;</span></span></code><br />
匹配包含<strong>含有特定的值的属性</strong>的元素</li>
</ul>
<p><strong>值的属性</strong>的元素</p>
<p><a href="http://tweetcc.com/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-01.jpg" alt="css3-属性选择器" width="500" height="329" /></a></p>
<p><a href="http://tweetcc.com/" target="_blank">tweetCC</a> 使用一个属性选择器来指定有title属性并以字符“tweetCC”结尾的链接:</p>
<div>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">a<span style="color: #00AA00;">&#91;</span>title$<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;tweetCC&quot;</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span><br />
<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><br />
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<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><br />
<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><br />
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">140px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
</div>
<p><strong>浏览器支持:</strong>只有IE6不支持CSS的属性选择器。IE7和IE8、Opera、Webkit核心和Gecko核心的浏览器都支持。所以在你的样式中使用属性选择器是比较安全的。</p>
<h4>连字符</h4>
<p>CSS3中唯一新引入的连字符是通用的兄弟选择器（同级）。它针对一个元素的有同一个父级节点的所有兄弟级别元素。</p>
<p>比如，给某个特定的div的同级的图片添加一个灰色的边框(div和图片应该有同一个父级节点)，在样式表中定义下面的样式就足够了：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div~img <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border</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><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>浏览器支持：</strong>所有的主要浏览器都支持这个通用的兄弟选择器除了我们最爱的<strong>IE6</strong>！</p>
<h4>伪类</h4>
<p>或许在CSS3中增加最多的就是新的伪类了，这里是一些最有趣和最有用的：</p>
<ul>
<li>:nth-child(n)<br />
让你基于元素在父节点的子元素的列表位置来指定元素。你可以是用数字、数字表达式或odd 和even 关键词(对斑马样式的列表很完美)。所以如果你想匹配在第四个元素之后的一个3个元素的分组，你可以简单的这样使用：</p>
<pre>:nth-child(3n+4) { background-color: #ccc; }/*匹配第4,7,10,13,16,19...个元素*/</pre>
</li>
<li>:nth-last-child(n)<br />
与上个选择器的思想同样，但是从后面匹配元素（倒序），比如，为了指定一个div里面的最后两个段落，我们可以使用下面的选择器：</p>
<pre>div p:nth-last-child(-n+2)</pre>
</li>
<li>:last-child<br />
匹配一个父节点下的最后一个子元素，等同于:nth-last-child(1)</li>
<li>:checked<br />
匹配选择的元素，比如复选框</li>
<li>:empty<br />
匹配空元素（没有子元素）。</li>
<li>:not(s)<br />
匹配所有不符合指定声明(s)的元素。比如，如果你想让所有的没有使用”lead”类的段落的显示为黑色，可以这样写：<br />
<code class="codecolorer css mac-classic"><span class="css">p<span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#91;</span>class<span style="color: #00AA00;">*=</span><span style="color: #ff0000;">&quot;lead&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</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></span></code><br />
.</li>
</ul>
<p><a href="http://andreagandino.com/" target="_blank">Andrea Gandino</a> 在他的网站上使用:last-child 为选择器指定每篇日志的最后一个段落，并将其的外间距(margin)设置为0:</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-02.jpg" alt="css3-伪类" width="500" height="337" /></p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#primary</span> .<span style="color: #993333;">text</span> p<span style="color: #3333ff;">:last-child </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <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><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>浏览器支持:</strong> Webkit核心和Opera 浏览器支持所有新的CSS3 伪类，Firefox 2 和3 (Gecko核心) 只支持:not(s), :last-child, :o  nly-child, :root, :empty, :target, :checked, :enabled 和:disabled，但是Firefox 3.5 将<a href="https://developer.mozilla.org/en/Firefox_3.5_for_developers">更加广泛的支持CSS3 选择器</a>。Trident核心浏览器(Internet Explorer)事实上不支持这些伪选择器。</p>
<h4>伪元素</h4>
<p>在CSS3中唯一引入的伪元素是::selection.它可以让你指定被用户高亮（选中）的元素。</p>
<p><strong>浏览器支持:</strong> 目前没有任何一款Internet Explorer 或Firefox 浏览器支持::selection 伪元素。Safari, Opera 和Chrome 均支持。</p>
<h4>扩展阅读</h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-selectors/" target="_blank">Selectors Level 3: W3C Working Draft</a></li>
<li><a href="http://www.css3.info/preview/attribute-selectors/" target="_blank">CSS3: Attribute selectors: CSS3.info</a></li>
<li><a href="http://www.css3.info/modules/selector-compat/" target="_blank">Compatibility table: CSS3 Selectors</a></li>
<li><a href="http://kimblim.dk/css-tests/selectors/" target="_blank">CSS selectors and pseudo selectors browser compatibility</a></li>
<li><a href="http://reference.sitepoint.com/css/css3attributeselectors" target="_blank">CSS3 Attribute Selectors</a></li>
<li><a href="http://reference.sitepoint.com/css/pseudoelement-selection" target="_blank">::selection</a></li>
<li><a href="http://reference.sitepoint.com/css/generalsiblingselector" target="_blank">General Sibling Selector</a></li>
<li><a href="http://reference.sitepoint.com/css/css3psuedoclasses" target="_blank">CSS3 Pseudo-classes</a></li>
</ul>
<h3>2. RGBA和透明度</h3>
<p>RGBA 让你可以不仅仅设定色彩，还能设定<strong>元素的透明度</strong>。一些浏览器尚不支持它，所以最好在RGBa前面设定其它浏览器支持的没有透明的颜色属性。</p>
<p><a href="http://timvandamme.com/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-03.jpg" alt="css3-透明度" width="500" height="337" /></a><br />
Tim Van Damme在链接的hover效果上使用了RGBA</p>
<p>在这个网站上，<a href="http://timvandamme.com/" target="_blank">Tim Van Damme</a>在鼠标悬停效果上使用了RGBa；例如，在他的首页的network链接上:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#networks</span> li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span><br />
<span style="color: #cc00cc;">#networks</span> li a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">164</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">173</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">183</span><span style="color: #00AA00;">,</span> .15<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>当设定一个RGBA 色彩的时候，我们必须依次设定红、蓝、和绿色的值，可以是0-255或百分数。透明值应该在0.0到1.0之间，例如0.5 代表50% 的透明度。</p>
<p>RGBA 和opacity 之间的不同是前者只会应用到指定的元素上，而后者会影响我们指定的元素及其子元素。</p>
<p>这里有个例子展示我们如何给一个div添加80% 透明:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>浏览器支持:</strong> RGBA 被Webkit内核浏览器支持。IE所有版本都不支持。Firefox 2也不支持，但是Firefox 3 和Opera 9.5均支持。Opacity 被Opera、Webkit核心 和Gecko核心的浏览器支持。IE所有版本同样不支持。IE只支持自家的该死的滤镜（filter）</p>
<h4>扩展阅读：</h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-color/" target="_blank">CSS Color Module Level 3: W3C Working Draft</a></li>
<li><a href="http://www.css3.info/preview/rgba/" target="_blank">RGBA colors: CSS3.info</a></li>
<li><a href="http://en.wikipedia.org/wiki/RGBA_color_space" target="_blank">RGBA color space</a></li>
<li><a href="http://forabeautifulweb.com/blog/about/is_css3_rgba_ready_to_rock" target="_blank">Is CSS3 RGBa ready to rock?</a></li>
<li><a href="http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba" target="_blank">Super-Awesome Buttons with CSS3 and RGBA</a></li>
</ul>
<h3>3. 多栏布局</h3>
<p>这是新的CSS3 选择器可以让你不用使用多个div标签就能实现多栏布局。浏览器解释这个属性并生成多栏，让文本实现一个仿报纸的多栏结构。</p>
<p><a href="http://tweetcc.com/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-04.jpg" alt="css3-多栏布局" width="500" height="241" /></a><br />
<em>tweetCC 在其首页使用了CSS3 多栏选择器</em></p>
<p><a href="http://tweetcc.com/" target="_blank">tweetCC</a> 在其首页上将介绍文字显示为四栏。这四栏并非浮动的div；相反，设计师使用下面的CSS3 多栏布局：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.index</span> <span style="color: #cc00cc;">#content</span> div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; -webkit-column-count <span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-column-gap <span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-column-count <span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-column-gap <span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>我们可以通过这个选择器定义三件事情：栏数(column-coun)、栏宽(column-width、例子中没有用到)和各栏之间的空白/间距(column-gap)。 如果column-count未设定，浏览器会在允许的宽度内容纳尽可能多的栏目。</p>
<p>为了在各栏时间添加一个数值的分隔，我们可以使用column-rule 属性，其功能和border 属性类似:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; column-rule<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#00000</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>上面的这条属性，浏览器中不会看到任何效果，因为它没有分栏，如果配合上面的例子就可以了。</p>
<p>相关属性: column-break-after, column-break-before, column-span, column-fill.</p>
<p><strong>浏览器支持:</strong> 多栏布局目前被Safari 3+，chrome，和Firefox 1.5+所支持。</p>
<h4>扩展阅读：</h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-multicol/" target="_blank">CSS3 module: Multi-column layout: W3C Working Draft</a></li>
<li><a href="http://www.quirksmode.org/css/multicolumn.html" target="_blank">Columns</a></li>
<li><a href="http://www.csscripting.com/css-multi-column/" target="_blank">CSS3 – Multi-Column Layout Demonstration</a></li>
<li><a href="https://developer.mozilla.org/en/CSS3_Columns" target="_blank">CSS3 Columns</a></li>
<li><a href="http://forabeautifulweb.com/blog/about/designing_tweetcc/" target="_blank">Designing tweetCC</a></li>
<li><a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-5-multiple-columns" target="_blank">Introduction to CSS3 – Part 5: Multiple Columns</a></li>
</ul>
<h3>4. 多背景图</h3>
<p>CSS3 允许你使用多个属性比如background-image、background-repeat, background-size, background-position, background-originand background-clip等在一个元素上添加多层背景图片.</p>
<p>在一个元素上添加多背景的最简单的方法是使用简写代码，你可以指定上面的所有属性到一条声明中，只是最常用的还是image, position 和repeat:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <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;">example.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>example2.jpg<span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>example3.jpg<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">center</span> <span style="color: #993333;">center</span> <span style="color: #993333;">repeat-y</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>第一个图片将是离用户“最近”的那个。</p>
<p>该属性的一个更复杂的版本可以是这样的：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <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;">example.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span> <span style="color: #933;">2em</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>example2.jpg<span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span> <span style="color: #933;">2em</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>example3.jpg<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">center</span> <span style="color: #993333;">center</span> <span style="color: #00AA00;">&#40;</span><span style="color: #933;">10em</span> <span style="color: #933;">10em</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-y</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>在这里，(100% 2em) 是background-size 的值；第一个背景图片将会出现在左上角并会被拉伸至该div的100%宽度和2em的高度。</p>
<p>因为只有少数的浏览器支持它，又因为在网站上不显示背景有损网站的视觉效果，所以，这并不是一个被广泛应用了的属性。尽管如此，它显然能够大大地提高设计师的工作流并显著减少标签数量——相对于用其它方式实现同样的效果。</p>
<p><strong>浏览器支持:</strong> 目前，多背景图片只在Safari/chrome 和Konqueror中有效</p>
<h4>扩展阅读：</h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-background/#layering" target="_blank">Layering multiple background images</a></li>
<li><a href="http://www.css3.info/preview/multiple-backgrounds/" target="_blank">Multiple backgrounds with CSS3 and CSS3.info</a></li>
<li><a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-6-backgrounds" target="_blank">Introduction to CSS3, Part 6: Backgrounds</a></li>
</ul>
<h3>5. Word Wrap</h3>
<p>word-wrap 属性用来防止太长的字符串溢出的。可以用两个属性值normal 和break-word。normal 值(默认的) 只在允许的断点截断文字，如连字符。如果使用了break-word ，文字可以在任何需要的地方截断以匹配分配的空间并防止溢出。</p>
<p><strong><a href="http://wordpress.org/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-13.jpg" alt="css3-word-wrap" /></a><br />
</strong><em>WordPress 后台在数据表中使用了word-wrap</em>.</p>
<p>在<a href="http://wordpress.org/" target="_blank">WordPress</a> 的控制面板中，word-wrap 属性被用于表格中的元素；比如在日志和页面的列表中：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.widefat</span> <span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; word-wrap<span style="color: #00AA00;">:</span> break-word<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong><strong>浏览器支持：</strong> </strong>word-wrap 被Internet Explorer 和Safari/chrome支持。Firefox 将在3.5版本中支持它。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><strong><a href="http://www.w3.org/TR/css3-text/#word-wrap" target="_blank">Force Wrapping: the ‘word-wrap’ property — CSS Text Level 3: W3C Working Draft</a></strong></li>
<li><strong><a href="http://www.css3.info/preview/word-wrap/" target="_blank">word-wrap: CSS3.info</a></strong></li>
<li><strong><a href="http://www.css3.com/css-word-wrap/" target="_blank">CSS word-wrap</a></strong></li>
<li><strong><a href="https://developer.mozilla.org/en/CSS/word-wrap" target="_blank">word-wrap: Mozilla Developer Center</a></strong></li>
</ul>
<h3><strong>6. 文字阴影</strong></h3>
<p>尽管在CSS2中就已经存在，text-shadow是一个未被广泛应用的CSS属性。但是它将在CSS3中被广泛采用。这个属性给设计师一个新的跨浏览器的工具来为设计添加一个维度以使文字醒目。</p>
<p>尽管这样，你需要确认，你的设计中的文字是可读的，以防用户的浏览器不支持CSS3高级属性。给文字和背景色彩足够的对比度以防text-shadow 属性不能被浏览器正确渲染或理解。</p>
<p><strong><a href="http://beakapp.com/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-05.gif" alt="css3-文字阴影" /></a><br />
</strong><em>Beakapp 在它的网站中使用了text-shadow 属性：内容区域</em>.</p>
<p><a href="http://beakapp.com/" target="_blank">BeakApp.com</a> 为内容区域使用了text-shadow 属性，为文字添加深度和维度 并让它变得醒目——而不是使用某种图片替换技术。该属性目前只在Safari和Chrome中可用。</p>
<p>该网站的主菜单使用的CSS如下：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.signup_area</span> p <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span>.8<span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>这里我们使用阴影颜色(使用了RGBA，前面有描述)， 然后是右(x 坐标) 和底部(y 坐标) 偏移，最后是模糊半径</p>
<p>如果要在一个文字上使用多阴影，可以使用逗号分开。比如：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">p <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">yellow</span> <span style="color: #933;">-4px</span> <span style="color: #933;">-4px</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">green</span> <span style="color: #933;">-4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>浏览器支持: </strong>Webkit核心浏览器和Opera 9.5 支持text-shadow。Internet Explorer 不支持它，Firefox 将在即将发行的3.5版本中支持。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-text/#text-shadow" target="_blank">Text Shadows: the ‘text-shadow’ property — W3C Working Draft</a></li>
<li><a href="http://www.w3.org/Style/Examples/007/text-shadow" target="_blank">Text shadows: Web Style Sheets CSS tips and tricks</a></li>
<li><a href="http://www.css3.info/preview/text-shadow/" target="_blank">Text-shadow, Photoshop like effects using CSS — CSS3.info</a></li>
<li><a href="http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/" target="_blank">Make Cool And Clever Text Effects With CSS Text-Shadow</a></li>
<li><a href="http://sam.brown.tc/entry/348/safaris-text-shadow-anti-aliasing-css-hack" target="_blank">Safari’s Text-Shadow Anti-Aliasing CSS Hack</a></li>
<li><a href="http://reference.sitepoint.com/css/text-shadow" target="_blank">text-shadow</a></li>
<li><a href="https://developer.mozilla.org/en/CSS/text-shadow" target="_blank">text-shadow: Mozilla Developer Center</a></li>
</ul>
<h3><strong>7. @font-face属性</strong></h3>
<p>尽管是最被期待的CSS3 特性 (甚至它在CSS2中就已经被引入了)， @font-face在网站上仍然没有像其它CSS3属性那样被广泛采用.这主要因为字体授权和版权问题：嵌入的字体很容易从网站上下载到，这是字体厂商的主要顾虑。</p>
<p>尽管如此，授权我呢提貌似已经开始解决了。<a href="http://blog.typekit.com/2009/05/27/introducing-typekit/" target="_blank">TypeKit</a> 承诺将制定一个方案，以使设计师和字体厂商更容易的统一授权问题，这将显著的充实网站设计中的排版并使@font-face 属性在实际工作中可用。</p>
<p><strong><a href="https://jetpack.mozillalabs.com/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-06.jpg" alt="css3-font-face属性" width="500" height="397" /></a><br />
</strong><em>Mozilla实验室JetPack 网站采用font-face规则来使用DroidSans 字体。</em></p>
<p>少数使用该属性的网站之一是新上线的<a href="https://jetpack.mozillalabs.com/" target="_blank">JetPack MozillaLabs</a>.</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #a1a100;">@font-face{</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'DroidSans'</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'../fonts/DroidSans.ttf'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'truetype'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>要想在你的网站中使用嵌入字体，你必须独立的生命每个样式(比如， <em>normal</em>, <em>bold</em> 和<em>italic</em>)。请确保只使用被授权为使用到网站的字体并在需要的时候给字体的设计师一些表扬。</p>
<p>在定义了@font-face 规则之后，你就可以用普通的font-family 属性来引用该字体了：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">p <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;DroidSans&quot;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>如果一个浏览器不支持@font-face，它将使用font-family(CSS 字体库)属性中指定的下一个字体。对支持的浏览器来说，如果@font-face 字体是一个奢侈品（只有少数元素用到），这对一些网站是可行的；但是如果该字体在设计中占有一个主要的角色或者是公司的视觉特征的一部分，你就可能想使用其它的解决方案，比如<a href="http://wiki.novemberborn.net/sifr3/" target="_blank">sIFR</a> 或<a href="http://wiki.github.com/sorccu/cufon/about" target="_blank">Cufón</a>。尽管如此，请记住，这些工具对标题或较短的文字更适合，复制和粘贴此类内容比较困难而且对用户并不友好。</p>
<p><strong><a href="http://mezzoblue.com/archives/2009/05/07/font_embeddi/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-07.gif" alt="css3-新技术" width="500" height="337" /></a><br />
</strong><em>在网站中使用此类字体不是很好吗？Dave Shea 使用<a href="http://wiki.github.com/sorccu/cufon/about" target="_blank">Cufón</a> 和<a href="http://www.josbuivenga.demon.nl/museosans.html" target="_blank">Museo Sans</a>来做的实验。很漂亮！</em></p>
<p>浏览器支持: @font-face 被Safari 3.1+和chrome支持。Internet Explorer 支持<abbr title="Embedded OpenType">EOT</abbr> 字体。 Opera 10 和Firefox 3.5 将会支持它。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-webfonts/#font-descriptions" target="_blank">Font Descriptions and @font-face — W3C Working Draft</a></li>
<li><a href="http://www.css3.info/preview/web-fonts-with-font-face/" target="_blank">Web fonts with @font-face</a></li>
<li><a href="http://reference.sitepoint.com/css/at-fontface" target="_blank">@font-face — Sitepoint</a></li>
<li><a href="http://webfonts.info/wiki/index.php?title=Fonts_available_for_%40font-face_embedding">Fonts available for @font-face embedding</a></strong></li>
<li><a href="http://nickcowie.com/2008/font-face/" target="_blank">@font-face</a></li>
<li><a href="http://hacks.mozilla.org/2009/06/beautiful-fonts-with-font-face/" target="_blank">beautiful fonts with @font-face</a></li>
<li><a href="http://blog.typekit.com/2009/05/27/introducing-typekit/" target="_blank">Introducing Typekit</a></li>
</ul>
<h3><strong>8. 圆角（边框半径）</strong></h3>
<p>Border-radius 无需背景图片就能给HTML元素添加圆角。现在，它可能是使用最多的CSS3属性了，很简单的原因是使用圆角比较好而且不会对设计和可用性有冲突。</p>
<p>不同于添加Javascript或多于的HTML标签，仅仅需要添加一些CSS属性并从好的方面考虑。这个方案是清晰的和比较有效的，而且可以让你免于花费几个小时来寻找精巧的浏览器方案和基于Javascript圆角。</p>
<p><strong><a href="http://sam.brown.tc/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-08.jpg" alt="css3-圆角" width="500" height="106" /></a><br />
</strong><em>Sam Brown的博客在标题、分类和链接处使用了border-radius</em>.</p>
<p><a href="http://sam.brown.tc/" target="_blank">Sam Brown</a>在他的博客的标题、分类、链接和div中大量的使用了border-radius属性。使用图片来实现该效果将会比较费时的，这是在项目中使用CSS3属性是提高开发效率的重要步骤的原因之一</p>
<p>为了给类别链接添加圆角，Sam 使用了下面的CSS片段：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">h2 span <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#1a1a1a</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>我们可以做的更进一步，添加原始的CSS3 属性和Konqueror 属性扩展，如下:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">h2 span <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#1a1a1a</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -khtml-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>如果我们想在我们的元素中的某个特定的角上应用此属性，我们可以单独的指定每个角：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; -moz-border-radius-topright<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-border-radius-topleft<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-border-radius-bottomright<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-border-radius-bottomleft<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-top-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-top-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-bottom-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-bottom-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-top-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-top-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-bottom-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-bottom-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>浏览器支持： border-radius只有所有版本的IE浏览器和Opera不支持，Webkit和Gecko核心的浏览器都支持。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-background/#border-radius" target="_blank">border-radius: W3C Working Draft</a></li>
<li><a href="http://www.css3.info/preview/rounded-border/" target="_blank">Border-radius: create rounded corners with CSS! — CSS3.info</a></li>
<li><a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-2-borders" target="_blank">Introduction to CSS3, Part 2: Borders</a></li>
<li><a href="http://webdesignernotebook.com/css/an-ode-to-border-radius/" target="_blank">An Ode to border-radius</a></li>
<li><a href="http://www.zenelements.co.uk/blog/css3-border-radius-rounded-corners/" target="_blank">CSS3 Border-Radius and Rounded Corners</a></li>
</ul>
<h3><strong>9. 边框图片</strong></h3>
<p>border-image 属性允许你在元素的边框上设定图片， 让你从通常的solid, dotted 和其它边框样式中解放出来。该属性给设计师一个更好的工具，用它可以方便的定义设计元素的边框样式，比background-image 属性(对高级设计来说) 或枯燥的默认边框样式更好用。我们也可以明确的定义一个边框可以被如何缩放或平铺。</p>
<p><strong><a href="http://www.blog.spoongraphics.co.uk/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-09.jpg" alt="CSS3-边框-图片" width="500" height="171" /></a><br />
<em>SpoonGraphics 博客为它的图片边框使用了border-image 属性。</em></strong></p>
<p><strong>在<a href="http://www.blog.spoongraphics.co.uk/" target="_blank">SpoonGraphis blog</a>中，border-image被用于图片边框，如下所示：</strong></p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#content</span> <span style="color: #6666ff;">.post</span> img <span style="color: #00AA00;">&#123;</span> &nbsp;<br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#f2e6d1</span><span style="color: #00AA00;">;</span> &nbsp;<br />
&nbsp; &nbsp;-webkit-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">main-border.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">6</span> <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span> &nbsp;<br />
&nbsp; &nbsp;-moz-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">main-border.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">6</span> <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span> &nbsp;<br />
&nbsp; &nbsp;border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">main-border.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">6</span> <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span> &nbsp;<br />
&nbsp; &nbsp;<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>要想定义border-image，我们必须指定图片地址，图片的那部分将被剪切并用于元素的每一个边上，以及图片是否被缩放或平铺。</p>
<p>为了制作一个使用下面的图片作为边框的div ，我们应该使用下面的代码(我们将为这个例子添加Opera 和Konqueror 支持):</p>
<p><strong><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-10.gif" alt="CSS3-边框" width="361" height="240" /></strong></p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">25px</span> <span style="color: #933;">25px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">18</span> stretch stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">18</span> stretch stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -o-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">18</span> stretch stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -khtml-border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">18</span> stretch stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">18</span> stretch stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>该属性的最后一个值可以是stretch (默认), round (只有一个平铺了整数倍的图片被填充在允许的地方) 或repeat。在我们的例子中，上下左右边框图片被拉伸。如果我们只想顶部和底部边框被拉伸，我们可以使用下面的CSS:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span> &nbsp;<br />
&nbsp; &nbsp;<span style="color: #00AA00;">&#40;</span>...<span style="color: #00AA00;">&#41;</span> &nbsp;<br />
&nbsp; &nbsp;border-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">18</span> stretch <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span> &nbsp;<br />
&nbsp; &nbsp;<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>我们可以可以单独的指定每一个角，如果我们想为每一个角使用不同的图片：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; border-top-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-right-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-bottom-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-left-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-top-left-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-top-right-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-bottom-left-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; border-bottom-right-image<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">example.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">5</span> <span style="color: #cc66cc;">5</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>如果浏览器不支持border-image 属性，它将无视这些属性，并只应用定义的其它边框属性，比如border-width 和border-color.</p>
<p>浏览器支持: border-image 目前只有Webkit核心浏览器支持。不太确定Firefox的下一个版本是否支持。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-background/#the-border-image" target="_blank">The ‘border-image’ property: W3C Working Draft</a></li>
<li><a href="http://www.css3.info/preview/border-image/" target="_blank">Border-image: using images for your border — CSS3.info</a></li>
<li><a href="http://ejohn.org/blog/border-image-in-firefox/" target="_blank">border-image in Firefox</a></li>
<li><a href="http://www.lrbabe.com/sdoms/borderImage/index.html" target="_blank">border-image demonstration page</a></li>
<li><a href="http://www.launchpadhq.com/blog/2007/07/07/replicating-iphone-buttons-the-webkit-way/" target="_blank">Replicating iPhone Buttons the “webkit” way!</a></li>
</ul>
<h3><strong>10. 盒阴影</strong></h3>
<p>box-shadow 属性可以对HTML元素添加阴影 而不用额外的标签或背景图片。类似text-shadow 属性，它增强设计的细节；而且因为它不影响内容的可读性，随意他可以是增加那种额外感觉/效果的一种很好的方法。</p>
<p><a href="http://10to1.be/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-11.jpg" alt="CSS3-盒-阴影" width="500" height="127" /><br />
</strong><em>10to1 为它的导航北京和hover状态使用了box-shadow 属性</em>.</p>
<p><a href="http://10to1.be/" target="_blank">10to1</a> 为其导航区域增加的一个简单的阴影并将该属性应用于导航链接的hover效果:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#navigation</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #cc00cc;">#navigation</span> li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; <span style="color: #cc00cc;">#navigation</span> li a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#111</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#111</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>box-shadow属性可以用多个值：水平偏移、垂直偏移、模糊半径、伸展半径和阴影颜色。水平和垂直偏移和阴影色使用的最多。</p>
<p>在一个div上应用红色阴影，右边和下边偏移4px，无模糊，我们可以使用下面的代码：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">div <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; -moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#f00</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#f00</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#f00</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>浏览器支持: box-shadow目前只有Webkit核心浏览器支持，但是即将发布的Firefox 3.5 也将提供很好的支持。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><strong><a href="http://www.w3.org/TR/css3-background/#the-box-shadow" target="_blank">The ‘box-shadow’ property — W3C Working Draft</a></strong></li>
<li><strong><a href="http://www.css3.info/preview/box-shadow/" target="_blank">Box-shadow, one of CSS3’s best new features — CSS3.info</a></strong></li>
<li><strong><a href="http://westciv.com/style_master/blog/apples-navigation-bar-using-only-css" target="_blank">Apple’s Navigation bar using only CSS</a></strong></li>
<li><strong><a href="http://webkit.org/blog/86/box-shadow/" target="_blank">Box Shadow — Surfin’ Safari blog</a></strong></li>
</ul>
<h3><strong>11. 盒子大小</strong></h3>
<p>根据CSS 2.1 规范，在计算盒子的总大小的时候，元素的边框和padding应该被加入到宽度和高度之中的。但是众所周知，旧的浏览器却以它们自己的非常有“创意”的方式来解释这个规范。box-sizing属性允许你指定浏览器如何计算一个元素的宽度和高度。</p>
<p><strong><a href="http://wordpress.org/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/07/CSS3-new-tech/css3-12.jpg" alt="CSS3-新特性" width="500" height="263" /></a><br />
</strong>WordPress 在控制面板的所有的输入框元素中使用border-box 属性。</p>
<p><a href="http://wordpress.org/" target="_blank">WordPress</a> 后台区域在它的所有text类型的input标签和textarea标签上使用了该属性:</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span><br />
&nbsp; &nbsp; textarea <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; -moz-box-sizing<span style="color: #00AA00;">:</span> border-box<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -webkit-box-sizing<span style="color: #00AA00;">:</span> border-box<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; -ms-box-sizing<span style="color: #00AA00;">:</span> border-box<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; box-sizing<span style="color: #00AA00;">:</span> border-box<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>第三个属性(-ms-box-sizing) 只有在Internet Explorer 8下有效。通过其他选择器，WordPress 的样式表同样添加了Konqueror 属性： -khtml-box-sizing。</p>
<p>box-sizing 属性可以两个值中的一个：border-box 和content-box。 Content-box如CSS2.1中的定义的那样渲染宽度。Border-box 从设定的宽度和高度中扣除padding和边框(如老式浏览器那样。)。</p>
<p>浏览器支持：box-sizing 被IE8、Opera、Gecko核心和Webkit核心浏览器支持。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><strong><a href="http://www.w3.org/TR/css3-ui/#box-sizing" target="_blank">‘box-sizing’ property: W3C Candidate Recommendation</a></strong></li>
<li><strong><a href="http://www.css3.info/preview/box-sizing/" target="_blank">Box-sizing, box-model fixes for the simple people: CSS3.info</a></strong></li>
<li><strong><a href="http://helephant.com/2008/10/css3-box-sizing-attribute/" target="_blank">CSS3 box-sizing attribute</a></strong></li>
</ul>
<h3><strong>12. 媒体查询</strong></h3>
<p>媒体查询（media queries）可以让你为不同的设备基于它们的能力定义不同的样式。比如，在可视区域小于480像素的时候，你可能想让网站的侧栏显示在主内容的下边，这样它就不应该浮动并显示在右侧了：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#sidebar</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <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><br />
&nbsp; &nbsp; <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: #808080; font-style: italic;">/* IE Double-Margin Bugfix */</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #a1a100;">@media all and (max-width:480px) {</span><br />
&nbsp; &nbsp; <span style="color: #cc00cc;">#sidebar</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <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><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>你也可以指定使用虑色屏的设备：</strong></p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">a <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> grey<span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #a1a100;">@media screen and (color) {</span><br />
&nbsp; &nbsp; a <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>潜力是无限的。这个属性是很有用的因为你你不在需要必须为不同的设备写独立的样式表了，而且你也无需使用JS来确定每个用户的浏览器的属性和功能。一个实现一个灵活的布局的更加流行的基于Javascript的方案是使用<a href="http://www.smashingmagazine.com/2009/06/09/smart-fixes-for-fluid-layouts/" target="_blank">智能的流体布局</a>，让布局对于用户的浏览器分辨率更加灵活。</p>
<p>浏览器支持： 媒体查询被基于webkit核心的浏览器和Opera支持。Firefox将在3.5版本中支持它。IE目前不支持这些属性而且在将来的版本中，也没有支持的计划。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><strong><a href="http://www.w3.org/TR/css3-mediaqueries/" target="_blank">媒体查询: W3C 候选推荐</a></strong></li>
<li><strong><a href="http://webkit.org/specs/MediaQueriesExtensions.html" target="_blank">扩展到CSS 3 媒体查询</a></strong></li>
<li><strong><a href="http://www.css3.info/preview/media-queries/" target="_blank">媒体查询: CSS3.info</a></strong></li>
<li><strong><a href="http://helephant.com/2008/07/the-bleeding-edge-of-web-media-queries/" target="_blank">The bleeding edge of web: media queries</a></strong></li>
<li><strong><a href="http://dev.opera.com/articles/view/safe-media-queries/" target="_blank">安全的媒体查询</a></strong></li>
<li><strong><a href="http://www.howtocreate.co.uk/tutorials/css/mediatypes" target="_blank">媒体类型</a></strong></li>
</ul>
<h3><strong>13. 语音</strong></h3>
<p>CSS3的语音模块CSS3可以让你为屏幕阅读者指定语音样式。你可以控制语音的不同设置，比如:</p>
<ul>
<li>voice-volume<br />
使用从0到100的数字(0 即静音)、百分数或关键词(silent,x-soft,soft,medium,loud 和x-loud等)来设置音量。</li>
<li>voice-balance<br />
控制来自哪个声道(如果用户的音箱系统支持立体声)。</li>
<li>Speak<br />
指示屏幕阅读器阅读相关的文字、数字或标点符号。可用的关键词为none, normal, spell-out, digits, literal-punctuation, no-punctuation 和inherit.</li>
<li>Pauses and rests<br />
在一个元素的被读完之前或之后设定暂停或停止。你可以使用时间单位(比如, “2s” 表示2 秒钟) 或关键词(none,x-weak, weak, medium, strong 和x-strong)。</li>
<li>Cues<br />
使用声音限制特定元素并控制器音量。</li>
<li>voice-family<br />
设定特定的声音类型和声音合成(就像font-family)。</li>
<li>voice-rate<br />
控制阅读的速度。可以设置为百分数或关键词: x-slow, slow,medium, fast 和x-fast.</li>
<li>voice-stress<br />
指示应该使用的任何重音(强语气)，使用不同的关键词: none, moderate,strong 和 reduced.</li>
</ul>
<p>比如，告诉屏幕阅读器使用男声读取所有的h2 标签，用左边的喇叭，用软调按照指定的声音，可以像下面这样指定样式：</p>
<div class="codecolorer-container css mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">h2 <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">voice-family</span><span style="color: #00AA00;">:</span> female<span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; voice-balance<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; voice-<span style="color: #000000; font-weight: bold;">volume</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">soft</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">cue-after</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;">sound.au</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>不幸的是，这个属性现在只有非常少的支持，但是显然值得关注因为我们可以在将来提高我们网站的易用性。</p>
<p><strong>浏览器支持:</strong> 现在，只有Opera 浏览器（Windows XP and 2000）支持语音模块的部分属性。为了使用它们，需要使用-xv- 前缀，比如-xv-voice-balance: right。</p>
<h4><strong>扩展阅读：</strong></h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-speech/" target="_blank">CSS3 语音模块——W3C 工作草案</a></li>
<li><a href="http://www.css3.info/preview/speech/" target="_blank">CSS3 语音 — CSS3.info</a></li>
<li><a href="http://lab.dotjay.co.uk/notes/css/aural-speech/" target="_blank">听觉CSS: 支持CSS 2 听觉样式表 / CSS 3 语音模块</a></li>
</ul>
<h3><strong>结尾</strong></h3>
<p><strong>CSS3 属性可以极大的提高你的工作流</strong>，让一些最耗时的CSS任务不费吹灰之力就能搞定，并且可以使用更好、更简洁和更轻的代码标签。一些属性尚未被广泛的支持，甚至是最新的浏览器，但这并不意味着我们不能用它们进行试验或者为使用先进浏览器的用户更高级的功能和CSS样式。</p>
<p>在这点儿上，请记住，<strong>培养我们的用户</strong> 也同样是有用和必须的：网站无需看起来在每个浏览器里都要保持一致，而且如果一个差异不（负面）影响美学和网站的可用性，它就应该是被考虑的。如果我们继续浪费大量的时间和金钱以使每个细节<strong>绝对一致</strong>(而不是采用更灵活的和未来导向的方案)， 用户将没有升级他们的浏览器的任何需要/动机，这样我们就不得不在旧的浏览器变为古董级浏览器以及强大的现代浏览器变为标准之前等待很长的时间</p>
<p>我们试验和使用新的CSS3属性越早，它们就被流行的浏览器支持的更早，我们也就能够更早的广泛使用它们。</p>
<h3><strong>推荐阅读及资源：</strong></h3>
<ul>
<li><strong><a href="http://www.css3.info/preview/" target="_blank">CSS3 Previews: CSS3.info</a></strong></li>
<li><strong><a href="http://www.noupe.com/css3/css3-exciting-functions-and-features-30-useful-tutorials.html" target="_blank">CSS 3: Exciting Function and Features: 30 Useful Tutorials</a></strong></li>
<li><strong><a href="http://www.noupe.com/jquery/5-css3-techniques-for-major-browsers-using-the-power-of-jquery.html" target="_blank">5 CSS3 Techniques For Major Browsers using the Power of jQuery</a></strong></li>
<li><strong><a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-1-what-is-it" target="_blank">Introduction to CSS3 – Part 1: What is it?</a></strong></li>
<li><strong><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28CSS%29" target="_blank">Comparison of layout engines (Cascading Style Sheets) and Wikipedia</a></strong></li>
<li><strong><a href="http://en.wikipedia.org/wiki/Progressive_enhancement" target="_blank">Progressive enhancement</a></strong></li>
<li><strong><a href="http://forabeautifulweb.com/blog/about/five_css_design_browser_differences_i_can_live_with/" target="_blank">Five CSS design browser differences I can live with</a></strong></li>
<li><strong><a href="http://www.alistapart.com/articles/progressiveenhancementwithcss/" target="_blank">Progressive Enhancement with CSS</a></strong></li>
<li><strong><a href="http://www.opera.com/docs/specs/opera95/css/" target="_blank">CSS support in Opera 9.5</a></strong></li>
</ul>
<h3><strong>关于原作者</strong></h3>
<p><em><strong><a href="http://yaili.com/" target="_blank">Inayaili de León</a></strong>是一个葡萄牙的网页设计师。她对网页设计和前端编码真的非常感兴趣，而且喜欢漂亮和简洁的网站。她居住在伦敦。你可以在<a href="http://webdesignernotebook.com/" target="_blank">Web Designer Notebook</a>上看到她的更多文章，并follow her on <a href="http://twitter.com/yaili" target="_blank">Twitter</a>.</em></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看CSS3最新教程及资源。</p>
<p>英文原文:<a title="Take Your Design To The Next Level With CSS3" rel="bookmark" href="http://www.smashingmagazine.com/2009/06/15/take-your-design-to-the-next-level-with-css3/">Take Your Design To The Next Level With CSS3</a><br />
翻译原文:<a href="http://www.qianduan.net/take-your-design-to-the-next-level-with-css3.html">用CSS3将你的设计带入下个高度 </a>(神采飞扬)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="../">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a href="../div-css-web-design-to-next-level-with-css3.html">http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>

	<h3>相关日志</h3>
	<ul class="st-related-posts">
	<li><a href="http://blog.bingo929.com/power-of-html5-css3-div-css.html" title="一起感受HTML5和CSS3的能量 (2009-08-10)">一起感受HTML5和CSS3的能量</a> (29)</li>
	<li><a href="http://blog.bingo929.com/5-css3-design-enhancements-div-css.html" title="5个CSS3技术实现设计增强 (2009-08-24)">5个CSS3技术实现设计增强</a> (7)</li>
	<li><a href="http://blog.bingo929.com/30-css-tec-examples.html" title="精选30个优秀的CSS技术和实例 (2008-12-04)">精选30个优秀的CSS技术和实例</a> (27)</li>
	<li><a href="http://blog.bingo929.com/50-awesome-css3-animations.html" title="用CSS3制作50个超棒动画效果教程 (2010-03-15)">用CSS3制作50个超棒动画效果教程</a> (22)</li>
	<li><a href="http://blog.bingo929.com/20-websites-learn-css.html" title="推荐20个让你学习并精通CSS的网站 (2008-10-28)">推荐20个让你学习并精通CSS的网站</a> (35)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/div-css-web-design-to-next-level-with-css3.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
