datatables - 数据表中重叠的列标题文本
问题描述
我使用数据表来显示数据,表有 14 列
但我在显示表头数据时遇到问题。它重叠而不是显示在两行
我这样创建表
<table id="tbl" class="table" cellspacing="0" width="100%" style="word-wrap:break-word;
table-layout: fixed;">
<thead>
<tr>
<th>Column Name</th>
</tr>
</thead>
</table>
我怎样才能在两行中做到这一点
解决方案
<table id="tbl" class="table" cellspacing="0" width="100%" style="word-wrap:break-word;
table-layout: fixed;">
<thead>
<tr>
<th style="word-wrap: break-word;">Column Name</th>
</tr>
</thead>
</table>
溢出:隐藏应该可以解决问题;-)
推荐阅读
- python - 根据列表项匹配数据框列值并返回列表项
- javascript - React - 映射到子级的新道具从高阶组件中返回未定义
- c# - c#删除不匹配正则表达式的所有内容
- java - 使用java 8流在地图地图内迭代列表
- json - 想要在 bash 脚本中解析 JSON,但出现“python:无法执行二进制文件”错误
- haskell - Haskell 中的 Lambda
- vue.js - 点击工具提示内容 vuetify
- javascript - XHR GET 请求在后台脚本中失败 - Chrome 扩展开发
- html - HTML表格的边框问题
- javascript - 问题:在 Meteor 服务器启动后多次启动 cron 例程