three实现三维高楼多电梯运行模拟调度三维演示控制代码
代码语言:html
所属分类:三维
代码描述:three实现三维高楼多电梯运行模拟调度三维演示控制代码qi 图文卡片拖拽改变大小自适应显示代码
代码标签: three 三维 高楼 电梯 运行 模拟 调度 三维 演示 控制 代码
下面为部分代码预览,完整代码请点击下载或在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>3D多电梯调度模拟系统</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Arial, sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
min-height: 100vh;
overflow: hidden;
}
#container {
width: 100vw;
height: 100vh;
position: relative;
}
#canvas3d {
width: 100%;
height: 100%;
}
/* 控制面板 */
#controlPanel {
position: absolute;
top: 20px;
left: 20px;
background: rgba(20, 30, 50, 0.95);
border-radius: 15px;
padding: 20px;
width: 320px;
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
border: 1px solid rgba(100, 150, 255, 0.3);
max-height: 90vh;
overflow-y: auto;
}
#controlPanel h2 {
color: #00d4ff;
margin-bottom: 20px;
font-size: 1.3em;
text-align: center;
text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.control-group {
margin-bottom: 18px;
}
.control-group label {
display: block;
color: #a0c4ff;
margin-bottom: 8px;
font-size: 0.9em;
}
.control-group input[type="range"] {
width: 100%;
height: 8px;
-webkit-appearance: none;
background: linear-gradient(90deg, #0066cc, #00d4ff);
border-radius: 4px;
outline: none;
}
.control-group input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
background: #fff;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.value-display {
text-align: right;
color: #00d4ff;
font-weight: bold;
font-size: 1.1em;
}
button {
width: 100%;
padding: 12px;
margin: 5px 0;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 0.95em;
font-weight: bold;
transition: all 0.3s;
}
.btn-primary {
background: linear-gradient(135deg, #0066cc, #00d4ff);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(0, 150, 255, 0.4);
}
.btn-success {
background: linear-gradient(135deg, #00a86b, #00d49d);
color: white;
}
.btn-success:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(0, 168, 107, 0.4);
}
.btn-warning {
background: linear-gradient(135deg, #ff6b35, #ff9f1c);
color: white;
}
.btn-danger {
background: linear-gradient(135deg, #dc3545, #ff6b6b);
color: white;
}
/* 状态面板 */
#statusPanel {
position: absolute;
top: 20px;
right: 20px;
background: rgba(20, 30, 50, 0.95);
border-radius: 15px;
padding: 20px;
width: 350px;
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
border: 1px solid rgba(100, 150, 255, 0.3);
max-height: 90vh;
overflow-y: auto;
}
#statusPanel h3 {
color: #00d4ff;
margin-bottom: 15px;
font-size: 1.1em;
}
.elevator-status {
background: rgba(0, 100, 200, 0.2);
border-radius: 10px;
padding: 12px;
margin-bottom: 10px;
border-left: 4px solid #00d4ff;
}
.elevator-status.going-up {
border-left-color: #00ff88;
}
.elevator-status.going-down {
border-left-color: #ff6b6b;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0