Implementation code:
Method description:
The total height of the page minus the scrolled height minus the height of the layer with the ID widget is equal to the height from the bottom of the layer to the bottom;
When the height from the bottom is less than or equal to When specifying the height of a specific position from the bottom, remove the fixed style, and then add absolute positioning to the layer! Add position:relative;
to the parent layer in CSS