字段较多的情况,不方便查看前面的数据
数据库要拉到最底部才有滑块
相关帖子
-
-
-
为何不让数据库固定高度?且看我的 css 样式优化,这样岂不美哉?
/* 数据库优化css */ /* 设置数据库最大高度 */ .av__scroll { max-height: 600px; overflow: auto; } /* 头部固定不动 */ .av__row--header{ top: 0px; position: sticky; } /* 底部固定不动 */ .av__row--footer{ position: sticky; bottom: 0; } /* 显示底部计算(求和等) */ .av__row--footer .av__calc,.av__row--footer.av__row--show .av__calc { opacity: 1 }
【注意 ❗️】因录制减小 GIF 空间占用的需要,这个 GIF 故意调的视窗很小,实际上可根据需要设置最大高度,不会觉得视窗太小。
1 引用1 操作wilsons 在 2024-12-26 12:25:03 更新了该回帖 -
@MuShanPlus 你想要的让主键向左滑动时固定,修改 nth-child 可以让任意列固定
/* 数据库优化css */ /* 设置数据库最大高度 */ .av__scroll { max-height: 600px; overflow: auto; } /* 显示底部计算(求和等) */ .av__row--footer .av__calc,.av__row--footer.av__row--show .av__calc { opacity: 1 } /* 头部固定不动 */ .av__row--header{ top: 0px; position: sticky; z-index:2; /* 防止与cell内容及右侧列重叠 */ } /* 底部固定不动 */ .av__row--footer{ position: sticky; bottom: 0; z-index:2; /* 防止与cell内容及右侧列重叠 */ } /* 左侧第一列固定位置,更改这里的nth-child可以实现任意一列固定位置,nth-child从2开始算第一列,因为左侧有一列控制列 */ .av__row .av__cell:nth-child(2){ position: sticky; left: 22.75px; /* 左侧控制列宽度 */ /* 防止与右侧列重叠 */ background-color:var(--av-background); z-index:1; } /* 底部计算第一列固定位置,更改这里的nth-child可以实现任意一列固定位置,nth-child从1开始算第一列 */ .av__row--footer .av__calc:nth-child(1){ position: sticky; left: 0; /* 防止与右侧列重叠 */ background-color:var(--av-background); z-index:1; } /* 底部计算从第2列起需加上左侧控制列的宽度 */ .av__row--footer .av__calc:nth-child(n+2) { left: 22.75px; /* 左侧控制列宽度 */ }
-
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于