<!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>Document</title>
<link rel="stylesheet" href="./css/demo.css">
</head>
<body>
<br><br><br>
<div class="mydiv">
<br><br><br>
<h1 style=" text-align: center;">登录界面</h1>
<br><br><br><br>
<form action="#" method="get">
账号<input type="text" name="id" placeholder="手机号码/邮箱">
<br>
密码<input type="password" name="pass" placeholder="数字+ 字母">
<br>
<div class="sex-div"> 性别<label><input type="radio" name="sex">男</label>
<input type="radio" name="sex">女
</div>
<br>
<div class="div-addr">
地区<select name="addr" >
<option value="">--请选择--</option>
<option value="广州">广州</option>
</select>
</div>
<input type="submit" value="注册">
</form>
</div>
</body>
</html>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
form{
text-align: center;
}
.mydiv{
width: 400px;
height: 700px;
background-color: pink;
margin: 0 auto;
}
.mydiv .sex-div{
margin-left: -110px;
}
.mydiv .div-addr{
margin-left: -94px;
margin-top: -22px
}