div+css实现网络设备流量监控开关管理页面代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现网络设备流量监控开关管理页面代码
代码标签: div css 网络 设备 流量 监控 开关 管理 页面 代码
下面为部分代码预览,完整代码请点击下载或在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> :root { --primary-color: #4361ee; --secondary-color: #3f37c9; --success-color: #4cc9f0; --danger-color: #f72585; --light-color: #f8f9fa; --dark-color: #212529; --gray-color: #6c757d; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: #f5f7fa; color: var(--dark-color); line-height: 1.6; padding: 20px; } .container { max-width: 1000px; margin: 0 auto; padding: 20px; } .header { text-align: center; margin-bottom: 30px; } .header h1 { color: var(--primary-color); margin-bottom: 10px; font-weight: 600; } .header p { color: var(--gray-color); font-size: 16px; } .dashboard { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; } .control-panel { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); } .stats-panel { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); } .panel-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: var(--dark-color); display: flex; align-items: center; } .panel-title i { margin-right: 10px; color: var(--primary-color); } .switch-container { margin-bottom: 25px; } .switch-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 500; } .switch { position: relative; display: inline-block; width: 52px; height: 26px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--primary-color); } input:checked + .slider:before { transform: translateX(26px); } .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 25px; } .stat-card { background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%); border-radius.........完整代码请登录后点击上方下载按钮下载查看
网友评论0