在Chrome和Firefox浏览器中的网页上获取鼠标光标下的对象 [英] get object under mouse cursor on webpages in chrome and Firefox browsers
问题描述
我想在chrome和Firefox浏览器中的网页上获取鼠标光标下的任何对象。任何帮助将不胜感激。
谢谢
嗨[ Mohsin Ali],
感谢您在此发帖。
对于您的问题,我从以下链接下载源文件
从
Castorix31 "https://social.msdn.microsoft.com/Forums/vstudio/en-US/83e44655-1ac3-45ba-99e4-bc29114f3fae/object-under-mouse-cursor-on-websites?forum=netfxbcl">
线程。
https://app.box.com/s / q1ctr8fhhouesojox3ovzhjlr1pn3rzp
该代码适用于edge,IE,Win10桌面等。根据我的测试,它不适用于chorme,Firefox。对于特殊浏览器,您可以尝试使用自己的API来获得所需的内容。
对于Google API,您可以在此论坛中提问。
https://developers.google.com/apis-explorer/#p/
有关Firefox的更多详细信息,请参阅以下链接。
https://developer.mozilla.org/en-US/Add-ons/Legacy_Firefox_for_Android/API
最诚挚的问候,
I want to get any object under mouse cursor on webpages in chrome and Firefox browsers. Any help will be appreciated.
Thanks
Hi [ Mohsin Ali],
Thank you for posting here.
For your question, I download the source file from the following link provide by Castorix31 from this thread.
https://app.box.com/s/q1ctr8fhhouesojox3ovzhjlr1pn3rzp
The code works well for edge, IE, Win10 desktop and so on. Based on my test, it does not work for chorme, Firefox. For the special browser, you could try to use its own API to get what you want.
For google API, you could ask in this forum.
https://developers.google.com/apis-explorer/#p/
For more details about Firefox, you could refer to the following link.
https://developer.mozilla.org/en-US/Add-ons/Legacy_Firefox_for_Android/API
Best Regards,
这篇关于在Chrome和Firefox浏览器中的网页上获取鼠标光标下的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!