冻结最后几列,左右拖拉最后几列始终悬浮在页面上,像下图所示一样展示,如何实现?
这个js,参考
多列冻结
$("tr td:last-child").css({"position":"sticky","right":"0px"});
$("tr td:nth-last-child(2)").css({"position":"sticky","right":"60px"});
$("tr td:nth-last-child(3)").css({"position":"sticky","right":"120px"});
重复与冻结设置
无法冻结尾列