在电脑屏幕中间展现登录表单
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>form表单</title>
<style>
*{
margin: 0px;
padding: 0px;
}
html,body{
height: 100%;
}
.outer{
background-color: darkgoldenrod;
position: relative;
height: 100%;
}
.content{
padding:20px;
background-color: #bfa;
width: 300px;
height: 100px;
margin: auto;
position: absolute;
left:0;
right: 0;
top:0;
bottom: 0;
}
</style>
</head>
<body>
<div class="outer">
<div class="content">
<!-- <form action="./04_布局.html" target="_blank">
用户名:
<input type="text" name="username">
<br>
密 码:
<input type="password" name="password">
<br>
男
<input type="radio" name="sex" >
女
<input type="radio" name="sex" >
<br>
<input type="submit"> -->
</form>
</div>
</div>
</body>
</html>
|