htmltable 出现黑色区域为嘛?
<table width="100%" cellspacing="0" align="center" bgcolor="#000000" style="font-size: 9pt;"runat="server" id="DivDetail" visible="false">
<tr bgcolor="#ffffff">
<td style="width: 10%; height: 22px;" align="right">
</td>
<td bgcolor="#ffffff" style="height: 22px">
<uc3:AreaCode ID="AreaCode2" runat="server" />
</td>
<td style="width: 10%; height: 22px;" align="right">
储气能力:</td>
<td style="width: 30%; height: 22px;">
<asp:TextBox ID="AssembleNum" runat="server"> </asp:TextBox>(吨)</td>
</tr>
</table>
protected void btnDetails_Click(object sender, EventArgs e)
{
string _IDS = Request.Form["IDS"];
if (DivDetailInit1(_IDS))
{
HtmlTable table = (HtmlTable)PageDivEdit;
foreach (HtmlTableRow divDetail in DivDetail.Rows)
{
foreach (HtmlTableRow row in table.Rows)
{
for (int i = 0; i < row.Controls.Count; i++)
{
divDetail.Controls.Add(row.Controls[i]);
}
}
}
DivList.Visible = false;
DivDetail.Visible = true;
}
我前台布局好了的,后台传入一htmltable进行赋值上面代码拿是能拿出来了,但是布局错乱还有一块区域是黑的 --------------------编程问答-------------------- 去掉 bgcolor="#000000" --------------------编程问答-------------------- --------------------编程问答--------------------
+1 --------------------编程问答--------------------
bgcolor="#000000"差不多是怪这一个地方,楼主试试。++但是我感觉是楼主取出的html摸个地方出错了。 --------------------编程问答-------------------- 某
补充:.NET技术 , ASP.NET