启用webBrowser控件以用作调试器 [英] Enabling webBrowser control to work as debugger
问题描述
我在Windows应用程序中使用WebBrowser控件。我将在这个webBrowser控件上加载一个html文档。我的要求是我想在webBrowser上实现鼠标移动并基于光标的移动,如果光标在任何标签的正上方,我必须突出显示作为该元素的父元素的div内容。
例如:
I am using a WebBrowser control in a windows application. I will be loading a html document on this webBrowser control. My requirement is I wanted to implement mouse move over webBrowser and based on the move of the cursor, if the cursor was right above any tags, I have to highlight the div content who is the parent of this element.
For example:
<div id="id1">
<p>Hello World</p>
</div>
<div id="id2">
I am in div2
</div>
这里如果我将光标放在Hello的顶部世界,控件必须突出显示div(id1)。
它更像是我们通过调试器在普通浏览器中调试的方式。
我愿意为此提出建议。
感谢您的回复。
Here if I keep the cursor on top of Hello World, the control has to highlight the div(id1).
Its more like how we debug in normal browser through debugger.
I am open to suggestions for this.
Thanks for your reply.
推荐答案
这篇关于启用webBrowser控件以用作调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!