检查 Chrome 中变灰的元素

问题描述 投票:0回答:3

Chrome 版本 45.0.2454.85 m。

突然有一天,右键上下文菜单中的“检查元素”选项变灰了。 Ctrl + Shift + I 不执行任何操作,F12 也不执行任何操作。按照此处一个答案的建议清理了缓存,但这也没有帮助。

google-chrome inspect-element
3个回答
1
投票

我发现由于奇怪的原因,Windows 更新或 Chrome 更新更改了此注册表设置。

Software/Policies/Google/Chrome/DeveloperToolsDisabled为1。改为0并重新启动系统。


0
投票

转到您的软件,然后进入策略、google、chrome,然后您会看到 DeveloperToolsDisabled 为 1,将其更改为 0。完成


0
投票

解决方案

您必须将 Windows 注册表

Software/Policies/Google/Chrome/DeveloperToolsDisabled
的值从 1 更改为 0

注意:您需要 管理员权限才能编辑注册表。

步骤

命令行

  1. 以管理员身份启动CMD;
  2. 输入以下命令:
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v DeveloperToolsDisabled /t REG_DWORD /d 0 /f

您应该会看到一条消息

The operation completed successfully.

图形用户界面

  1. 以管理员身份启动注册表编辑器(按
    Win + R
    并输入
    regedit
    ):

enter image description here

  1. 导航至
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome

enter image description here

  1. 查找名为“DeveloperToolsDisabled”的键:

enter image description here

  1. 将其值从 1 更改为 0:

enter image description here

  1. 关闭注册表;
  2. 重新启动计算机以使更改生效。
© www.soinside.com 2019 - 2024. All rights reserved.