以下是一个护理网站设计模板的示例,您可以根据需要进行修改和定制:
HTML代码:
```html
护理网站
```
CSS代码:
```css
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
header {
background-color: #1a1a1a;
color: #fff;
padding: 20px;
text-align: center;
}
nav ul {
list-style-type: none;
margin: 0;
}
nav li {
display: inline-block;
margin-right: 10px;
}
nav a {
color: #fff;
text-decoration: none;
display: block;
}
main {
display: flex;
flex-direction: column;
}
section {
margin-bottom: 20px;
}
h2 {
margin-bottom: 10px;
color: #1a1a1a;
}
ul {
list-style-type: none;
}
li {
margin-bottom: 10px;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
label {
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
width: 100%;
padding: 10px;
font-size: 16px;
margin-bottom: 10px;
}
button[type="submit"] {
background-color: #1a1a1a;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
button[type="submit"]:hover {
background-color: #0099cc;
}
```
这个示例模板包括一个头部导航、四个主要页面和一个提交表单。您可以根据需要添加其他元素,如图像、表单验证、导航菜单等。您可以根据自己的需要进行修改和定制,以满足您的需求。