
定义和用法
CellSpacing 属性用于获取或设置表格中单元格的间距(以像素计)。
注意:该属性在 FireFox 中无效。
语法
<asp:Table CellSpacing="
px" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
属性 | 描述 |
---|---|
px | 规定单元格的间距(以像素计)。 |
实例
下面的实例设置了 Table 控件的 CellSpacing 属性:
<form runat="server"> <asp:Table id="tab1" runat="server" CellSpacing="20"> <asp:TableRow> <asp:TableCell> Hello! </asp:TableCell> </asp:TableRow> </asp:Table> </form>
