
定义和用法
ImageUrl 属性用于设置或返回要显示的图像的 URL。
语法
<asp:Image ImageUrl="
URL" runat="server"
/>
属性 | 描述 |
---|---|
URL | 要使用的图像的 URL。 |
实例
下面的实例为 Image 控件设置了 ImageUrl 属性:
<form runat="server"> <asp:Image id="Img1" runat="server" ImageUrl="img.gif" /> </form>
