html - 单元格文本未换行(html 表格)
问题描述
首先,我将向您展示它在 atm 中的显示方式:
如您所见,单元格最大宽度正在工作,但文本没有换行,而是溢出单元格。
这是我设置在表格中的 css:
border-spacing: 0 5px;
table-layout: fixed;
word-wrap:break-word;
这是我为该特定单元格设置的 css:
text-align: center;
font-weight: bold;
max-width: 100px;
解决方案
修复了它添加到单元格:
white-space: normal;
推荐阅读
- ruby-on-rails - 如何在 PhusionPassenger.on_event() 分叉后插入代码
- ruby-on-rails - 使用 Bootstrap 组件扩展 Trix
- java - 将两个表视图绑定在一起,但由于内容行高不同导致索引不匹配
- git - Git 强制提交和推送,当得到“没有提交”
- android - 从 Google Play 获取付费应用的购买令牌
- swift - “不支持可变枚举案例” swift 5 错误
- r - 有没有比 fread() 更快的方法来读取大数据?
- javascript - 根据数字输入部署多个 div
- spring - Spring boot OneToOne 关系问题
- spring-boot - 尝试向外部端点发送后请求时过早关闭连接