How to change style of iframe content cross-domain?

前端 未结 3 707
孤独总比滥情好
孤独总比滥情好 2020-11-27 07:42

I want to make background color black and text color white for the content inside iframe from its default of normal white background and black text. The iframe src attribute

3条回答
  •  囚心锁ツ
    2020-11-27 08:29

    The only possibility would be to load the iframe content through a proxy of yours and modify the HTML content. You can not access iframes from another domain via JavaScript.

提交回复
热议问题