Can't load iFrame CSS

后端 未结 2 1774
耶瑟儿~
耶瑟儿~ 2021-01-14 13:31

I\'m trying to load an iFrame into a Wordpress website. The iFrame should load the table displayed in this link, with all the colors and other styles applie

相关标签:
2条回答
  • 2021-01-14 14:07

    Use HTTPS to serve your css in the iframe. If you open the Chrome Devtools, the following error message can be seen multiple times: Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure image '<URL>'. This content should also be served over HTTPS.

    0 讨论(0)
  • 2021-01-14 14:09

    First of all Iframes will not take the external css. as they have there own html head and body tags, Its a separate html document. you cannot override any styles in Iframe. instead you can try attach your stylesheet in the required document and use it in the iframe.

    0 讨论(0)
提交回复
热议问题