document size
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ size
document size
width: document.documentElement.offsetWidth
height: document.documentElement.offsetHeight
, will round the value to an integer. If you need a fractional value, use .
/ = content + padding
/ = contnet + padding + border
/ = content + padding + overflow