Applying CSS within an iFrame

前端 未结 3 432
日久生厌
日久生厌 2021-01-24 20:06

I\'m trying to change the width of my ad image from pixels to percentages. I\'m using Google DoubleClick or \"DFP\". It automatically puts your ad image inside an iframe, makin

3条回答
  •  时光取名叫无心
    2021-01-24 20:45

    I found that I could use the synchronous loading, in junction with the "smart iframe" Google touts, that I could rip the link out of their iframe and place it in my DOM.

    Note that I pass the same id for the dfp code to my AdjustGoogleAd method. I'm messing with the width/height attributes because we're on a responsive site.

    
    
    

    With HTML:

提交回复
热议问题