Table.BackImageUrl 属性

定义

获取或设置要在 Table 控件的后面显示的背景图像的 URL。Gets or sets the URL of the background image to display behind the Table control.

public:
 virtual property System::String ^ BackImageUrl { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public virtual string BackImageUrl { get; set; }
public virtual string BackImageUrl { get; set; }
member this.BackImageUrl : string with get, set
Public Overridable Property BackImageUrl As String

属性值

Table 控件的背景图像的 URL。The URL of the background image for the Table control. 默认值是 EmptyThe default value is Empty.

属性

注解

使用 BackImageUrl 属性指定在 Table 控件的背景中显示的图像的位置。Use the BackImageUrl property to specify the location of an image to display in the background of the Table control. 您可以使用相对或绝对 URL。You can use a relative or an absolute URL. 相对 URL 将图像的位置与网页或用户控件的位置相关联,而无需在服务器上指定完整路径。A relative URL relates the location of the image to the location of the Web page or user control without specifying a complete path on the server. 路径相对于网页的位置。The path is relative to the location of the Web page. 这样就可以更轻松地将整个站点移动到服务器上的另一个目录中,而无需在代码中更新图像的路径。This makes it easier to move the entire site to another directory on the server without updating the path to the image in code. 绝对 URL 提供完整路径,因此,将站点移到另一个目录需要更新代码。An absolute URL provides the complete path, so moving the site to another directory requires updating the code.

备注

如果图像小于 Table 控件,则将平铺。If the image is smaller than the Table control, it will be tiled.

适用于

另请参阅