以下是一个简单的电子科技网站模板,你可以根据自己的需要进行修改:
HTML代码:
```html
t
电子科技网站模板t
t
t
t
t
tt
tt
tt
tt
```
CSS代码:
```css
* {
tbox-sizing: border-box;
}
header {
tbackground-color: #333;
tpadding: 20px;
tcolor: #fff;
ttext-align: center;
tfont-size: 24px;
}
nav ul {
tlist-style: none;
tmargin: 0;
}
nav li {
tdisplay: inline-block;
tmargin-right: 10px;
}
nav a {
tcolor: #333;
ttext-decoration: none;
}
main {
tdisplay: flex;
tflex-direction: column;
talign-items: center;
tmargin-bottom: 20px;
}
section {
tbackground-color: #fff;
tpadding: 20px;
tbox-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
h1 {
tfont-size: 36px;
tmargin-bottom: 20px;
}
h2 {
tfont-size: 24px;
tmargin-bottom: 10px;
}
ul {
tlist-style: none;
}
li {
tmargin-bottom: 10px;
}
section h2 {
tcolor: #333;
}
section p {
tfont-size: 18px;
tmargin-bottom: 20px;
}
footer {
tbackground-color: #333;
tpadding: 20px;
tcolor: #fff;
ttext-align: center;
tfont-size: 18px;
}
```