1, DOM object simple learning
2.1 simple learning of events
2.2. Event monitoring mechanism
Case: bulb switch:
3, BOM object
3.1. BOM object concept:
Added by corbin on Wed, 23 Feb 2022 14:44:16 +0200
prefaceI believe many of our students often use the concepts of Node and Element. What's the difference between them? I don't know how many people can answer this question?Today, I'm here to try to explain the difference between Node and Element.preparationBefore formally introducing the difference between Node and Element, let's prepare the fo ...
Added by ghurtado on Sun, 20 Feb 2022 20:12:25 +0200
1. Interpret DOM, HTML DOM, and XML DOM
1. What is DOM?
Here DOM, the full name is short for Document Object Model. DOM is the standard of the W3C (World Wide Web Consortium). DOM defines standards for accessing HTML and XML documents.
2. What is an XML ...
Added by archangel_617b on Wed, 09 Feb 2022 22:34:50 +0200
1.1 what is DOM
1.2 DOM tree
02 get element
2.1 how to get page elements
2.2 get by ID
// 1. Because our document page is loaded from top to bottom, there must be a label first, so we write the script below the label
Added by Destramic on Mon, 31 Jan 2022 20:38:36 +0200
This case does not use any framework. It is implemented using js native and DOM operation. The code is complete and can be copied and used immediately.
1, Case effect
2, Key points involved
1. Event monitoring
2. DOM node operation
(1) Common node acquisition methods
(2) Common node information acquisition methods
(3) Common ...
Added by Brokenhope on Wed, 19 Jan 2022 10:09:59 +0200
What are css custom attributes
It's officially called custom attribute, but I'm used to calling it variable. In short, it's a CSS attribute that developers can name and use independently
How are CSS variables different from those in the preprocessor?
CSS variables are CSS properties directly available in the browser, while variables in prepr ...
Added by FidelGonzales on Mon, 17 Jan 2022 11:21:32 +0200
1, Introduction to DOM
2, HTML DOM tree structure:
3, DOM node
Node parent, child, and sibling
(1) Parent node
(2) Child nodes
(3) Child nodes
(4) Child nodes first and last
(5) Sibling node
4, DOM object
1. Common ways to find HTML elements
(1) get method
(2) querySelector and querySelectorAll
(3) Get speci ...
Added by .Stealth on Mon, 17 Jan 2022 10:36:17 +0200
In the previous section, we talked about most node operations. This section complements some node operations and describes some optimization solutions to browser rendering problems
Get element related nodes
<p class="pri ...
Added by envexlabs on Tue, 21 Dec 2021 03:55:51 +0200
Code words are not easy, and helpful classmates hope to be able to pay attention to my WeChat official account: Code program life, thank you! Code self use and self access.
Added by herbally on Fri, 26 Nov 2021 18:13:51 +0200