我试图在col-xs
和中隐藏我的响应式设计的列col-sm
。我首先尝试使用hidden-xs/hidden-sm
类,但这没有用。我也尝试过使用visible-desktop
这里提到的:Twitter Bootstrap Responsive - Show Table Column only on Desktop
那也没用。做这个的最好方式是什么?我宁愿不制作两个单独的表格,然后隐藏其中一个。
我试过的代码目前不起作用:
<table>
<thead>
<th>Show All the time</th>
<th class="hidden-xs hidden-sm">Hide in XS and SM</th>
</thead>
<tbody>
<tr>
<td>Show All the time</td>
<td class="hidden-xs hidden-sm">Hide in XS and SM</td>
</tr>
</tbody>
</table>