本文为实现一个简单的系统登录界面,并通过JS实现登录跳转。
1.首先编写一个自己喜欢的页面,码上见。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录界面</title>
<style>
html,body{
height: 100%;
margin: 0;
padding: 0;
}
.container {
width: 100%;
height: 100%;
position: relative;
top: 0;
}
.top{
width:100%;
height: 10%;
background-color:rgba(255,255,255,0.6);
text-align: center;
}
.mainloc{
width: 30%;
height: 40%;
position: absolute;
left:50%;
top:50%;
margin-left: -15%;
margin-top: -10%;
text-align: center;
line-height: 40px;
border-radius: 10px;