<asp:table runat="server" ID="mainTable" Width="100%" Height="100%" BorderColor="Red" BorderWidth="20px" BorderStyle="Solid">
<asp:TableRow runat="server" ID="mainRow" Width="100%" Height="100%" BorderColor="Purple" BorderWidth="20px" BorderStyle="Solid">
<asp:TableCell runat="server" ID="maincell" Width="100%" Height="100%" BorderColor="AliceBlue" BorderWidth="20px" BorderStyle="Solid">
<asp:Panel runat="server" ID="mainpanel" Width="100px" Height="100px" BackColor="Gainsboro"></asp:Panel>
</asp:TableCell>
</asp:TableRow>
</asp:table>
为什么表格没有显示? 我只能看到一个红色的框架,里面有一个蓝色框架,里面是灰色面板,红色桌子和蓝色单元格之间的紫色框架(表格行)在哪里?asp:tableRow没有在浏览器上显示(IE9 - asp.NET)
我刚刚尝试过相同的代码,它在ie 7,8和9中工作正常 –