在ASP.NET中动态更改图像的位置 [英] Change location of an image dynamically in asp.net
本文介绍了在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";
这篇关于在ASP.NET中动态更改图像的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文