<table cellpadding="4" cellspacing="1" align="center" rules="all" class="ContentTable">
<tr>
<td>
Active Students
</td>
<td>
<asp:TextBox ID="txtActiveStudents" runat="server" CssClass="TextBox" ReadOnly="true"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Student/Teacher Ratio (Agreed Upon)
</td>
<td>
<asp:TextBox ID="txtRatio" runat="server" CssClass="TextBox" ReadOnly="true"></asp:TextBox>
</td>
</tr>
</table>
这是css
.ContentTable
{
border: solid 1px #EBEBEB;
border-collapse: collapse;
width: 98%;
vertical-align: middle;
}
我的问题是未应用的表格样式。
我希望将表格格式化为行和列(边框)。