C#web浏览器的Gmail广告 [英] C# WebBrowser Gmail Ads

查看:140
本文介绍了C#web浏览器的Gmail广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建显示谷歌的在线应用,特别是在Gmail的这种情况下,C#应用程序。只是我不知道如何来隐藏插件,Firefox和Chrome有广告一切都顺利。

I am creating a C# application that displays the google online applications, specifically Gmail in this situation. All is going well except that I do not know how to hide the ads that plugins that Firefox and Chrome have.

任何人有任何建议,我怎么躲编程像火狐/ Chrome的插件广告做的?

Anyone have any suggestions how I programmatically hide ads like the Firefox/Chrome plugins do?

推荐答案

将CSS规则到页面的广告列表,使显示:无;

Insert a CSS rule into the page with lists of the ads, and make the display:none;

例如:

<style type="text/css">
.classname,.anotherclassname,#idname{
display:none;
}
</style>

这篇关于C#web浏览器的Gmail广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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