Eyedropper - Firefox Developer Tools 编辑

The Eyedropper is new in Firefox 31.

The Eyedropper tool enables you to select colors in the current page. It works like a magnifying glass over the page, enabling you to select with pixel precision. Underneath the magnifying glass it shows the color value for the current pixel using whichever scheme you've selected in Settings > Inspector > Default color unit:

You can use it in one of two ways:

  • to select a color from the page and copy it to the clipboard
  • to change a color value in the Inspector's Rules view to a color you've selected from the page

Copying a color to the clipboard

Open the Eyedropper in one of these two ways:

  • select "Eyedropper" under the "Web Developer" menu
  • open the Page Inspector tab and click the eyedropper button in its toolbar

As you move the mouse around the page you'll see the current color value in the Eyedropper change. Clicking copies the current color value to the clipboard.

Changing a color value in the Rules view

Color values appearing in the Inspector's Rules view have color samples next to them: clicking the sample shows a color picker popup. From Firefox 31, the popup contains an eyedropper icon: click this icon to activate the Eyedropper.

Now, when you click the Eyedropper, the color in the Rules view is set to the color you selected.

Keyboard shortcuts

CommandWindowsmacOSLinux
Select the current colorEnterReturnEnter
Dismiss the EyedropperEscEscEsc
Move by 1 pixelArrow keysArrow keysArrow keys
Move by 10 pixelsShift + arrow keysShift + arrow keysShift + arrow keys

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:138 次

字数:3377

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文