jekyll 嵌入 iframe 不工作

jekyll embed iframe don't work

我在 google 和这里搜索了很多,但没有找到答案。

我使用 jekyll,在关于我的页面中,我要嵌入什么 this ,给定的 iframe 看起来像这样:

<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="http://music.163.com/outchain/player?type=2&id=29750802&auto=0&height=32"></iframe>

我在我的“关于我”页面中这样使用它:

{% raw %}
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="http://music.163.com/outchain/player?type=2&id=29750802&auto=0&height=32"></iframe>
{% endraw %}

看起来不错,但它没有用,而不是我想要的,它显示原始文本而不是 iframe

我已经尝试了几乎所有方法,但仍然无法正常工作...

正如我所说,我尝试了一切。最后,当我将双引号添加到

width=298 height=52

像这样:

width="298" height="52"

终于成功了!

我在 youtube 上查了一下,我发现 youtube 确实首先引用了 widthheight。所以我认为某些站点可能需要进行某种更改,例如我使用的站点。