Bootstrap-table,溢出
Bootstrap-table, overflow
我已经尝试 Bootstrap-table (http://bootstrap-table.wenzhixin.net.cn/),用于过滤和分页。
工作正常,但是当我在 table 中放置下拉菜单时,您必须滚动才能显示它。
<table id="ex" class="table table-striped table-condensed table-hover">
<thead class="thead-inverse">
<tr>
<th></th>
<th>Date</th>
<th>Customer</th>
<th>Amount</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>#
</td>
<td>
<nobr>2015-03-03</nobr>
</td>
<td>Test</td>
<td>
<nobr>8 000,00</nobr>
</td>
<td>OK</td>
</tr>
<tr>
<td>#</td>
<td>2015-03-04</td>
<td>Test</td>
<td>433,33</td>
<td>OK</td>
</tr>
<tr>
<td>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Action
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>First menu item</li>
<li>Second menu item</li>
</ul>
</div>
</td>
<td>2015-03-06</td>
<td>Test</td>
<td>33,12</td>
<td>OK</td>
</tr>
</tbody>
</table>
https://jsfiddle.net/qr3ao2e3/
你有什么解决办法吗?
.fixed-table-body
class 的 overflow
X 和 Y 属性设置为 auto
,这意味着:
auto - Should cause a scrolling mechanism to be provided for
overflowing boxes
这修复了它
.fixed-table-body {
overflow-x: visible;
overflow-y: visible;
height: 100%;
}
See your updated fiddle here。希望对您有所帮助。
我已经尝试 Bootstrap-table (http://bootstrap-table.wenzhixin.net.cn/),用于过滤和分页。
工作正常,但是当我在 table 中放置下拉菜单时,您必须滚动才能显示它。
<table id="ex" class="table table-striped table-condensed table-hover">
<thead class="thead-inverse">
<tr>
<th></th>
<th>Date</th>
<th>Customer</th>
<th>Amount</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>#
</td>
<td>
<nobr>2015-03-03</nobr>
</td>
<td>Test</td>
<td>
<nobr>8 000,00</nobr>
</td>
<td>OK</td>
</tr>
<tr>
<td>#</td>
<td>2015-03-04</td>
<td>Test</td>
<td>433,33</td>
<td>OK</td>
</tr>
<tr>
<td>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Action
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>First menu item</li>
<li>Second menu item</li>
</ul>
</div>
</td>
<td>2015-03-06</td>
<td>Test</td>
<td>33,12</td>
<td>OK</td>
</tr>
</tbody>
</table>
https://jsfiddle.net/qr3ao2e3/
你有什么解决办法吗?
.fixed-table-body
class 的 overflow
X 和 Y 属性设置为 auto
,这意味着:
auto - Should cause a scrolling mechanism to be provided for overflowing boxes
这修复了它
.fixed-table-body {
overflow-x: visible;
overflow-y: visible;
height: 100%;
}
See your updated fiddle here。希望对您有所帮助。