as shown in the figure, we have a requirement that we will embed a large number of different lengths of DIV2, in DIV1 (similar to a viewport). I need to know the distance from the top edge of the DIV2 to the top of the viewport (x), and the distance from the bottom edge of the DIV2 to the top of the viewport (y)
.how do I get these two values?