如何在asp.net c#代码后面改变面板位置 [英] how to change panel position in asp.net c# code behind
本文介绍了如何在asp.net c#代码后面改变面板位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个面板的asp.net脚本端代码,如:
I have the asp.net script side code for a panel like:
<asp:Panel ID="Panel1" runat="server"
style="border-color: #99CCFF; border-style: solid; padding: 1px 4px; z-index: 1; left: 336px; top: 313px; position: absolute; height: 167px; width: 666px">
是否有可能更改上面面板ID的左上角:1通过c#后面的代码为asp.net
Is there any possibility to change the top,left of the above panel ID:1 through code behind in c# for asp.net
推荐答案
使用此代码。
Use this code.
Panel1.Style.Add(HtmlTextWriterStyle.Top, "20px");
这篇关于如何在asp.net c#代码后面改变面板位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文