-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript - 浏览器、DOM相关 #21
Labels
Comments
getElementByXXX vs querySelectorAll用法比较
下图是在知乎上用两种方法获取div节点的比较: 返回值比较
|
height / clientHeight / offsetHeight / scrollHeight描述元素高度的几个属性。对应的还有width的各种变式。区分度主要在于滚动元素。
运用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DOM
定义
W3C原版定义:The Document Object Model (DOM) is a programming API for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated.
MDN翻译定义:文档对象模型 (DOM) 是HTML和XML文档的编程接口。它提供了对文档的结构化的表述,并定义了一种方式可以使从程序中对该结构进行访问,从而改变文档的结构,样式和内容。
疑难杂症
本栏目主要收录DOM操作以及HTML组件中常见的疑难杂症。
The text was updated successfully, but these errors were encountered: