【发布时间】:2016-07-31 12:24:27
【问题描述】:
我的表格有以下 html,但它在小屏幕上添加了水平滚动...请帮助我..如何删除该滚动并使表格完全响应。谢谢。
<div class="table-responsive col-12 col-sm-12 col-lg-12">
<table class="table table-hover table-bordered text-capitalize" style="margin-top: 20px">
<tr style="background-color :black; color: white">
<th>Sr.No</th>
<th>Name</th>
<th>Expense Detail</th>
<th>Expense Date</th>
<th>Amount</th>
</tr>
<tr>
<td>1</td>
<td>aamir shoeb</td>
<td>abc</td>
<td>2016-04-09</td>
<td>25</td>
</tr>
<tr>
<td>2</td>
<td>aamir shoeb</td>
<td>hjk</td>
<td>2016-04-09</td>
<td>57</td>
</tr>
<tr>
<td>3</td>
<td>aamir shoeb</td>
<td>uuu</td>
<td>2016-04-10</td>
<td>56</td>
</tr>
<tr class="success">
<td colspan="3" style="visibility: hidden"></td>
<td>Total</td>
<td>1222</td>
</tr>
</table>
</div>
【问题讨论】:
标签: html css twitter-bootstrap responsive-design html-table