html个人主页编写代码
时间: 2023-10-19 16:07:13 浏览: 87
好的,以下是一个简单的 HTML 个人主页编写代码,你可以根据自己的需求进行修改:
```html
<!DOCTYPE html>
<html>
<head>
<title>个人主页</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
font-size: 36px;
}
nav {
background-color: #666; color: #fff;
padding: 10px;
text-align: center;
}
nav a {
color: #fff;
text-decoration: none;
margin-right: 20px;
font-size: 20px;
}
main {
padding: 20px;
display: flex;
flex-wrap: wrap;
justify-content: space-between; }
section {
background-color: #fff;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
padding: 20px;
margin-bottom: 20px;
flex-basis: calc(33.33% - 20px);
}
h2 {
margin-top: 0;
font-size: 24px;
}
p {
margin-bottom: 0;
line-height: 1.5;
}
</style>
</head>
<body>
<header>
<h1>个人主页</h1>
</header>
<nav>
<a href="#">首页</a>
<a href="#">关于我</a>
<a href="#">联系我</a>
</nav>
<main>
<section>
<h2>个人资料</h2>
<p>姓名:张三</p>
<p>年龄:25岁</p>
<p>职业:前端工程师</p>
<p>邮箱:zhangsan@example.com</p>
</section>
<section>
<h2>技能</h2>
<p>HTML/CSS/JavaScript</p>
<p>React/Vue</p>
<p>Node.js/Express</p>
<p>MySQL/MongoDB</p>
</section>
<section>
<h2>项目经验</h2>
<p>项目一:XXX系统,负责前端开发,使用 React 技术栈,实现了 XXX 功能。</p>
<p>项目二:XXX网站,负责前端开发,使用 Vue 技术栈,实现了 XXX 功能。</p>
<p>项目三:XXX小程序,负责前端开发,使用原生小程序开发,实现了 XXX 功能。</p>
</section>
</main>
</body>
</html>
```