26

我阅读了有关 Firefox页面检查器的文档。我没有找到任何直接检查元素的快捷方式,而无需单击“用鼠标选择元素”按钮。打开检查器本身的文档甚至看起来是错误的。

您在 OSX 上使用cmd++打开它,而不是文档中描述的option++ 。icmdoptionc

使用火狐 v24

4

6 回答 6

32

It seems that Ctrl+Shift+C always open the inspector in "choose element with mouse" mode. [Linux, FF 26.0. Also works in Chrome.]

It's not exactly the same flow as context menu -> inspect element but I find it more useful. The hover tooltip sometimes gives me all the info I need. And it's more reliable — just opening the context menu generates a mouse event while Ctrl+Shift+C doesn't. E.g. with CodeMirror which plays games with invisible elements, using context menu usually lands me in the hidden textarea or fake cursor, while "choose with mouse" mode reliably gives me the styled editor content I wanted to inspect.

于 2014-01-31T00:20:01.627 回答
16

窗户:Ctrl++ 。ShiftC

麦克:Cmd++ 。OptionC

于 2014-11-13T08:59:52.570 回答
7

Ctr + Shift + C 和功能 F12 按钮是每个浏览器的默认检查元素按钮。因此,如果您的 firefox 中没有安装 firebug,那么 F12 按钮是您实现目标的最短快捷方式。

于 2014-03-17T21:52:55.997 回答
2

在 Mac 上(虽然我使用的是 Yosemite),它是Command ⌘</kbd> + Option + c.

于 2014-07-24T15:43:27.893 回答
2

我不确定您在 Mac OS 中执行此操作的方式,但在 Windows 上,如果您通过按 tab 直到到达它来选择元素,如果您按上下文菜单键然后Q,您在该特定元素上打开检查器,就像右键单击它时发生的那样。

我相信上下文菜单键不是 Mac 的东西,但似乎有人在努力做到这一点。请参阅此问题:如何从 Mac 键盘打开上下文菜单?.

于 2013-09-24T22:38:28.787 回答
0

在 Linux (Ubuntu 18.04) 和 Firefox (版本 72.0.2) 上,它是++CTRL或hotkey 。SHIFTiF12

于 2020-02-08T19:21:26.837 回答