以下是一个运动网站模板的示例,可以根据您的需求进行修改:
HTML代码:
```
t
运动网站t
t
t
t
t
t
tt
tt
tt
ttt联系我们
ttt欢迎来到我们的网站!
tttt联系我们
ttt
tt
t```
CSS代码:
```
body {
tbackground-color: #f2f2f2;
tfont-family: Arial, sans-serif;
}
header {
tbackground-color: #007bff;
tcolor: #fff;
tpadding: 20px;
ttext-align: center;
}
nav ul {
tlist-style: none;
tmargin: 0;
tpadding: 0;
}
nav li {
tdisplay: inline-block;
tmargin-right: 10px;
}
nav a {
tcolor: #007bff;
ttext-decoration: none;
}
main {
tbackground-color: #fff;
tpadding: 20px;
}
section {
tmargin-bottom: 20px;
}
h2 {
ttext-align: center;
tfont-size: 2em;
}
ul {
tlist-style: none;
}
li {
tmargin-bottom: 5px;
}
a {
tcolor: #007bff;
ttext-decoration: none;
}
```
这个运动网站模板包含了一个头部元素、导航元素、运动项目元素、运动装备元素、联系我们元素等。您可以根据需要修改这些元素的内容,以及添加其他样式和信息。