<?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>LetRails &#187; CSS</title>
	<atom:link href="http://www.letrails.cn/archives/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.letrails.cn</link>
	<description></description>
	<lastBuildDate>Sat, 06 Aug 2011 07:02:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Blueprint简介</title>
		<link>http://www.letrails.cn/archives/blueprint-intro/</link>
		<comments>http://www.letrails.cn/archives/blueprint-intro/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 16:27:46 +0000</pubDate>
		<dc:creator>yuanyi</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.letrails.cn/archives/blueprint-intro</guid>
		<description><![CDATA[Blueprint是一个CSS框架，使用Blueprint可以大大缩短CSS的开发时间以及质量，它的设计思想来自作者Jeff Croft的《Frameworks for Designers》一文（中文版； 理解Web框架，和如何构建一个CSS框架），简单来说，Blueprint将网页分成了许多长度为40的长条（column），每个长条的宽度（span）为30（蓝色部分），空白（margin）为10（白色部分），你可以通过名为span-n的class来指定div的宽度，比如，下面的代码就是一个典型的3栏设计： &#60;div class=&#8221;container&#8221;&#62; &#160;&#160;&#60;div class=&#8221;span-24&#8243;&#62; &#160;&#160;&#160;&#160;Header &#160;&#160;&#60;/div> &#160;&#160;&#60;div class=&#8221;span-4&#8243;&#62; &#160;&#160;&#160;&#160;Left sidebar &#160;&#160;&#60;/div> &#160;&#160;&#60;div class=&#8221;span-16&#8243;&#62; &#160;&#160;&#160;&#160;Main content &#160;&#160;&#60;/div&#62; &#160;&#160;&#60;div class=&#8221;span-4 last&#8221;&#62; &#160;&#160;&#160;&#160;Right sidebar &#160;&#160;&#60;/div&#62; &#60;/div&#62; container默认width为950，也就是24栏（24*40 － 10 ＝ 950），你可以通过在container后增加showgrid class来显示背景格子，Blueprint还提供了几个很有用的Ruby脚本用于压缩CSS文件以及进行W3C CSS检查，这里是详细指南（英文），这篇中文介绍很不错。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Rails 2.1 时区简介" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Frails-2-1-timezone-tutorials%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Rails 2.1 时区简介</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RSpec Story简介" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Frspec-story-tutorials%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RSpec Story简介</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="rcov: ruby代码覆盖率工具" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2F51%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/08/3251581.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">rcov: ruby代码覆盖率工具</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google Chart API: 基本上很强大" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2F07-11-13-google-chart-api%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/08/3251630.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google Chart API: 基本上很强大</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/blueprintcss/"><img src="http://files.bjorkoy.com/images/blueprint.png" alt="" /></a></p>
<p><a href="http://code.google.com/p/blueprintcss/">Blueprint</a>是一个CSS框架，使用Blueprint可以大大缩短CSS的开发时间以及质量，它的设计思想来自作者Jeff Croft的《F<a href="http://www.alistapart.com/articles/frameworksfordesigners">rameworks for Designers</a>》一文（中文版； <a href="http://css.chinahtml.com/2007/css-118602092315431.shtml">理解Web框架，和如何构建一个CSS框架</a>），简单来说，Blueprint将网页分成了许多长度为40的长条（column），每个长条的宽度（span）为30（蓝色部分），空白（margin）为10（白色部分），你可以通过名为span-n的class来指定div的宽度，比如，下面的代码就是一个典型的3栏设计：</p>
<p>&lt;div class=&#8221;container&#8221;&gt;<br />
&nbsp;&nbsp;&lt;div class=&#8221;span-24&#8243;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Header<br />
&nbsp;&nbsp;&lt;/div><br />
&nbsp;&nbsp;&lt;div class=&#8221;span-4&#8243;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Left sidebar<br />
&nbsp;&nbsp;&lt;/div><br />
&nbsp;&nbsp;&lt;div class=&#8221;span-16&#8243;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Main content<br />
&nbsp;&nbsp;&lt;/div&gt;<br />
&nbsp;&nbsp;&lt;div class=&#8221;span-4 last&#8221;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Right sidebar<br />
&nbsp;&nbsp;&lt;/div&gt;<br />
&lt;/div&gt;<br />
</code></p>
<p>container默认width为950，也就是24栏（24*40 － 10 ＝ 950），你可以通过在container后增加showgrid class来显示背景格子，Blueprint还提供了几个很有用的Ruby脚本用于压缩CSS文件以及进行W3C CSS检查，这里是<a href="http://code.google.com/p/blueprintcss/wiki/Tutorial">详细指南</a>（英文），这篇<a href="http://www.phpchina.com/25831/viewspace_16119.html">中文介绍</a>很不错。</p>
<p><img src='http://lilac.greatweb.cn/rails/wp-content/uploads/2008/06/blueprint.png' alt='blueprint.png' /></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Rails 2.1 时区简介" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Frails-2-1-timezone-tutorials%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Rails 2.1 时区简介</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RSpec Story简介" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Frspec-story-tutorials%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RSpec Story简介</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用ruby-prof获取rails应用的profile" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2F36%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/08/3251481.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用ruby-prof获取rails应用的profile</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="谷歌字典Mac客户端" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fgoogle-dictionary-for-mac%2F&from=http%3A%2F%2Fwww.letrails.cn%2Farchives%2Fblueprint-intro%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/21/32739215.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">谷歌字典Mac客户端</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.letrails.cn/archives/blueprint-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

