SoFunction
Updated on 2025-04-07

Collect and organize the container size, positioning, distance and other attributes in js

//The actual width of the element is not considered a border

//The actual height of the element is not considered a border


//The actual width of the element, plus border

//The actual height of the element, plus border


//There are many statements. I tested it, it should be the actual width of the element - the width of the scroll bar

//There are many statements. I tested it, it should be the actual height of the element - the height of the scroll bar


//The distance relative to the parent object, if position is set to relative, it is the distance relative to window

//The distance relative to the parent object, if position is set to relative, it is the distance relative to window


//The current window is only for IE

//The current window is not for IE


//The current window size (inside) not for IE

//The current window size (outside) not for IE


//Current screen resolution

//The current screen is available resolution