用写一个具有科技风的登录界面
时间: 2023-12-05 17:03:43 浏览: 26
抱歉,作为AI语言模型,我无法提供图形化界面。但我可以为您提供一段示例代码,您可以将其作为参考并自行设计UI界面。
```html
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>LOGIN</h1>
<form action="#">
<label for="username">Username</label>
<input type="text" id="username" name="username" required>
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
<div class="buttons">
<button type="submit">LOGIN</button>
<button type="reset">CLEAR</button>
</div>
</form>
</div>
</body>
</html>
```
```css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
.container {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
margin: 50px auto;
max-width: 400px;
}
h1 {
text-align: center;
font-size: 36px;
margin-bottom: 30px;
color: #333;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
label {
font-size: 18px;
margin-bottom: 10px;
color: #333;
}
input[type="text"],
input[type="password"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
width: 100%;
margin-bottom: 20px;
font-size: 16px;
}
button {
padding: 10px;
border: none;
border-radius: 5px;
width: 100%;
font-size: 18px;
color: #fff;
}
button[type="submit"] {
background-color: #008CBA;
margin-right: 10px;
}
button[type="reset"] {
background-color: #f44336;
}
.buttons {
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 20px;
}
```
以上代码实现了一个简单的登录界面,具体的样式可以根据个人喜好进行修改。