html - 强制 TD 宽度,在 TBODY 内的 TR 内
问题描述
我有一个 html 模板:
table
thead
tr
th
th
th
tbody
tr
td
td
td
包含表格标题的 My th 具有属性:width="180"
第一个和第二个,以及width="360"
第三个。
我在 tr 下面的第三个 td 标记中有很长的文本,但是它溢出了很多。我该如何处理它,让我的列具有固定宽度(360)?我已经尝试了很多从其他主题中读到的东西,但没有任何效果:position: fixed, overflow: hidden
等等,等等。
谢谢。
解决方案
推荐阅读
- git - GIT:获取通过提交添加到存储库的所有 git 对象哈希
- angular - 量角器问题:click() 函数不起作用
- ios - 如何使用 SwiftUI 扩展按钮的宽度
- python - 警告:脚本........安装在不在路径上的某个地方
- c# - 为什么即使打开 Excel 工作簿,ExcelApplication.Workbooks.Count 也显示为零
- c++ - 添加了自定义子组件但不可见
- visual-studio - 我可以使用 Selenium 在 VS 2017 dotnet 4.7 中创建自动化测试吗
- c++ - unordered_map 上的 C++ 未定义行为作为基于范围的 for 循环中的右值
- python - 如果 Loss 是字符串或函数,TensorFlow Keras 序列模型的训练方式会有所不同
- javascript - Apple Sign in Javascript :: 如何处理成功的登录回调(redirect_uri)