简体   繁体   English

如何将带有HTTP URL的iframe嵌入Blogger

[英]How can I embed an iframe with HTTP URL into Blogger

I'm trying to embed an iframe into my blogger site. 我正在尝试将iframe嵌入我的博客网站。 But the main problem is that Blogspot does not support iframe with HTTP URL and my target website is on HTTP. 但是主要问题是Blogspot不支持带有HTTP URL的iframe,而我的目标网站位于HTTP上。 this is my iframe example: 这是我的iframe示例:

<iframe
    src="http://mywebsite.com"
    style="border:0px #ffffff none;"
    name="myiFrame"
    scrolling="no"
    frameborder="1"
    marginheight="0px"
    marginwidth="0px"
    height="400px"
    width="600px"
    allowfullscreen
></iframe>

Blogger shows the following warning: Blogger显示以下警告:

There are HTTP resources on this page, because of which mixed content can negatively affect the security and display of certain elements when viewing your blog over a secure connection. 此页面上有HTTP资源,因此,通过安全连接查看博客时,混合内容可能会对安全性和某些元素的显示产生负面影响。

How can I embed an iframe with HTTP URL into Blogspot.com? 如何将带有HTTP URL的iframe嵌入Blogspot.com?

Blogger provides an option to Dismiss the warning. 博客提供了一个选项, 关闭该警告。 Refer to the screenshot - 请参阅屏幕截图-

取消http混合内容警告

Once that warning has been dismissed and you try to save the post once again, Blogger doesn't show any warning and saves the contents of the post. 取消该警告后,您尝试再次保存该帖子,则Blogger不显示任何警告,而是保存该帖子的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM