简体   繁体   English

为什么这个脚本将我的 header 向下移动?

[英]Why does this script move my header down?

I am trying to get a spreadshirt shop integrated on my website but when I add their recommended javascript code it moves my header on the page down.我正在尝试在我的网站上集成一个印花衬衫店,但是当我添加他们推荐的 javascript 代码时,它会将我的 header 移到页面下方。 It only happens on that page.它只发生在该页面上。 My website is https://www.irelandsfuture.com/store and the script looks like this:我的网站是https://www.irelandsfuture.com/store ,脚本如下所示:

<div id="myshop">Spreadshop loading...</div>
        <script>
            var spread_shop_config = {
              prefix: 'https://shop.spreadshirt.ie',
              shopName: 'irelandsfuture',
              baseId: 'myshop',
            };
        </script>
        <script type="text/javascript" src="https://shop.spreadshirt.net/js/shopclient.nocache.js"></script>

Any ideas how to prevent this please?请问有什么方法可以防止这种情况吗?

Thanks谢谢

I just opened the dev tools you have an SVG at the top of your page.我刚刚打开了开发工具,您的页面顶部有一个 SVG。

在此处输入图像描述

add display: none like this:添加显示:没有这样的:

<svg xmlns="http://www.w3.org/2000/svg" style=" display: none;">

instead of:代替:

 <svg xmlns="http://www.w3.org/2000/svg" display="none">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM