【发布时间】:2016-05-26 22:27:23
【问题描述】:
【问题讨论】:
标签: html twitter-bootstrap-3 angular-ui-bootstrap
【问题讨论】:
标签: html twitter-bootstrap-3 angular-ui-bootstrap
尝试将table-responsive 类添加到您的html 的table 标记中。
这是一个让表格响应的引导类。
【讨论】:
这就是你所需要的。它非常适合您的需要,您会喜欢的。
检查此链接 - foo 表库/插件:https://css-tricks.com/footable-a-jquery-plugin-for-responsive-data-tables/
【讨论】:
此链接将帮助您需要
index.html
<table>
<thead>
<tr>
<th>Code</th>
<th>Company</th>
<th class="numeric">Price</th>
<th class="numeric">Change</th>
<th class="numeric">Change %</th>
<th class="numeric">Open</th>
<th class="numeric">High</th>
<th class="numeric">Low</th>
<th class="numeric">Volume</th>
</tr>
</thead>
<tbody>
<tr>
<td>AAC</td>
<td>AUSTRALIAN AGRICULTURAL COMPANY LIMITED.</td>
<td class="numeric">$1.38</td>
<td class="numeric">-0.01</td>
<td class="numeric">-0.36%</td>
<td class="numeric">$1.39</td>
<td class="numeric">$1.39</td>
<td class="numeric">$1.38</td>
<td class="numeric">9,395</td>
</tr>
</tbody>
</table>
css.css
@media only screen and (max-width: 800px) {
#unseen table td:nth-child(2),
#unseen table th:nth-child(2) {display: none;}
}
@media only screen and (max-width: 640px) {
#unseen table td:nth-child(4),
#unseen table th:nth-child(4),
#unseen table td:nth-child(7),
#unseen table th:nth-child(7),
#unseen table td:nth-child(8),
#unseen table th:nth-child(8){display: none;}
}
【讨论】: