Inspect Element Using System.Windows.Forms.WebBrowser

旧巷老猫 提交于 2020-01-15 11:22:42

问题


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

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?)

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.


回答1:


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

https://getfirebug.com/firebuglite#Stable

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.



来源:https://stackoverflow.com/questions/22298458/inspect-element-using-system-windows-forms-webbrowser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!