chart+css实现自适应学生考试成绩分析仪表盘图表效果代码

代码语言:html

所属分类:响应式

代码描述:chart+css实现自适应学生考试成绩分析仪表盘图表效果代码

代码标签: chart 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>
        <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/chart.js"></script>
   <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.0.css">
     <style>
         * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px
}

header {
    background: linear-gradient(135deg,#4b6cb7 0,#182848 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1)
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center
}

h1 i {
    margin-right: 15px
}

.subtitle {
    font-size: 1.1rem;
    opacity: .9
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    margin-bottom: 25px
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform .3s ease
}

.card:hover {
    transform: translateY(-5px)
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px
}

.card-title {
    font-size: 1.1rem;
    color: #555
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem
}

.card-content {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50
}

.card-description {
    font-size: .9rem;
    color: #777;
    margin-top: 5px
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(500px,1fr));
    gap: 20px;
    margin-bottom: 25px
}

.chart-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05)
}

.chart-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center
}

.chart-title i {
    margin-right: 10px;
    color: #4b6cb7
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%
}

.detailed-analysis {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px
}

.analysis-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    colo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0