我有二段简单的代码一个是用VS03写的,一个是用VS05写的
我想用05实现的03写的效果..
如果改DOCTYPE会有影响吗?-----------------------------03--------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <TABLE WIDTH="100%"  height="100%">
<TR height="1px">
<TD bgcolor="red"></TD>
</TR>
<TR height="100px">
<TD bgcolor="blue"></TD>
</TR>
</TABLE>
    </form>
</body>
</html>
-----------------------------05--------------------------------
<!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 runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <TABLE WIDTH="100%"  height="100%">
<TR height="1px">
<TD bgcolor="red"></TD>
</TR>
<TR height="100px">
<TD bgcolor="blue"></TD>
</TR>
</TABLE>
    </form>
</body>
</html>
-----------------------------------------------------
其实就是DOCTYPE的不同
代码意见我想把一个表格撑到整个页面.
举个例子:第一条标题,第二行可能就是很长的GridView了,带滚动条