自适应宽度:
td { width: 1px; white-space: nowrap; /* 自适应宽度*/ word-break: keep-all; /* 避免长单词截断,保持全部 */ }
自适应高度
table { table-layout: fixed; width: 100%; }
自适应宽度:
td { width: 1px; white-space: nowrap; /* 自适应宽度*/ word-break: keep-all; /* 避免长单词截断,保持全部 */ }
自适应高度
table { table-layout: fixed; width: 100%; }