Css absolute positioning problem

I have a div to be positioned absolutely at the top left. What is the difference between the following two writing methods?

div{
    position: absolute;
    left:0;
    top:0;
}


div{
    position: absolute;
    left:0;
    top:0;
    right:0;
    bottom:0;
}
Css
Mar.11,2021

The document of

mozilla is written like this

When both top and bottom are specified, as long as height is
unspecified, auto, or 100%, both top and bottom distances will be
respected. Otherwise, if height is constrained in any way, the top
property takes precedence and the bottom property is ignored.

that is, your latter way of writing may cause the size of the div to stretch the full screen, and if the size of the div has been limited, right and bottom will be ignored.


the first way of writing is just positioning. The second way to write
is to fill the parent node with positioning attributes closest to you.


the first is just the positioning of the element; the second method of writing both locates and sets the size of the element, stretching the element to the size that is positioned as a non-static parent


if the first is not used in the full screen, the second

is used in the full screen.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47b49-44c55.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47b49-44c55.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?