简单的个人网站模板_个人网站 模板

哆啦Ai流程自动化发布于:2023-05-02 19:28热度:649 ℃
点赞63收藏

以下是一个简单的个人网站模板,你可以根据需要进行修改:
HTML代码:
```html



个人网站



我的网站






个人资料
















作品





联系我们


















```
CSS代码:
```css
header {
background-color: #333;
color: white;
padding: 20px;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav li {
display: inline-block;
margin-right: 10px;
}
main {
margin-top: 20px;
}
section {
margin-bottom: 20px;
}
h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
}
form {
display: flex;
flex-direction: column;
}
form label {
font-size: 16px;
margin-bottom: 5px;
}
form input[type="text"], form input[type="email"], form input[type="message"] {
padding: 10px;
margin-bottom: 10px;
border: none;
border-radius: 5px;
}
form input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
```
这个模板包含了一个头部元素、一个导航元素、三个主体元素和一个提交按钮。你可以根据需要添加其他内容。