도 간단 스팬 * 클래스 사용 (범위를, span2 등). 그러면 단추가 눈금과 동기화됩니다.
단락과 같은 일부 요소의 공백은 실제 버튼의 공백과 다르므로 아래 예제에서 의도 한대로 요소를 혼합하면 버튼 크기가 엉망이 될 수 있습니다). 그러므로 한 종류의 요소 만 고수하는 것이 가장 좋습니다.
개인적으로 나는 테이블을 피하는 것을 선호하지만 테이블을 사용할 것이라고 말했기 때문에 나 역시 그렇게했습니다. 그리드/스캐 폴딩만으로도이를 해결할 수 있습니까? 아마 더 예쁘고 유연하며 반응이 좋을 것입니다. 너의 전화.
또한 단추처럼 보이도록 요소를 스타일링 할 수 있습니다. 버튼에 링크 만 있으면 A 태그가 더 좋을 것입니다. 버튼처럼 보이고 기능 할 수 있습니다. 정확히 같은 클래스가 clickables의 각 요구되는
<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>
참고 : clickables 많은 Heres는 못생긴 이전 테이블
은, 내가 희망이 설명의 작업을 수행합니다. 질문에 대한 답변이 되었기를 바랍니다.
간단한 예를 들어 주시겠습니까? – trante
버튼과 관련된 이상한 간격 문제가 있습니다. 입력에 .span4를 적용하면 올바르게 확장되었지만 버튼을 사용해 보았을 때 버튼 왼쪽에 여백이 많이 생겼습니다. 그래도 뭔가 잘못 됐을 수도 있습니다. (또한 다른 범위 값 중 하나에서 발생했습니다) – anjunatl