ASP.NET BackImageUrl 屬性

定義和用法
BackImageUrl 屬性用於設置或返回用作 Table 控件背景圖像的圖像的 URL。
語法
<asp:Table BackImageUrl="URL" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
屬性 | 描述 |
---|---|
URL | 要使用的圖像的 URL。 |
實例
下麵的實例為 Table 控件設置了 BackImageUrl:
<form runat="server">
<asp:Table id="tab1" runat="server" BackImageUrl="img.gif">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
<asp:Table id="tab1" runat="server" BackImageUrl="img.gif">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
