2015-07-19 19 views

回答

0

如果我想用这种方法使用与Susy(我最喜爱的网格),我会阴沟设置为0,并在我的萨斯手动管理的利润,这样的:现在

$susy: (columns: 4, gutters: 0, math: fluid, output: float, last-flow: to) 

@import "susy/susy" 

body 
    background-color: #fff 
    margin: 0 
    padding: 0 
    font-size: 100% 
    color: #000 

.container 
    @include container() 

.box 
    @include span(1) 
    &:last-child 
     @include last() 
    div 
     background-color: #ccc 
     margin: 0 10px // Will result in 20px margin 
    &:first-child 
     div 
      margin-left: 0 // Skip, if you want outer gutter 
    &:last-child 
     div 
      margin-right: 0 // Skip, if you want outer gutter 

,用标记像...

<div class="container"> 

    <div class="box"> 
     <div>A</div> 
    </div> 

    <div class="box"> 
     <div>B</div> 
    </div> 

    <div class="box"> 
     <div>C</div> 
    </div> 

    <div class="box"> 
     <div>D</div> 
    </div> 

</div> 

...你会得到固定排水沟液柱 - 这是不是与Susy一个阴沟里,但一个“看得见”阴沟里。当然,如果你需要依赖断点的行为,这是一个额外的工作,但恕我直言可以接受。

和Susy放在一边:Bootstrap使用固定的排水沟宽度。尽管我发现将网格从Bootstrap膨胀中移出是非常麻烦的,但如果我只想要一个网格而没有别的东西。

+0

谢谢。我想如果我加入一个额外的div,我可以使用Susy的inside-static选项。我也会研究这一点。可能是我最好的选择。 – user1754576

相关问题