问题
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