→原文在这←
下面是用法↓
1、
table { table-layout: fixed;}
一般配合使用
table{
table-layout: fixed; width: 100%; white-space: nowrap;
}
table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
然后可以愉快的给td设置宽度了
→原文在这←
下面是用法↓
1、
table { table-layout: fixed;}
一般配合使用
table{
table-layout: fixed; width: 100%; white-space: nowrap;
}
table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
然后可以愉快的给td设置宽度了
本文标题:table的table-layout
本文链接:https://www.haomeiwen.com/subject/pkffettx.html
网友评论