html+css实现好看的个人简历
时间: 2023-09-05 17:10:42 浏览: 72
好的,下面是一个简单的HTML和CSS代码示例,可以用来创建一个好看的个人简历:
HTML代码:
```
<!DOCTYPE html>
<html>
<head>
<title>个人简历</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>姓名</h1>
<p>电话:1234567890 | 邮箱:example@gmail.com</p>
</header>
<section>
<h2>教育经历</h2>
<div class="item">
<h3>学位名称</h3>
<p>学校名称 | 时间</p>
</div>
</section>
<section>
<h2>工作经历</h2>
<div class="item">
<h3>职位名称</h3>
<p>公司名称 | 时间</p>
<ul>
<li>工作职责1</li>
<li>工作职责2</li>
<li>工作职责3</li>
</ul>
</div>
</section>
<section>
<h2>技能</h2>
<ul class="skills">
<li>技能1</li>
<li>技能2</li>
<li>技能3</li>
</ul>
</section>
</div>
</body>
</html>
```
CSS代码:
```
body {
font-family: Arial, sans-serif;
color: #333;
background-color: #f2f2f2;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 50px;
background-color: #fff;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
border-radius: 5px;
}
header {
text-align: center;
margin-bottom: 50px;
}
h1 {
font-size: 36px;
margin: 0;
}
p {
font-size: 18px;
margin: 10px 0 0;
}
section {
margin-bottom: 50px;
}
h2 {
font-size: 24px;
margin-bottom: 20px;
}
.item {
margin-bottom: 20px;
}
h3 {
font-size: 20px;
margin: 0 0 5px;
}
ul {
margin: 0;
padding: 0;
}
li {
margin-bottom: 10px;
list-style-type: disc;
}
.skills {
display: flex;
flex-wrap: wrap;
}
.skills li {
flex-basis: calc(33.33% - 10px);
margin-right: 10px;
}
```
你可以根据自己的需要进行修改,例如更改字体、颜色和布局等。希望这个示例对你有帮助!