GTM将空白空间NBSP放在页脚下方

发布于 2025-02-06 12:47:39 字数 64 浏览 1 评论 0原文

页脚下方有一个空白空间来自& nbsp;,我所知道的是它来自GTM。如何删除?

There's a blank space below the footer coming from an  , all I know is it is coming from GTM. How to remove?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丢了幸福的猪 2025-02-13 12:47:41

弄清楚了。其中有“自定义HTML” GTM标签,其中有空白。从“自定义HTML”标签中删除空白行修复了问题。

之前:

<img src="pixelimgurl" />

之后:

<img src="pixelimgurl" />

此修复程序后仍有一小部分额外空间。以下CSS删除了剩余空间:

body > img { display: none !important; }

Figured it out. There were "Custom HTML" GTM tags that had blank lines in them. Removing the blank lines from the "Custom HTML" tags fixed the issue.

Before:

<img src="pixelimgurl" />

After:

<img src="pixelimgurl" />

There was still a small bit of extra space remaining after this fix. The following CSS removed that remaining space:

body > img { display: none !important; }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文