gpt4 book ai didi

css - 包含按钮的 Bootstrap 表没有响应

转载 作者:太空宇宙 更新时间:2023-11-04 12:22:48 24 4
gpt4 key购买 nike

所以我目前正在做一些事情,我的问题是我的 table 没有响应,很可能是因为我正在使用的按钮。其他表显示正常。

屏幕:Screenshot

代码:

<tr>
<td><? echo $sLa['id']; ?></td>
<td><? echo $sLa['Name']; ?></td>
<td><? echo $sLa['Modell']; ?></td>
<td><? echo $sLa['Version']; ?></td>
<td><? echo $sLa['IP']; ?></td>
<td>
<a href="registeroverview.php?id=<?php echo $sLa['id']; ?>&kid=<?php echo $lID; ?>"><button type="button" class="btn btn-info btn-xs">Detail</button></a>
<a href="editregister.php?id=<?php echo $sLa['id']; ?>"><button type="button" class="btn btn-primary btn-warning btn-xs">Bearbeiten</button></a>
<a href="#"><button type="button" class="btn btn-primary btn-danger btn-xs">Löschen</button></a>
</td>
</tr>

最后一个 td 包含按钮。有谁知道如何使该表响应?

最佳答案

评论中建议的table-responsive class让表格内部有水平滚动条,这可能就是你要找的。

表格本身并没有真正“响应”,您拥有的表格已经是它将获得的最小表格 - 表格内的内容迫使它变得那么宽 - 检查这个:http://zurb.com/article/982/a-new-take-on-responsive-tables

Tables have a magical property that says they can never be so small that parts of a word have to be cut off — they can't overflow. That means that, when your design shrinks down for the width of, say a smartphone, large data tables will ensure your design doesn't actually shrink all the way down.

关于css - 包含按钮的 Bootstrap 表没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28245228/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com