博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
js实现表头不动,表格内容无限循环滚动
阅读量:3935 次
发布时间:2019-05-23

本文共 1080 字,大约阅读时间需要 3 分钟。

在这里插入图片描述

表头不动,只有内容无限循环滚动,代码如下:

html部分:

组织排名
组织名称
组织积分

css部分:

.table{
width: 100%; } .content {
width: 434px; height: 182px; outline: 1px solid #e5e5e5; overflow: hidden; } .data-content tr:nth-child(odd){
background-color: #f6fafd; } .data-content tr:nth-child(even){
background-color: #ffffff; } .data {
height: 180px; overflow: hidden; } .header {
line-height: 30px; padding-left: 16px; padding-right: 16px; background-color: #e9eef4; display: flex; justify-content: space-between; } .rows{
padding: 0; height: 38px; text-align: center; line-height: 38px; } .table tbody tr{
width: 100%; display: flex; flex-direction: row; justify-content: space-between; }

js部分:

        

转载地址:http://tzrgn.baihongyu.com/

你可能感兴趣的文章
架构设计:系统间通信(45)——阶段性问题记录
查看>>
架构设计:系统间通信(44)——自己动手设计ESB(5)
查看>>
架构设计:系统存储(1)——块存储方案(1)
查看>>
架构设计:系统间通信(42)——自己动手设计ESB(3)
查看>>
在工作时走神的闪光
查看>>
Ajax使用注意事项
查看>>
使用FileChannel下载本地文件及扩展
查看>>
linux文件权限与目录配置问题与解答(整理篇)
查看>>
linux文件与目录管理问题与回答(整理篇)
查看>>
java 数组笔记整理
查看>>
java IO/NIO 下载上传的笔记
查看>>
对行为的描述---一般系统论读书笔记
查看>>
贪心算法
查看>>
分支限界法
查看>>
随机化算法
查看>>
项目整体管理(一)
查看>>
项目整体管理(二)
查看>>
推荐阅读书籍
查看>>
外包管理
查看>>
项目管理师职业道德规范
查看>>