61,112
社区成员
发帖
与我相关
我的任务
分享
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录框</title>
<style type="text/css">
.loginbox {
width:350px;
height:320px;
background: rgba(255,255,255,0.5);
filter: alpha(opacity=50);
box-shadow: 0 0 30px black;
border-radius: 10px;
}
.title {
height:50px;
border-bottom:1px solid #cccccc;
background: rgba(245,245,245,0.9);
border-top-left-radius:10px;
border-top-right-radius:10px;
/*
top:40px;
position:relative;
*/
}
.dl {
float:left;
line-height:50px;
text-indent:10px;
}
.gb {
float:right;
font-size:16px;
font-weight:bold;
color: #ffffff;
margin-right:10px;
}
.gb:hover{
color: #000000;
cursor: pointer;
}
/*
以下设置格式就好像不行了
*/
.logininfo inputname {
width:65px;
height:34px;
}
.logininfo inputvalue {
width:220px;
height:34px;
}
#btn {
height:40px;
border-radius: 5px;
background: green;
border: none;
color: white;
font-size: 25px;
font-weight:400;
text-align: center;
}
</style>
</head>
<body>
<div class="loginbox" id="loginbox">
<div class="title" id="title">
<span><div class="dl" id="dl">用户登录</div></span>
<span><div class="gb" id="gb">x</div></span>
</div>
<div class="logininfo" id="logininfo">
<form action="" method="post">
<p>
<span class="inputname" id="yhmname">用户名</span>
<span class="inputvalue" id="yhm"><input type="text" placeholder="请输入用户名"/> </span>
</p>
<p>
<span class="inputname" id="pwdname">密码</span>
<span class="inputvalue" id="pwd"><input type="password" placeholder="请输入密码"/> </span>
</p>
<p>
<span class="inputname" id="yzmname">验证码</span>
<span class="inputvalue" id="yzm"><input type="text" placeholder="请输入验证码" maxlength="4"/> </span>
<span id="jsyzm"><input type="text" placeholder="JS生成验证码"/> </span>
</p>
<p><span id="btn"><input type="button" value="登录" /></span></p>
</form>
</div>
</div>
</body>
</html>