Even simpler, use the span* class (span, span2 etc).
This will keep the buttons in sync with the grid.
请注意,一些要素的白色空间(如一段)与实际的纽埃空间不同,因此,如果你在桌子上混杂一些要素,则可能扩大纽埃的面积(如我在下文中所做的那样)。 因此,最好只保留一种内容。
我个人希望避免表格,但你说,你将使用表格,因此我也这样做。 你们可以只靠电网/耳光来解决这一问题,但这可能是先天、更灵活和反应更强的。 你的呼吁。
人们还记得,你大概会把任何因素看上去。 如果你ton子只是一个环节,那么一个tag子也许会更好;它仍然可以像一个 but子一样看待和发挥功能。
在这里,用大量可点击的粗略表格,我确实做了解释,我希望:
<table class="span8">
<tr>
<td>
You could do buttons
</td>
<td>
<button class="span3 btn btn-info">Like this button</button>
</td>
<td>
<button class="span3 btn btn-info">and this</button>
</td>
</tr>
<tr>
<td>
Or a paragraph
</td>
<td>
<p class="span3 btn btn-info">Like this paragraph</p>
</td>
<td>
<a href="http://www.example.com" class="span3 btn btn-info">Or an anchor</a>
</td>
</tr>
<tr>
<td>
Note the difference in whitespace on Block elements (like Paragraphs and Anchors) and inline elements (like buttons).
</td>
<td>
<p class="span3 btn btn-info">Like this paragraph</p>
</td>
<td>
<a href="http://stackoverflow.com/" class="span3 btn btn-info">Or an anchor with an ridicilous amont of text on it, but this things do happen so plan ahead.</a>
</td>
</tr>
<tr>
<td>
Or a paragraph with a link
</td>
<td>
<a href="http://stackoverflow.com/"><p class="span3 btn btn-info">Paragraph w/link</p></a>
</td>
<td>
<button class="span3 btn btn-info">This a button with fairly long text. Beware of whitespace</button>
</td>
</tr>
<tr>
<td>
Or a paragraph with a link
</td>
<td>
<button class="span3 btn btn-info">Another button</button>
</td>
<td>
<a href="http://stackoverflow.com/"><p class="span3 btn btn-info">Another linked paragraph</p></a>
</td>
</tr>
</table>
Note that exactly the same classes are called for each of the clickables.
I hope this answers your question.