table列表中不换行处理(适应不同分辨率)

来源:互联网 发布:手机上能编程的软件 编辑:程序博客网 时间:2024/05/19 18:10

1.首先把一些固定大小的列设置足够的固定宽度

2.预留一两个列不设置固定宽度

3.设置td th样式。

table td{word-break: keep-all;white-space:nowrap;}
table th{word-break: keep-all;white-space:nowrap;}

目前测试在IE、firefox、chrome均兼容

原创粉丝点击