Select and highlight elements - Firefox Developer Tools 编辑
The selected element is the element in the page that the Inspector is currently focused on. The selected element is shown in the HTML pane and its CSS is displayed in the CSS pane.
The highlighted element is the element that's overlaid in the page with a graphic showing the box model, and a tooltip showing its tag and size:
With the context menu
To open the Inspector and select an element immediately, activate the context menu over the element in the page and select "Inspect Element":
With the HTML pane
When the inspector is open, as you move the mouse around the elements listed in the HTML pane, the corresponding elements are highlighted in the page. Click an element in the HTML pane to select it:
You can also use the arrow keys to move around the DOM with the keyboard.
With the node picker
To select an element in the page itself, activate the "node picker" by clicking its icon: (also called the Select Element icon). After that, as you move the mouse around the page, the element under the mouse is highlighted. Click the element to select it:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论