VS2005Web控件拖动

在VS2005项目中,布局—>位置—>自动定位选项—>HTML设计器—>CSS定位—>定位选项 选择相对定位 确定就OK!如:<asp:Button ID="Button1" runat="server" Text="Button" style="left: 235px; position: absolute(relative); top: 210px;" Height="29px" Width="111px" /> 加入style后就可以任意的移动其位置啦@_@   在Windows窗体设计器选项中,右边的内容中有一个LayoutMode(它有两个选项),选择SnapToGrid。

原文地址:https://www.cnblogs.com/Leo_wl/p/1728662.html