写一个移动端个人信息页面的html代码
时间: 2023-12-19 07:06:28 浏览: 27
好的,以下是一个简单的移动端个人信息页面的HTML代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人信息</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
padding: 10px;
}
h1 {
font-size: 24px;
text-align: center;
margin-top: 0;
}
.container {
background-color: #fff;
border-radius: 5px;
padding: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.avatar {
display: block;
margin: 0 auto;
width: 100px;
height: 100px;
border-radius: 50%;
background-image: url('avatar.jpg');
background-size: cover;
background-position: center;
}
.info {
margin-top: 10px;
text-align: center;
}
.info p {
margin: 5px 0;
}
.info label {
font-weight: bold;
}
</style>
</head>
<body>
<h1>个人信息</h1>
<div class="container">
<div class="avatar"></div>
<div class="info">
<p><label>姓名:</label>张三</p>
<p><label>性别:</label>男</p>
<p><label>年龄:</label>25</p>
<p><label>电话:</label>13812345678</p>
<p><label>邮箱:</label>zhangsan@example.com</p>
<p><label>地址:</label>北京市朝阳区</p>
</div>
</div>
</body>
</html>
```
希望这个示例能够对你有所帮助!