使用 System.Windows.Forms.WebBrowser 检查元素 [英] Inspect Element Using System.Windows.Forms.WebBrowser

查看:28
本文介绍了使用 System.Windows.Forms.WebBrowser 检查元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Internet Explorer 中的上下文菜单可以检查元素以查看附加到 html 元素的样式等.

Using the context menu inside internet explorer allows you to inspect the element to see styles etc attached to a html element.

无论如何,您是否在 webbrowser 控件中启用了此功能?(我猜它不包括在内以使其更轻,如果有的话,还有其他选择吗?)

Is there anyway that you enable this functionality inside the webbrowser control? (I am guessing it is not included to make it lighter, if so is there an alternative?)

我不打算将它提供给客户端,但在调试发送到我的 winform 应用程序中的控件的页面时,它肯定会有所帮助.

It is not my intention to make this available to the client but it would certainly help when debugging the pages sent to the control in my winform application.

推荐答案

由于似乎没有人对这个问题感兴趣,所以我决定使用以下解决方案.

As no one seemed to bite on this question I have settled with using the following solution.

https://getfirebug.com/firebuglite#Stable

使用此页面上的说明,我能够在 webbrowser 控件上按 F12 以显示 Firebug 的精简版"版本,这让我可以愉快地检查元素.

Using the instructions on this page I was able to press F12 on the webbrowser control to show a "Lite" version of Firebug, this allows me to happily inspect the elements.

这篇关于使用 System.Windows.Forms.WebBrowser 检查元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆