Home > front end >  When I add onclick, the mouse to click times is my fault
When I add onclick, the mouse to click times is my fault

Time:12-21

Specific code can look at the pictures I sent you a, these are I see public class learning, code exactly like the one with the teacher, but the teacher didn't complain, my error, and a great god help have a look at the wrong where how to fix it?

CodePudding user response:

Ul: first, the child is the first child of the parent element matched elements ul, but your ul is not its parent element of the first child, so can't match,
Should be changed to ul: first - of - type

CodePudding user response:

The teacher's code & lt; Div id="prev" & gt;
Should be below the ul

CodePudding user response:

reference 1/f, the sky wave response:
ul: first, the child is the first child of the parent element matched elements ul, but your ul isn't it the first child of the parent element, so can't match,
Should be changed to ul: first - of - type

With you this way, thank you!
  • Related