css+div布局模拟导航最佳路线图代码
代码语言:html
所属分类:布局界面
代码描述:css+div布局模拟导航最佳路线图代码
代码标签: css div 布局 模拟 导航 最佳 路线图 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智能导航系统</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
color: white;
padding: 30px;
text-align: center;
}
.header h1 {
font-size: 32px;
margin-bottom: 10px;
}
.header p {
opacity: 0.9;
font-size: 14px;
}
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
padding: 20px;
}
.map-section {
background: #f8f9fa;
border-radius: 15px;
padding: 20px;
position: relative;
}
.map-canvas {
width: 100%;
height: 500px;
background: white;
border-radius: 10px;
border: 2px solid #e0e0e0;
position: relative;
overflow: hidden;
}
.route-info {
background: white;
border-radius: 15px;
padding: 20px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.time-estimate {
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
color: white;
padding: 20px;
border-radius: 10px;
text-align: center;
margin-bottom: 20px;
}
.time-estimate h2 {
font-size: 42px;
margin-bottom: 5px;
}
.time-estimate p {
opacity: 0.9;
font-size: 14px;
}
.route-details {
margin-top: 20px;
}
.route-step {
display: flex;
align-items: flex-start;
padding: 15px;
margin-bottom: 10px;
background: #f8f9fa;
border-radius: 10px;
border-left: 4px solid #667eea;
transition: all 0.3s;
position: relative;
}
.route-step:hover {
transform: translateX(5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.step-number {
background: #667eea;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin-right: 15px;
flex-shrink: 0;
}
.step-content {
flex: 1;
}
.step-title {
font-weight: bold;
color: #2c3e50;
margin-bottom: 5px;
}
.step-details {
font-size: 13px;
color: #7f8c8d;
display: flex;
gap: 15px;
flex-wrap: wrap;
margin-top: 8px;
}
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0