奇怪的iframe被添加到名为rufous-sandbox的body标签中

时间:2021-05-09 15:54:55

I'm working on a local Wordpress site, and for some reason theres an iframe added just after the opening body tag which makes the body to drop down about 20px.

我正在一个本地Wordpress站点上工作,出于某种原因,在开始的body标签之后添加了一个iframe,这使得body的值下降了大约20px。

Google only returned 1 relevant result when searching for it, and what I read there didn't help much. It can be found here

谷歌在搜索时只返回1个相关的结果,我在那里看到的并没有多大帮助。可以在这里找到

As I said on the Wordpress site (user AMG999222) Theres no plugins installed on this site, and setting it to display: none; doesn't work.

正如我在Wordpress网站上所说(用户AMG999222),这个网站上没有安装插件,并设置为显示:没有;是行不通的。

Here's a screenshot from Chrome so you can see:

这是Chrome的截图,你可以看到:

奇怪的iframe被添加到名为rufous-sandbox的body标签中

1 个解决方案

#1


113  

It seems like it is added by the Twitter script. If you remove it the iframe will disappear. It sure looks like you have the Twitter plugin installed in some way or the other as you can see it says data-twttr-rendered="true" in the body tag.

看起来它是由Twitter脚本添加的。如果你移除它,iframe就会消失。你可以看到,Twitter插件在body标签上显示的是data-twttr- rendering =“true”。

If you remove the code - in my case the code below - it will disappear

如果您删除代码——我的情况是下面的代码——它将会消失

<script type="text/javascript">
  (function(){
    var twitterWidgets = document.createElement('script');
    twitterWidgets.type = 'text/javascript';
    twitterWidgets.async = true;
    twitterWidgets.src = '//platform.twitter.com/widgets.js';
    document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
  })();
</script>

#1


113  

It seems like it is added by the Twitter script. If you remove it the iframe will disappear. It sure looks like you have the Twitter plugin installed in some way or the other as you can see it says data-twttr-rendered="true" in the body tag.

看起来它是由Twitter脚本添加的。如果你移除它,iframe就会消失。你可以看到,Twitter插件在body标签上显示的是data-twttr- rendering =“true”。

If you remove the code - in my case the code below - it will disappear

如果您删除代码——我的情况是下面的代码——它将会消失

<script type="text/javascript">
  (function(){
    var twitterWidgets = document.createElement('script');
    twitterWidgets.type = 'text/javascript';
    twitterWidgets.async = true;
    twitterWidgets.src = '//platform.twitter.com/widgets.js';
    document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
  })();
</script>