Google Adsense transparent background

前提是你 提交于 2019-12-05 23:03:42

问题


How to make the Google Adsense block transparent?

It uses iframe, and resides on other domain, so jQuery can't do anything. I tried to target it with css, but that's also impossible. Any ideas?

I'm not trying to game adsense system, simply I've a background image, and with solid fill the ad looks disgusting.


回答1:


I think some other people have answered correctly that you can't really do this. But what really is the root problem here? You are trying to avoid the ad looking bad on a background image.

simply I've a background image, and with solid fill ad looks disgusting!

Well, why not add some sort of effect that is strictly on your page but makes the ad simply look better. I'm thinking the easiest way to do this is with a box shadow: http://css-tricks.com/snippets/css/css-box-shadow/

Here are some examples of what such an effect might look like:

http://jsfiddle.net/7wPrS/3/

http://jsfiddle.net/7wPrS/4/




回答2:


This is a famous question asked in years. The answer is " YOU CANNOT " (at least for normal account)

Why? Because if can, then so easy to cheap and trick people to click




回答3:


While you may not be attempting to game the system, many, many others have. As a result, Google uses an iframe to strictly limit what you can modify - they can't possibly do this on a case-by-case basis, so quite frankly Google should not allow this. You cannot set a transparent background, only a solid color of your choosing.



来源:https://stackoverflow.com/questions/8841818/google-adsense-transparent-background

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