Can absolute achieve the effect of fixed?

there is an input box at the bottom that can be set to the bottom with fixed bottom:0.

now you want to use absolute to achieve this effect. If the web page is very long, the bottom:0 will reach the lowest point that you can"t see.

if body is set to 100%, the input box will go up

when the page grows.
Css
Mar.03,2021

listens for scrolling events, and constantly modifies the positioning to achieve the fixed effect


add a container to the outer layer, and the absolute positioning of the upper and lower parts is that the y-axis exceeds the slide. The input box inside can be set at the bottom by absolute

Menu