【发布时间】:2019-02-04 17:32:14
【问题描述】:
我使用particles.js 作为我的页面的背景。我创建了一个按钮,并且在使用按钮类的margin 属性时,我的粒子停止在整个页面中流动。
我最近了解了particle.js,但对它一无所知。
我已经尝试了此链接上提供的解决方案,但它不适合我。
particles.js not covering entire page
任何帮助将不胜感激。
<style>
body
{
padding: 0;
margin: 0;
background: linear-gradient(to top right, #112128,#274a5a, #203A43, #0F2027,#081014);
}
#particles-js
{
widows: 100%;
height: 100%;
}
.butt
{
margin-top: 300px;
margin-left: 300px;
}
</style>
<body>
<section id="particles-js">
<button class="butt">click here</button>
</section>
</body>
【问题讨论】:
标签: html css particles.js