css布局实现硬件资源使用率widget卡片排列效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现硬件资源使用率widget卡片排列效果代码
代码标签: css 布局 硬件 资源 使用率 widget 卡片 排列
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
:root {
--primary-color: #4361ee;
--secondary-color: #3f37c9;
--success-color: #4cc9f0;
--warning-color: #f8961e;
--danger-color: #f94144;
--dark-color: #212529;
--light-color: #f8f9fa;
--gray-color: #6c757d;
--border-radius: 12px;
--box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
color: var(--dark-color);
min-height: 100vh;
padding: 40px 20px;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.dashboard-header {
text-align: center;
margin-bottom: 40px;
position: relative;
}
.dashboard-title {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 10px;
position: relative;
display: inline-block;
}
.dashboard-title::after {
content: '';
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--success-color));
border-radius: 2px;
}
.dashboard-subtitle {
font-size: 1rem;
color: var(--gray-color);
font-weight: 400;
max-width: 600px;
margin: 0 auto;
}
.legend {
display: flex;
justify-content: center;
margin: 30px .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0