html table中td内容超出显示.怎么实现
展开全部
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style type="text/css">
table {
width:250px;
table-layout:fixed;
}
td {
white-space:nowrap;
overflow:hidden;
}
</style>
</head>
<body>
<table border="1" cellspacing="0" >
<tr>
<th style="width:100px;"><strong>aaa</strong></th>
<th style="width:150px;"><strong>bbb</strong></th>
</tr>
<tr>
<td>aaaaaaaaaaaxxxxxxxaaaabb</td>
<td>xxxx</td>
</tr>
</table>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询