html怎么让表头不滚动条,html的固定表头,thead和tbody不对齐,如何解决呢?

本文介绍了一种用于展示大量学生成绩数据的方法,通过表格形式列出学生的各项成绩,并提供了分页浏览的功能。此方法便于教育工作者管理和分析学生成绩。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

one page

.fixedThead {

display: block;

}

.scrollTbody {

display: block;

height: 262px;

overflow: auto;

width: 100%;

}

.table td, .table th {

width: 200px;

border-bottom: none;

border-left: none;

border-right: 1px solid #CCC;

border-top: 1px solid #DDD;

word-break: keep-all;

white-space: nowrap;

}

.table tr {

border-left: 1px solid #EB8;

border-bottom: 1px solid #B74;

}

学生成绩浏览表

过滤:

序号准考证号姓名学校语文数学物理化学生物政治历史地理听力英语总分

{{$index+1}}{{ i.examNo }}{{ i.name }}{{ i.schoolName }}{{ i.chinese }}{{ i.math }}{{ i.physics }}{{ i.chemistry }}{{ i.biology }}{{ i.politis }}{{ i.history }}{{ i.geography }}{{ i.englishHear }}{{ i.english }}{{ i.totalScore }}

数据库一共有{{totalItems}}条记录 一共有:{{pageCount}}页

当前为第:{{currentPage}}页

next-text="下一页" prev-text="上一页" last-text="尾页" show-goto="true" goto-text="跳转到">

效果:

bVyW9y

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值