【发布时间】:2011-07-14 02:04:42
【问题描述】:
可能的重复:
Why are tables bad rather than css?
Why not use tables for layout in HTML?
用表格创建模板有什么问题?
我只是想帮助某人,我得到了一个赞成票,然后是几个反对票,因为我建议了一个带有表格的解决方案:How do you select half the remaining width using css?
我的建议是:
<html>
<head>
<title></title>
<style type="text/css">
TD.left
{
width: auto;
}
TD.main
{
width:1000px;
}
TD.right
{
width: auto;
}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left"> </td>
<td class="main"> </td>
<td class="right"> </td>
</tr>
</table>
</body>
【问题讨论】:
标签: html