在ASP.NET中动态更改图像的位置
问题描述:
在我的asp.net应用程序中,我需要动态移动图像的位置.
image1.Location =新Point(x,y);正在使用C#Windows应用程序
你能让我在asp.net中使用类似的命令吗?
在此先感谢
Hi,
In my asp.net application, I need to move the location of an image dynamically.
image1.Location =new Point(x,y); is working c# windows application
Can you please let me the similar command in asp.net
Thanks in advance
答
您可以在代码中设置style属性,如下所示:
You can set the style attribute in the code as follows:
Image1.Attributes.Item("style") = "Z-INDEX: 176; LEFT: 584px; POSITION: absolute; TOP: 176px";