美文网首页
table的table-layout

table的table-layout

作者: 一沭丶 | 来源:发表于2016-08-30 14:24 被阅读15次

→原文在这←
下面是用法↓
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