Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita23d648

Browse files
authored
getBoundingClientRect
1 parentc597a2e commita23d648

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+
constbodyBounderies=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)

[8]ページ先頭

©2009-2025 Movatter.jp