什么可能阻止iframe显示?它可以是ssl证书吗? [英] What may prevent iframe from displaying? Can it be a ssl certificate?

查看:289
本文介绍了什么可能阻止iframe显示?它可以是ssl证书吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Bluehost有2台服务器。其中一个显示iframe没有问题,另一个没有。

I have 2 servers at Bluehost. One of them displays iframe with no trouble, the other one does not.

这两个案例中的代码:

<iframe title="YouTube video player" width="300" height="165" src="http://www.youtube.com/embed/QrzCRa6er8U" frameborder="0" allowfullscreen></iframe>

两台服务器都是vps。不起作用的那个有来自comodo的ssl证书。我是否需要特殊命令才能使用?

Both servers are vps. The one that does not work has an ssl certificate from comodo. Do I need special command for it to work?

推荐答案

尝试将您的IFRAME src更改为https而不是http。

Try to change your IFRAME src to https instead of http.

这篇关于什么可能阻止iframe显示?它可以是ssl证书吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆