Open the page in Chrome browser, press F12 to bring up the developer debug mode, view elements, part of the code as shown, note the Red box section
Suppose we want to find the position of some element, and move it with the mouse over that part, the debugger automatically signs the corresponding code in the selected section with a blue color, as shown in the red box.
Click Console
In console input command: elements=jquery.find (' Button.navbar-toggle ')
The goal is to find the corresponding element of jquery and assign the object property to the elements variable
After running, you can see all the corresponding elements, and then enter Elements[0] Such statements exactly locate the element you want to see, 0 is the first, 1 is the second
Finally enter a command such as Elements[0].textcontext to view the label properties, assuming that the view element resembles <...class= ' Navbar-toggle ' ...>image<...> such a format, Then the Elements[0].textcontext command executes the result as an image
Use this method to quickly crawl jquery elements in a Web page
jquery element Positioning method