Home > front end >  Dreamweaver
Dreamweaver

Time:10-05

How to get to the point - and p - 1 tag


I write wrong?

CodePudding user response:

Do you want to be a rolling play the effect of the picture, or do not,,,

CodePudding user response:

Only the document objects have getElementById () method, no other element,

CodePudding user response:

refer to the second floor sky waves reply:
only document objects have getElementById () method, no other element,

That should be how to get to the point - 1 label

CodePudding user response:

CodePudding user response:

reference qq_45620703 reply: 3/f
Quote: refer to the second floor of the sky wave response:
only document objects have getElementById () method, no other element,

That should be how to get to the point - 1 tag

According to the standard elements in a page id must be unique,
If the element id is the unique, directly in the document. The getElementById (), is the document object call getElementById () method,
Id is the same, if there are multiple elements should change the id to the class, and getElementsByClassName () method to obtain,

CodePudding user response:

Document. QuerySelector (" # point - 1);
The next in the same way