[求助]为什么会变形?
<HTML><HEAD>
<title>ApplyFind</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">
<script language="JavaScript" src="js/calendar.js"></script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="auto" height="auto" style="margin-left:20px">
<caption align="center">审批单查询</caption>
<tr>
<td style="width: 133px" ><asp:Label ID="Label2" runat="server" Width="22px">从:</asp:Label>
<asp:TextBox ID="txtStart" onfocus="calendar()"
runat="server" Width="96px"></asp:TextBox>
</td>
<td style="width: 150px" ><asp:Label ID="Label3" runat="server">到:</asp:Label>
<asp:TextBox ID="txtEnd" onfocus="calendar()"
runat="server" Width="113px"></asp:TextBox></td>
<td style="width: 159px"><asp:Label ID="Label1" runat="server">从:</asp:Label>
<asp:TextBox ID="TextBox3" runat="server" Width="121px"></asp:TextBox>
</td>
<td style="width: 1px" ><asp:button id="Button1" runat="server" Text="Button" onclick="Button1_Click">
</asp:button> </td>
</tr>
<tr>
<td colspan="4" height="auto">
<asp:datagrid id="DataGrid1" runat="server"
Width="511px" AutoGenerateColumns="False" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" BackColor="White"
CellPadding="3" DataKeyField="apply_no">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="apply_Date" HeaderText="申请日期" DataFormatString="{0:yy-MM-dd}">
<HeaderStyle Width="100px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="apply_No" HeaderText="申请单号">
<HeaderStyle Width="200px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="approve_State" HeaderText="审批状态"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="详细内容">
<HeaderStyle Width="80px"></HeaderStyle>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
</td>
</tr>
</table>
</form>
</body>
</HTML>
这是我在VS2005中设计时的图,而运行是上面那就变成不在一行了,我现在想让他在一行,应该如何做啊,谢谢了!
[此贴子已经被作者于2006-7-8 10:44:40编辑过]