DAY6

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title>登录页面</title>
<link href="demo.css"rel="stylesheet"/>
    <script src="jquery-3.2.1.js"></script>
<script src="layer/layer.js"></script>
<script src="dadudenglu.js"></script>
</head>
<body>
<div id="header">
<div id="header-con">
<div><a href="javascript:;"id="blogin"οnclick="ShowLoginBox()">登录</a></div>
<div><a href="javascript:;"id="breg">注册</a></div>
</div>
</div>
<div id="loginbox">
<div class="box"><input type="text"id="txtUserName"placeholder="请输入用户名"/></div>
<div class="box"><input type="password"id="txtPwd"placeholder="请输入密码"></div>
<div class="box"><a href="javescript:;">登录</a></div>
</div>
</body>

</html>




*{
padding: 0px;
margin: 0px;
}
#header{
width: 100%;
height:40px;
background-color: #DDDDDD;
}
a {
text-decoration: none;
}
#header-con{
width: 900px;
height: 40px;
margin: 0px auto;
}
#header-con div {
float: right;
line-height: 40px;
margin-left: 10px;
}
#header-con div a {
color: black;
}
.box input{
width: 350px;
height: 40px;
}
.box a{
width: 354px;
height: 50px;
background-color: blue;
display: block;
text-align: center;
line-height: 50px;
color: white;
font-size: 40px;
font-family: times;
margin-top:50px;
}
.box {
margin-top:20px;
margin-left: 20px;
}
#loginbox{
display: none;
}



function ShowLoginBox()
{
layer.open({
type:1,
title:"登录",
area:["395px","300px"],
content:$("#loginbox")
});
}


第一次只能跟着老师一点一点学着做,光需要引入的就让我费了好长时间去找。希望自己以后能更加熟练。



C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\Parser.js:437 throw err; // Rethrow non-MySQL errors ^ Error: secretOrPrivateKey must have a value at module.exports [as sign] (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\jsonwebtoken\sign.js:107:20) at Query.<anonymous> (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\router_handler\2user.js:49:26) at Query.<anonymous> (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\Connection.js:526:10) at Query._callback (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\Connection.js:488:16) at Sequence.end (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24) at Query._handleFinalResultPacket (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\sequences\Query.js:149:8) at Query.EofPacket (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\sequences\Query.js:133:8) at Protocol._parsePacket (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\Protocol.js:291:23) at Parser._parsePacket (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\Parser.js:433:10) at Parser.write (C:\Users\admin\Desktop\前端开发\Node.js\day6\code\api_server\node_modules\mysql\lib\protocol\Parser.js:43:10) Node.js v18.12.1
06-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值