未知的“BESbswy"<span> [英] Unknown "BESbswy" <span>

查看:42
本文介绍了未知的“BESbswy"<span>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚注意到一些奇怪的跨度被自动添加到正文的末尾,左侧和顶部带有 -999 并且可见性隐藏.我与 wordpress 一起工作(如果重要的话).跨度看起来完全像这样:

I've just noticed that some strange span is being added automatically to the end of body with left and top with -999 and visibility hidden. I work with wordpress (if it matters). The span looks exactly like this:

<span style="position: absolute; left: -999px; top: 0px; visibility: hidden; font-size: 300px; width: auto; height: auto; margin: 0px; padding: 0px; font-family: Roboto, Arial, sans-serif;"> BESbswy <span>

它包含BESbswy"字符串.

我在网上阅读了一些Tnx!

I have read some article on the web that says this is a runtime test in the Typekit/Webfontloader, which I'm not using at all. All the pages uses Google Maps API and contain maps so i realized that this span is been added with google maps, since i cant see it in another page, that doesn't include a map. When i remove the map from my page i cant see the span anymore. If the Google Maps API seems to create one of these "BESbewy" span elements, Can someone help me to understand what is this BESbewy thing? and how to make make it disappear? Tnx!

## 更新 ##

我制作了一个脚本来解决这个问题,一个临时解决方案,直到我知道这个跨度是什么:|

I made a script that solve this issue, a temporary solution, until i will find out what is this span :|

  var clearSpan = setInterval(function () {
      var x = $("span:contains('BESbswy')");
      if(x.length != 0){
          $(x).text("");
          clearInterval(clearSpan);
      }
},100);
setTimeout(function(){clearInterval(clearSpan);},5000);

推荐答案

用简单的 css 规则修复:

Fixed with simple css regule:

span[style*='top: -999px']{display: none;}

Span 由 GoogleMaps 插件生成.找不到其他方法来修复它.

Span is generated by GoogleMaps plugin. Couldn't find other way to fix it.

这篇关于未知的“BESbswy"&amp;lt;span&amp;gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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