as shown in the figure, you just want to achieve a fixed header.
my idea is to dynamically listen for the distance from the table to the top of the browser. If the distance is equal to zero, just position the header absolutely at the top.
but what is the way to dynamically monitor the distance from table to the top of the browser?
or is there any other good way to implement it?