javascript - Bootstrap 3 - 静态表头实现

标签 javascript html css twitter-bootstrap-3

我想知道在 bootstrap 3 中处理静态表头并保持 bootstrap 表 css 类的响应式设计的最佳方法。

所以 标签在滚动表格行时应该是静态的。

<table class="table table-striped">
  <thead>
  <tr>
    <th>Col1</th>
    <th>Col2</th>
    <th>Col3</th>
    <th>Col4</th>
  </tr>
 </thead>
 <tbody>
 <tr>
    <td>Some data..</td>
    <td>Some data..</td>
</tr>
....

最佳答案

我无法发表评论,因为我还没有足够的代表。

所以基本上你想关闭 bootstrap 中 thead 元素的响应部分?正常吗?

关于javascript - Bootstrap 3 - 静态表头实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39634807/

相关文章:

javascript - 使用相同函数的多个表单提交

jquery - 如何添加仅在移动屏幕尺寸上显示的菜单?

html - 在 Firefox 中调整大小时图像容器宽度不会改变

javascript - Bootstrap 数据表排序无法正常工作

JavaScript RegExp 密码验证不起作用

javascript - 目标小于容器时的D3 zoom translateExtent计算

javascript - 使用JavaScript一一获取标签 'a'中的列表值

javascript - 来自以太坊合约的运营商 _;

javascript - 将 div 设置为位置 : fixed on scroll with jquery causes content below to jump up

css - 文本流过 div