网站地图模板的 CSS 样式可以根据不同的需求进行定制。一般来说,网站地图模板的 CSS 样式应该包括以下几个方面:
1. 地图样式:包括地图的图标、颜色、字体、缩放等样式。
2. 导航样式:包括导航菜单的样式、按钮的样式等。
3. 数据样式:包括数据列表的样式、数据的字体、颜色等。
下面是一个简单的网站地图模板的 CSS 样式示例,供您参考:
```
/* 地图样式 */
.map {
position: relative;
width: 400px;
height: 300px;
}
.map .map-canvas {
position: absolute;
top: 0;
left: 0;
width: 400px;
height: 300px;
background-color: rgba(0, 0, 0, 0.8);
}
.map .map-canvas img {
width: 400px;
height: 300px;
}
.map .map-canvas .map-header {
position: absolute;
top: 0;
left: 0;
width: 400px;
height: 300px;
background-color: #f2f2f2;
z-index: 1;
}
.map .map-canvas .map-header h1 {
text-align: center;
font-size: 36px;
margin-top: -24px;
}
.map .map-canvas .map-header .map-title {
position: absolute;
top: 24px;
left: 0;
width: 400px;
height: 300px;
background-color: #fff;
border-radius: 50%;
text-align: center;
font-size: 24px;
}
.map .map-canvas .map-canvas .map-body {
position: absolute;
top: 120px;
left: 0;
width: 400px;
height: 300px;
background-color: rgba(0, 0, 0, 0.8);
}
.map .map-canvas .map-canvas .map-body .map-item {
position: absolute;
top: 80px;
left: 0;
width: 400px;
height: 300px;
background-color: #fff;
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
font-size: 24px;
}
.map .map-canvas .map-canvas .map-body .map-item .title {
position: absolute;
top: 40px;
left: 0;
width: 400px;
height: 300px;
background-color: #fff;
border-radius: 50%;
font-size: 24px;
}
.map .map-canvas .map-canvas .map-body .map-item .description {
position: absolute;
top: 20px;
left: 0;
width: 400px;
height: 300px;
background-color: rgba(0, 0, 0, 0.8);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
font-size: 24px;
}
.map .map-canvas .map-canvas .map-body .map-item .value {
position: absolute;
top: 10px;
left: 0;
width: 400px;
height: 300px;
background-color: #fff;
border-radius: 50%;
font-size: 24px;
}
```