我想把Table单元格里面的控件按顺序水平排列,但是控件却垂直排列很纠结
解决方案 »
- 如何自定义aspx页面生成的Register标记?
- asp.net多线程问题
- 如何实现将鼠标放到如repater上的一行上跳出一个小框来显示这一行的文字
- 怎样通过ajax实现弹出一个登陆框(不影响原有页面的浏览与操作)
- Label控件有字数限制吗,如果有,是多少
- 投票问题
- DataGrid不能显示的问题
- asp.net连接interbase出错,请大家帮忙解决,谢谢!!!
- 想实现动态更换界面?
- 能动态的决定输入数据数,就想vb中的datagrid控件一样能一次录入多条数据?急急急!!!!
- 网站在调试时可以导出Excel或Word,但是网站发布后导出Excel或Word出现问题。。各位以前遇到过这种情况吗??
- ASP.NET的table,好不容易动态添加了好多行、列,一点Button,就啥都没了
(手敲代码,不过应该没问题。) TableRow r = new TableRow();
TableCell c = new TableCell();
r = new TableRow();
Button b1 = new Button();
b1.Width = 40;
b1.Height = 20;
b1.Text = "bt1";
c.Controls.Add(b1);
r.Cells.Add(c);
c.Controls.Add(new LiteralControl("99"));
r.Cells.Add(c);
Button b2 = new Button();
b2.Height = 20;
b2.Width = 40;
b2.Text = "bt2";
c.Controls.Add(b2);
r.Cells.Add(c);
c.Controls.Add(new LiteralControl("99"));
r.Cells.Add(c);
Table1.Controls.Add(r);
<style type= "text/css ">
.e{POSITION:relative;}
.ee{LEFT:80px;top:0px;POSITION:absolute;}
.elarge{LEFT:140px;top:0px;POSITION:absolute;}
</style>
<table id="Table1" border="0" cellpadding="1" cellspacing="1" width="780px"
style="table-layout:fixed">
<td style="width: 25%; text-align: right;" bgcolor="#E0E0E0">
是否自动续签
</td>
<td align="left" class="style1" colspan="3">
<div class="e">
<asp:RadioButtonList ID="rdoLstisContinue" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="0">否</asp:ListItem>
<asp:ListItem Value="1">是, 自动续签</asp:ListItem>
</asp:RadioButtonList>
<div class="elarge">
<asp:TextBox ID="txtContinueYear" runat="server" Width="54px"></asp:TextBox>
年
</div>
</div>
</td>
</tr>
</table>
<table id="Table1" border="0" cellpadding="1" cellspacing="1" width="780px" style="table-layout:fixed" bgcolor =yellow>
<tr> <td style="width: 25%; text-align: right;" bgcolor="#E0E0E0"> 是否自动续签 </td>
<td align="left" class="style1" width =50%>
<asp:RadioButtonList ID="rdoLstisContinue" runat="server" RepeatDirection="Horizontal" >
<asp:ListItem Value="0">否</asp:ListItem>
<asp:ListItem Value="1">是, 自动续签</asp:ListItem>
</asp:RadioButtonList>
</td>
<td> <asp:TextBox ID="txtContinueYear" runat="server" Width=20%></asp:TextBox> 年</td>
</tr></table>