怎么用HTML,css制作一张精美的个人简历(如图),再加上js动画呢
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>个人简历</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>简历</h1>
</header>
<section id="personal-info">
<h2>个人信息</h2>
<p>Name: John Doe</p>
<p>Email: john.doe@example.com</p>
</section>
<section id="education">
<h2>教育经历</h2>
<ul>
<li>Bachelor of Science, Computer Science, University of XYZ</li>
<li>Master of Science, Information Technology, University of ABC</li>
</ul>
</section>
<section id="work-experience">
<h2>工作经验</h2>
<ul>
<li>Software Engineer, Google, 2015-2020</li>
<li>Senior Software Engineer, Microsoft, 2021-present</li>
</ul>
</section>
<script src="script.js"></script>
</body>
</html>
body {
background-color: #f3f3f3;
font-family: Arial, sans-serif;
color: #333;
}
header {
text-align: center;
padding-top: 30px;
}
h1 {
font-size: 36px;
}
section {
margin-top: 50px;
}
h2 {
font-size: 24px;
color: #555;
}
ul {
list-style: none;
padding-left: 0;
}
li::before {
content: "- ";
color: #333;
}
li {
margin-bottom: 10px;
}
document.querySelector('header').onclick = function() {
alert('Hello World!');
}
不知道你这个问题是否已经解决, 如果还没有解决的话:效果图如下:
充电中:未在充电效果:
话不多说 上代码