用HTML写一个登录页面 华丽 AI科技感
时间: 2023-05-27 15:04:10 浏览: 73
<!DOCTYPE html>
<html>
<head>
<title>登录页面</title>
<style>
body{
background-color: #f7f7f7;
font-family: Arial, sans-serif;
font-size: 16px;
color: #333;
text-align: center;
padding-top: 50px;
}
form{
background-color: #fff;
padding: 20px;
border: 1px solid #aaa;
border-radius: 5px;
box-shadow: 2px 2px 5px #aaa;
width: 400px;
display: inline-block;
}
h1{
font-size: 30px;
margin: 0;
margin-bottom: 20px;
color: #333;
}
label{
display: block;
font-size: 18px;
margin-bottom: 10px;
color: #333;
text-align: left;
}
input[type="text"], input[type="password"]{
padding: 10px;
border-radius: 5px;
border: 1px solid #aaa;
width: 100%;
margin-bottom: 15px;
font-size: 16px;
color: #333;
box-sizing: border-box;
transition: border-color 0.3s ease-in-out;
}
input[type="text"]:focus, input[type="password"]:focus{
border-color: #16a085;
}
input[type="submit"]{
padding: 10px 30px;
background-color: #16a085;
color: #fff;
border: none;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
margin-top: 10px;
box-shadow: 1px 1px 3px #aaa;
}
input[type="submit"]:hover{
background-color: #1abc9c;
}
</style>
</head>
<body>
<form>
<h1>华丽 AI科技感</h1>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
<input type="submit" value="登录">
</form>
</body>
</html>