【问题标题】:particles.js + bootstrap 4.6 white spaces in mobile version移动版中的particles.js + bootstrap 4.6空格
【发布时间】:2021-06-18 08:03:37
【问题描述】:

我这样使用particles.js:

    <div id="particles-js"></div>
@RenderSection("Header", required: false)
<main role="main" class="container">
    @RenderBody()
</main>
<script>
    particlesJS.load('particles-js', '/Scripts/Custom/particles.json', function () {
        console.log('callback - particles.js config loaded');
    });
</script>

只有在移动版本中我有这个问题:

请告诉我如何解决这个问题,在空白处没有任何标签或其他内容。

【问题讨论】:

    标签: css asp.net user-interface particles.js


    【解决方案1】:

    这是我的问题的answer

    #particles-js{
      width: 100%;
      height: 100%;
      position: fixed;
      background-color: #000;
      background-image: url('');
      background-size: cover;
      background-position: 50% 50%;
      background-repeat: no-repeat;
    }
    
    .body-particles{
      position: absolute;
      top: 0;
      left: 0;
      z-index: 100;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-07
      相关资源
      最近更新 更多