Text only
|
Text with Images
虚拟社区
程序开发 => WEB前端开发 => HTML/CSS开发技术 => 主题发帖人为: jvip_chen 于 2022-1月-05 06:25 下午
标题:
bootstrap table中td内容设置不换行
作者:
jvip_chen
于
2022-1月-05 06:25 下午
bootstrap table中td内容设置不换行
/*表格内容滚动,不换行显示*/
代码
[选择]
Expand
td{
white-space:nowrap;
overflow:hidden;
word-break:keep-all;
}
/*表格宽度不改变,多出的不显示*/
代码
[选择]
Expand
table{
table-layout:fixed;
}
Text only
|
Text with Images