bom和dom
分类:
文章
•
2022-10-08 18:47:19
window
1:location
document.body
dom的属性 |
dom |
className |
获取class的名字 |
id |
获取id名字 |
clientWidth |
413 |
clientHeight |
8756 |
clientLeft: |
0 |
clientTop |
0 |
offsetWidth |
|
offsetHeight |
|
offsetLeft |
|
offsetTop |
|
scrollWidth |
|
scrollHeight |
|
scrollLeft |
|
scrollTop |
|