当前位置: css > CSS框架 >

Blueprint CSS framework 分析(9)

时间:2010-01-05 20:47来源:网络 作者:秩名 点击:
Bydefault,thegridis950pxwide,with24columns spanning30px,anda10pxmarginbetweencolumns. Ifyouneedfewerormorecolumns,namespacesorsemantic elementnames,usethecompressorscript(lib/compress.rb) Note:Changes
 
  •          
  •     By default, the grid is 950px wide, with 24 columns     
  •     spanning 30px, and a 10px margin between columns.     
  •          
  •     If you need fewer or more columns, namespaces or semantic     
  •     element names, use the compressor script (lib/compress.rb)     
  •          
  •     Note: Changes made in this file will not be applied when     
  •     using the compressor: make changes in lib/blueprint/grid.css.rb     
  •          
  • -------------------------------------------------------------- */     
  •      
  • /* A container should group all your columns.      
  • 容器宽950,居中     
  • */     
  • .container {      
  •   width950px;      
  •   margin0 auto;      
  • }      
  •      
  • /* Use this class on any div.span / container to see the grid.      
  • 显示grid     
  • */     
  • .showgrid {       
  •   backgroundurl(src/grid.png);       
  • }      
  •      
  •      
  • /* Columns     
  • -------------------------------------------------------------- */     
  •      
  • /* Sets up basic grid floating and margin.      
  • DIV需要float才能排一行     
  • */     
  • .column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span
  • 顶一下
    (2)
    100%
    踩一下
    (0)
    0%
    ------分隔线----------------------------
    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    评价:
    表情:
    用户名:密码: 验证码:点击我更换图片
    推荐内容