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.
有什么方法可以在不更改代码的情况下删除网站的一部分?
例如,我在我的 Windows 窗体中创建了一个 webBrowser 控件并告诉它加载 stackoverflow.com。有没有办法从显示中删除前 100 个像素?
您可以编写自己的带有 iframe 的 html 页面,在 iframe 中加载网站(例如 stackoverflow)并将 iframe 的 css margin-top 属性设置为“-100px”
我能想到的最好的办法是让一个面板与 WebBrowser 控件的前 100 个像素重叠。