我在vs.2005中做网站的时候,我把控件摆好位置了为什么一编译的时候位置就移动了???????????????? 求大家帮助~!!!!!!!!!!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 最好看一下页面的html.界面的显示,和html里面的属性数据有出入的.特别是表格的长度.要自己手动改.所有出来的界面没有达到你想要的效果.界面-->html 相互切换,也可以看出界面的真实效果. 嗯!直接在设计界面做的和实际的会有出入,最好到代码模式下看看实际的html代码是怎样的,直接用代码来控制布局。 div style="background-color: white; background-image: url(image/无标题.bmp); position: static;"> <asp:TextBox ID="TextBox1" runat="server" Style="left: 220px; position: relative; top: 75px" OnTextChanged="TextBox1_TextChanged"></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" Style="left: 62px; position: relative; top: 117px"></asp:TextBox> <asp:Label ID="Label1" runat="server" Style="left: -179px; position: relative; top: 72px" Text="用户名"></asp:Label> <asp:TextBox ID="TextBox3" runat="server" Style="left: -150px; position: relative; top: 159px"></asp:TextBox> <asp:Label ID="Label2" runat="server" Style="left: -386px; position: relative; top: 114px" Text="密码"></asp:Label> <asp:Label ID="Label3" runat="server" Style="left: -432px; position: relative; top: 157px" Text="验证码"></asp:Label><br /> <br /> <br /> <br /> <br /> <br /> <asp:Button ID="Button1" runat="server" Style="left: 218px; position: relative; top: 102px" Text="登录" OnClick="Button1_Click" /><br /> <br /> <br /> <br /> <br /> <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Default2.aspx" Style="left: 387px; position: relative; top: 3px">用户注册</asp:LinkButton><br /> <asp:Button ID="Button2" runat="server" Style="left: 293px; position: relative; top: -17px" Text="重置" OnClick="Button2_Click" /><br /> 读取EXCEL的某些列 为何建窗体时,提示:文件中的类都不能进行设计,因此未能为该文件显示设计器 C#如何连接远程的sql server 2000数据库 重写和隐藏的区别在哪里? ComboBox怎么设置默认选择项和不能输入只能选择里面的内容?? C#怎么操作excel啊?? 无法从传输连接中读取数据: 一个封锁操作被对 WSACancelBlockingCall 的调用中断? C#中事件的作用?跟函数有什么区别 这里人气旺,谁来硪我看一下这个数据库的问题,清版主保留,谢谢 如何将一个Date型转换为Double型? 如何往一个文本文件前面加一行? 为什么总显示不能登陆呢
界面的显示,和html里面的属性数据有出入的.特别是表格的长度.要自己手动改.
所有出来的界面没有达到你想要的效果.
界面-->html 相互切换,也可以看出界面的真实效果.
<asp:TextBox ID="TextBox1" runat="server" Style="left: 220px; position: relative;
top: 75px" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" Style="left: 62px; position: relative;
top: 117px"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Style="left: -179px; position: relative; top: 72px"
Text="用户名"></asp:Label>
<asp:TextBox ID="TextBox3" runat="server" Style="left: -150px; position: relative;
top: 159px"></asp:TextBox>
<asp:Label ID="Label2" runat="server" Style="left: -386px; position: relative; top: 114px"
Text="密码"></asp:Label>
<asp:Label ID="Label3" runat="server" Style="left: -432px; position: relative; top: 157px"
Text="验证码"></asp:Label><br />
<br />
<br />
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" Style="left: 218px; position: relative; top: 102px"
Text="登录" OnClick="Button1_Click" /><br />
<br />
<br />
<br />
<br />
<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Default2.aspx" Style="left: 387px;
position: relative; top: 3px">用户注册</asp:LinkButton><br />
<asp:Button ID="Button2" runat="server" Style="left: 293px; position: relative; top: -17px"
Text="重置" OnClick="Button2_Click" /><br />