.table2 th{?white-space:nowrap;}.table2 td{?white-space:nowrap;}
其中.table2是表格table的一个class属性值
没数据时表头显示100% ,table 加属性 width="100%"
可左右滚动