在vs2010环境下
我拖动下背景图片,Btn_Login这个按钮就不见了,但是代码还在那个地方
另外,2个lable控件不能拖动,在DIV里边订死了,但是text控件却可以拖动有点头疼啊,请帮助下,下边是HTML代码
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Rili.Login" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="css/hy.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #Btn_Login{Z-INDEX: 105; LEFT: 100px;
TOP: -116px;
POSITION:relative; height: 26px; width: 73px;
}
#layout{height: 543px;
width: 818px;
margin:auto;overflow:auto; zoom:1;
}
#Txt_UserName{POSITION:relative;
top: 371px;
left: 548px;
height: 26px;
}
#Txt_PassWord{POSITION:relative;
top: 422px;
left: 401px;
height: 26px;
}
</style></head>
<body>
<form id="form1" runat="server">
<div id="layout" >
<asp:TextBox ID="Txt_UserName" runat="server" ></asp:TextBox>
<asp:TextBox ID="Txt_PassWord" runat="server"></asp:TextBox>
<asp:Button ID="Btn_Login" runat="server" CssClass="Button" Text="登录"
onclick="Btn_Login_Click" />
<asp:Label ID="Lb_UserName" runat="server" Text="用户名"
style="Z-INDEX: 101; LEFT: 530px; POSITION: relative; TOP: 438px"></asp:Label>
<asp:Label ID="Lb_PassWord" runat="server" Text="密 码"
style="Z-INDEX: 101; LEFT: 532px; POSITION: relative; TOP: 390px"></asp:Label>
</div>
</form>
</body>
</html>
我拖动下背景图片,Btn_Login这个按钮就不见了,但是代码还在那个地方
另外,2个lable控件不能拖动,在DIV里边订死了,但是text控件却可以拖动有点头疼啊,请帮助下,下边是HTML代码
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Rili.Login" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="css/hy.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #Btn_Login{Z-INDEX: 105; LEFT: 100px;
TOP: -116px;
POSITION:relative; height: 26px; width: 73px;
}
#layout{height: 543px;
width: 818px;
margin:auto;overflow:auto; zoom:1;
}
#Txt_UserName{POSITION:relative;
top: 371px;
left: 548px;
height: 26px;
}
#Txt_PassWord{POSITION:relative;
top: 422px;
left: 401px;
height: 26px;
}
</style></head>
<body>
<form id="form1" runat="server">
<div id="layout" >
<asp:TextBox ID="Txt_UserName" runat="server" ></asp:TextBox>
<asp:TextBox ID="Txt_PassWord" runat="server"></asp:TextBox>
<asp:Button ID="Btn_Login" runat="server" CssClass="Button" Text="登录"
onclick="Btn_Login_Click" />
<asp:Label ID="Lb_UserName" runat="server" Text="用户名"
style="Z-INDEX: 101; LEFT: 530px; POSITION: relative; TOP: 438px"></asp:Label>
<asp:Label ID="Lb_PassWord" runat="server" Text="密 码"
style="Z-INDEX: 101; LEFT: 532px; POSITION: relative; TOP: 390px"></asp:Label>
</div>
</form>
</body>
</html>
你的意思是:把控件都放到panel上边吗?