Skip to content

Commit a23d648

Browse files
authored
getBoundingClientRect
1 parent c597a2e commit a23d648

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,26 @@ function isJson(str) {
505505
}
506506
```
507507
508+
# getBoundingClientRect
509+
510+
```javascript
511+
//getBoundingClientRect provides you with important pieces of data about an
512+
//HTML element’s size and positioning.
513+
514+
const bodyBounderies = document.body.getBoundingClientRect();
515+
// => {
516+
// top: Number,
517+
// left: Number,
518+
// right: Number,
519+
// bottom: Number,
520+
// x: Number,
521+
// y: Number,
522+
// width: Number,
523+
// height: Number,
524+
// }
525+
```
526+
527+
508528
509529
510530

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy