表格套表格的定位问题,头都被这个弄晕了 外面表格加cellSpacing="0" cellPadding="0"<TABLE id="Table1" cellSpacing="0" cellPadding="0"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="SunCode.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html> <head> <title>WebForm1</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </head> <body ms_positioning="GridLayout"> <table id="Table1" style="WIDTH: 377px; HEIGHT: 24px" cellspacing="0" cellpadding="0" width="377" border="1"> <tr> <td> <table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1"> <tr> <td></td> </tr> </table> </td> </tr> </table> </body></html> 同意二楼的,加上cellSpacing=0 cellPadding=0 就ok 把height去掉<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="SunCode.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html> <head> <title>WebForm1</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </head> <body ms_positioning="GridLayout"> <table id="Table1" style="WIDTH: 377px;" cellspacing="0" cellpadding="0" border="1"> <tr> <td> <table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1"> <tr> <td></td> </tr> </table> </td> </tr> </table> </body></html> 重新整理一下,请帮看看,怀疑是.net的编辑环境的问题。总是自动加上style但不应该总是调不拢,两条底线之间总象多一行的距离。<body ms_positioning="GridLayout"> <table id="Table1" style="WIDTH: 377px; HEIGHT: 24px" cellspacing="0" cellpadding="0" width="377"border="1"> <tr> <td> <table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1"> <tr> <td></td> </tr> </table> </td> </tr> </table></body> 把style="WIDTH: 377px; HEIGHT: 24px"中的HEIGHT: 24px去掉 或者把里面的table的height设为 100%<body ms_positioning="GridLayout"> <table id="Table1" style="WIDTH: 377px; HEIGHT:24px" cellspacing="0" cellpadding="0" width="377"border="1"> <tr> <td> <table id="Table2" style="height:100%" cellspacing="1" cellpadding="1" width="372" border="1"> <tr> <td></td> </tr> </table> </td> </tr> </table></body> <table id="Table2" cellspacing="0" cellpadding="0" width="300" border="0" style="WIDTH: 300px; HEIGHT:100%">果然是这个 HEIGHT 在做怪。我今晚可彻底的I服了它了。也感觉到.net的编辑环境如此的不好用。老给我自动加一些乱七八糟的东西。谢谢各位。 加分 你的TABLE2的HEIGHT呢?設為100% 或和TABLE1 的一樣。我想就差不多了吧 就這樣,我試過了,行的<html> <head> <title>WebForm1</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </head> <body ms_positioning="GridLayout"> <table id="Table1" style="WIDTH: 377px; HEIGHT: 24px" cellspacing="0" cellpadding="0" width="377" border="1"> <tr> <td> <table id="Table2" cellspacing="1" cellpadding="1" width="372" height=100% border="1"> <tr> <td></td> </tr> </table> </td> </tr> </table> </body></html> yfelix(贝贝) 确实可以的 <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="SunCode.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html> <head> <title>WebForm1</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </head> <body ms_positioning="GridLayout"> <table id="Table1" style="WIDTH: 377px;" cellspacing="0" cellpadding="0" border="1"> <tr> <td> <table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1"> <tr> <td></td> </tr> </table> </td> </tr> </table> </body></html> 设计模式选择 ASP.NET中如何实现FORM认证登录 asp.net发送Email 表格问题 求SQL语句一条 DATAGRID和DATAVIEW小问题,有高手帮忙吗? 取得记录总数. ▲▲▲查询数据表中任意20条记录,可以实现吗? 再次提问,怎么把二进制文件读到库里,调用的时候再显示出来 如何让asp.net页面已启动就向客户端添加一个cookie 为什么我用VS。NET建asp.net的web应用程序系统提示说我的asp.net不是1。1版? ----求救---3个---简单问题---关于datagrid--和...-----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</head>
<body ms_positioning="GridLayout">
<table id="Table1" style="WIDTH: 377px; HEIGHT: 24px" cellspacing="0" cellpadding="0" width="377"
border="1">
<tr>
<td>
<table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
cellSpacing=0 cellPadding=0 就ok
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</head>
<body ms_positioning="GridLayout">
<table id="Table1" style="WIDTH: 377px;" cellspacing="0" cellpadding="0"
border="1">
<tr>
<td>
<table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
但不应该总是调不拢,两条底线之间总象多一行的距离。<body ms_positioning="GridLayout">
<table id="Table1" style="WIDTH: 377px; HEIGHT: 24px" cellspacing="0" cellpadding="0" width="377"border="1">
<tr>
<td>
<table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<body ms_positioning="GridLayout">
<table id="Table1" style="WIDTH: 377px; HEIGHT:24px" cellspacing="0" cellpadding="0" width="377"border="1">
<tr>
<td>
<table id="Table2" style="height:100%" cellspacing="1" cellpadding="1" width="372" border="1">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
設為100% 或和TABLE1 的一樣。
我想就差不多了吧
<head>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</head>
<body ms_positioning="GridLayout">
<table id="Table1" style="WIDTH: 377px; HEIGHT: 24px" cellspacing="0" cellpadding="0" width="377"
border="1">
<tr>
<td>
<table id="Table2" cellspacing="1" cellpadding="1" width="372" height=100% border="1">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
确实可以的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</head>
<body ms_positioning="GridLayout">
<table id="Table1" style="WIDTH: 377px;" cellspacing="0" cellpadding="0"
border="1">
<tr>
<td>
<table id="Table2" cellspacing="1" cellpadding="1" width="372" border="1">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>