课程: JavaScript Essential Training
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Practice: Find an element
- Traversing up and down the DOM tree to find one or more elements is going to be something you do all the time when working with JavaScript. So I want this to become second nature to you. Now that you're familiar with the main methods we use to find elements in the DOM, the querySelector and querySelectorAll methods, I want you to take some time to familiarize yourself with how powerful and exacting these methods are by finding elements in an HTML document. In the practice files, there's a standard HTML document with a bunch of different elements and classes. This is your playground for finding objects and working with them. Here's what I want you to do. In the browser, identify a specific element or a set of elements you want to target. Use the console or the script.js file if you wanted to get more advanced to find those target elements. Then move beyond the basics. Try targeting specific elements nested inside other…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
DOM: The Document Object Model4 分钟 7 秒
-
(已锁定)
Access elements with querySelector methods6 分钟 6 秒
-
(已锁定)
Access elements using older methods3 分钟 45 秒
-
(已锁定)
Practice: Find an element1 分钟 29 秒
-
(已锁定)
Modifying element classes4 分钟 53 秒
-
(已锁定)
Attributes4 分钟 13 秒
-
(已锁定)
Inline style3 分钟 52 秒
-
(已锁定)
Practice: Modify classes and attributes, and styles1 分钟 36 秒
-
(已锁定)
Add DOM elements5 分钟 25 秒
-
(已锁定)
Challenge intro: Create elements1 分钟 17 秒
-
(已锁定)
Solution: Create elements3 分钟 35 秒
-
-
-
-
-
-
-