Latest web development tutorials

ASP.NET Image ImageAlign property

Image Control Image Control

Definition and Usage

ImageAlign property sets or returns the image alignment.

grammar

<asp:Image ImageAlign="align" runat="server" />
属性 描述
align 规定图像的排列方式。

可能的值:

  • NotSet
  • AbsBottom
  • AbsMiddle
  • BaseLine
  • Bottom
  • Left
  • Middle
  • Right
  • TextTop
  • Top


Examples

The following examples set ImageAlign property to Image control:

<form runat="server">
<asp:Image id="Img1" runat="server"
ImageUrl="img.gif" ImageAlign="Right" />
</form>

The demonstration >>

Image Control Image Control