我正在处理下面的代码,并试图找出以下问题:
如你所见,我无法使用
- 为什么表格没有响应式效果
- 我想通过使用
col-md-3
和col-lg-3
来控制<td>
的宽度;这在表格中是否有效?
<div class="col-md-offset-1 col-lg-offset-1 col-md-6 col-lg-6">
<table class="table table-hover table-responsive">
<tbody>
<tr>
<td width="174"><strong>7:30 – 8:45 a.m.</strong></td>
<td>Arrival / Health CheckFree Choice in Activity Areas, books, puzzles, matching games, large block building, small blocks, floor toys, Lego, trucks and car play.</td>
</tr>
<tr>
<td><strong>8:45 – 9:00 a.m.</strong></td>
<td>Clean-up, toileting, wash up for snack</td>
</tr>
<tr>
<td><strong>9:00 – 9:30 a.m.</strong></td>
<td>Morning snack</td>
</tr>
<tr>
<td><strong>9:30 -10:00 a.m.</strong></td>
<td>Circle Time: Action songs, singing time, finger plays, hello songs, discussion of daily activities</td>
</tr>
</tbody>
</table>
</div>
如你所见,我无法使用
col-md-3
和col-lg-3
来控制表格的大小,因此我将其包裹在一个div中,但响应式效果并未生效。
col-*
类只是设置了一个百分比宽度,这与使用<td width="10%">
相似。 - ceejayoz<div class="table-responsive">
,我的表格也是响应式的。我只使用了表格类。我不知道它是如何实现的。 - Sasa1234