2013-01-17 75 views

回答

0

這個想法是如何尋找初學者的?
http://jsfiddle.net/panchroma/8FEap/

您將類.borderLeft的跨度,如果你想有一個邊界,以它的左邊

<div class="row"> 
<div class="span6">span6</div> 
<div class="span3 borderLeft">span3</div> 
<div class="span3 borderLeft">span3</div> 
</div><!-- end row --> 

,並使用這個CSS

.borderLeft { 

/* use border-box so border is applied inside the span and doesn't break the grid */ 

-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ 
-moz-box-sizing: border-box; /* Firefox, other Gecko */ 
box-sizing: border-box;   /* Opera/IE 8+ */ 

/* define your border */ 
border-left: 2px solid red; 

/* remove the default bootstrap padding */ 
margin-left:10px !important; 


/* make final adjustments to restore padding to span */ 
padding-left:10px; 
margin-right:10px !important; 

} 
+0

酷,謝謝!這樣可行。 –

+0

太棒了,祝你的項目好運 –