ASP.NET HTML 控件 Table

asp.net html 控件 table

<!doctype html>
<html>
<body>

<form runat=server>
<asp:table runat="server" cellpadding="5"
gridlines="horizontal" horizontalalign="center">
   <asp:tablerow>
     <asp:tablecell>1</asp:tablecell>
     <asp:tablecell>2</asp:tablecell>
   </asp:tablerow>
   <asp:tablerow>
     <asp:tablecell>3</asp:tablecell>
     <asp:tablecell>4</asp:tablecell>
   </asp:tablerow>
</asp:table>
<br>
<asp:table runat="server" cellpadding="5"
gridlines="vertical" horizontalalign="center">
   <asp:tablerow>
     <asp:tablecell>1</asp:tablecell>
     <asp:tablecell>2</asp:tablecell>
   </asp:tablerow>
   <asp:tablerow>
     <asp:tablecell>3</asp:tablecell>
     <asp:tablecell>4</asp:tablecell>
   </asp:tablerow>
</asp:table>
</form>

</body>
</html>
相关文章