我试图使我的数据表 Thead 成为一个粘性表,但是当我尝试固定标题时它不起作用。我已经尝试position: fixed; , top: 0; 并尝试用 css 修复它,但是当完成此操作时,它会按预期在 firefox 中工作,但在 crome edge opera 中不会按预期工作。
"stateSave": false,
"orderCellsTop": true,
"fixedHeader": {
header: true,
},
"columns": [
{'data':'chk_select_header','orderable': false},
Run Code Online (Sandbox Code Playgroud)
这是我的 ajax 代码。