Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个显示不同颜色的 asp.net 页面。它看起来像这样。
现在我想要的是,当我单击该表单中的任何位置时,我想获得该特定点的像素颜色。我怎样才能做到这一点??
我会使用 jquery 并在每个区域上放置一个点击事件。我会将颜色放入每个区域的 id 中,例如 id="color-#d9d9d9"。