CSS表格固定列宽

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
    table {
        table-layout:fixed;
    }
    table td {
        white-space:nowrap;
        overflow:hidden;
        word-break:keep-all;
        text-overflow:ellipsis
    }
</style>
</head>

<body>
<table width="600" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td>第一列</td>
    <td>第二列第二列第二列第二列第二列第二列</td>
    <td>第三列</td>
  </tr>
</table>
</body>
</html>
原文地址:https://www.cnblogs.com/liuswi/p/5645169.html