请帮我写一个qq电脑端登录界面
时间: 2024-03-19 17:41:08 浏览: 13
抱歉,我无法提供视觉上的内容,但我可以提供一个简单的HTML和CSS代码示例,你可以根据这个示例进行修改和改进:
HTML代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>QQ登录</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="login-box">
<img src="https://qzonestyle.gtimg.cn/qzone/vas/opensns/res/img/Connect_logo_1.png" class="avatar">
<h1>QQ登录</h1>
<form>
<label for="username">QQ号码或手机或邮箱</label>
<input type="text" id="username" name="username" placeholder="输入QQ号码或手机或邮箱">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="输入密码">
<input type="submit" value="登录">
<a href="#">忘记密码?</a>
</form>
</div>
</body>
</html>
```
CSS代码:
```css
body {
font-family: sans-serif;
background-color: #f5f5f5;
}
.login-box {
width: 350px;
height: 420px;
background-color: #fff;
margin: 100px auto;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.avatar {
display: block;
width: 80px;
height: 80px;
margin: 0 auto;
border-radius: 50%;
margin-top: -60px;
margin-bottom: 30px;
}
h1 {
font-size: 24px;
text-align: center;
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
}
label {
font-size: 16px;
margin-bottom: 5px;
}
input[type="text"],
input[type="password"] {
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
input[type="submit"] {
background-color: #3385ff;
color: #fff;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}
a {
font-size: 14px;
text-align: center;
margin-top: 20px;
color: #3385ff;
text-decoration: none;
}
```
这只是一个简单的示例代码,你可以根据自己的需要进行修改和添加。