?
本文檔使用 PHP中文網(wǎng)手冊 發(fā)布
Image 控件用于顯示圖像。
屬性 | 描述 | .NET |
---|---|---|
AlternateText | 圖像的替代文本。 | 1.0 |
DescriptionUrl | 對圖像進行詳細描述的位置。 | 2.0 |
GenerateEmptyAlternateText | 規(guī)定該控件是否創(chuàng)建一個作為替代文本的空字符串。 | 2.0 |
ImageAlign | 規(guī)定圖像的排列方式。 | 1.0 |
ImageUrl | 顯示此鏈接的圖像的 URL | 1.0 |
runat | 規(guī)定該控件是服務(wù)器控件。必須設(shè)置為 "server"。 | 1.0 |
AccessKey,?Attributes,?BackColor,?BorderColor,?BorderStyle,?BorderWidth,?CssClass,?Enabled,?Font,?EnableTheming,?ForeColor,?Height,?IsEnabled,?SkinID,?Style,?TabIndex,?ToolTip,?Width
如需完整描述,請訪問 Web 控件標(biāo)準(zhǔn)屬性。
AppRelativeTemplateSourceDirectory,?BindingContainer,?ClientID,?Controls,?EnableTheming,?EnableViewState,?ID,?NamingContainer,?Page,?Parent,?Site,?TemplateControl,?TemplateSourceDirectory,?UniqueID,?Visible
如需完整描述,請訪問 控件標(biāo)準(zhǔn)屬性。
Image
<!DOCTYPE?html> <html> <body> <form?runat="server"> <asp:Image runat="server" AlternateText="jianzhan" ImageUrl="/banners/w6.gif"/> </form> </body> </html>
在本例中,我們在 .aspx 文件中聲明了一個 Image 控件。