简体   繁体   English

如何实现Javascript颜色选择器

[英]How can I implement a Javascript color picker

I'm contemplating the development of a component for picking color off of a web page. 我正在考虑开发用于从网页上挑选颜色的组件。 This is NOT a color selection component which allows you to choose a specific color off of a color wheel or pallete. 这不是颜色选择组件,它不允许您从色轮或调色板中选择特定颜色。 I'm referring to a component which will provide me with a crosshair to click o nthe specific spot on the page and "pick" the color under it. 我指的是一个组件,该组件将为我提供十字准线以单击页面上的特定位置并“拾取”其下方的颜色。 I know, on the web, this is very complex. 我知道,在网络上,这非常复杂。 I couldn't find an existing component nor think of a good way to implement this other than complex markup inspection and image inspection. 除了复杂的标记检查和图像检查之外,我找不到现有的组件,也没有想办法实现这一点。

Any pointers? 有指针吗?

Firefox有一个名为“ ColorZilla”的加载项,请检查出来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何实现这个jQuery时间选择器? - How can I implement this jQuery time picker? 如何使用自定义图片在JavaScript中实现表情符号选择器? - How do I implement emoji picker in javascript with custom images? 如何使用JavaScript控制台通过#4286f4或任何其他颜色选择器编号更改背景颜色 - How can I use javascript console to change the background color with #4286f4 or any other color picker number 如何实现颜色选择器而不是静态颜色 - How to implement a color picker instead of static colors 如何更改Farbtastic拾色轮的宽度和高度? - How can I change the width and height of Farbtastic Color Picker Wheel? jQuery:如何制作预定义的颜色选择器? - jQuery: How can I make a predefined color picker? jQuery:如何为contenteditable div创建颜色选择器? - Jquery: How can I create color picker for contenteditable div? 如何在HTML5,JavaScript,CSS,Sass中实现随机按钮颜色生成器 - How can I implement random button color generator in Html5, JavaScript, Css, Sass 如何实现javascript,以使帖子的背景基于帖子标题生成的颜色? - How can I implement javascript in order to base the background of my posts on a color generated by the title of the post? 如何使用颜色选择器更新 div 或任何元素的背景颜色 - How can I update the background color of my div or any element by using Color Picker
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM