嗨,我有一张不同列宽的表格,如下所示
${"#goldBarList"} table tr td:first-child{width:5%;}
${"#goldBarList"} table tr td:first-child+td{width:5%;}
${"#goldBarList"} table tr td:first-child+td+td{width:6%;}
${"#goldBarList"} table tr td:first-child+td+td+td{width:7%;}
${"#goldBarList"} table tr td:first-child+td+td+td+td{width:7%;}
${"#goldBarList"} table tr td:first-child+td+td+td+td+td+td+td{width:11%;}
${"#goldBarList"} table tr td:first-child+td+td+td+td+td+td+td+td{width:11%;}
${"#goldBarList"} table tr td:first-child+td+td+td+td+td+td+td+td+td{width:11%;}
${"#goldBarList"} table tr td:first-child+td+td+td+td+td+td+td+td+td+td{width:11%;}
${"#goldBarList"} table tr:first-child{read-only:true; font-size:90%; font-weight:bold;
}
我用了
${"#goldBarList"} table{
table-layout:fixed;
word-wrap:break-word;
}
使表格固定并将文本包装在单元格中。但问题是它没有根据列的宽度包装文本。表示宽度为 5%,宽度为 11% 时,它会环绕超过 8 个字符的文本。但我想根据列宽包装文本。这个怎么做..?