以下是一个公司网站简易模板的示例,可以根据需要进行修改和自定义:
HTML结构:
```html
公司网站
```
CSS样式:
```css
header {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
}
nav ul {
list-style-type: none;
margin: 0;
}
nav li {
display: inline-block;
margin-right: 10px;
}
nav a {
color: white;
text-decoration: none;
}
main {
display: flex;
flex-direction: column;
}
section {
margin-bottom: 20px;
}
h2 {
font-size: 24px;
margin-bottom: 10px;
}
p {
font-size: 18px;
line-height: 1.6;
}
footer {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
}
```
该模板包括一个头部区域、一个主体区域和一些子区域,头部区域包含一个标题和一些元数据,主体区域包含公司介绍、产品和服务、联系我们等内容,可以使用HTML和CSS来创建自定义样式。