报表中数据不换行,没数据表头显示100%

表格中数据不换行,没数据表头显示100%.table2 th{?white-space:nowrap}.table2 td{?white-space:nowrap}

表格中数据不换行,没数据表头显示100%

.table2 th{
?white-space:nowrap;
}
.table2 td{
?white-space:nowrap;
}

其中.table2是表格table的一个class属性值

没数据时表头显示100% ,table 加属性 width="100%"

可左右滚动