https://ethanykc.github.io/contact.html
我的联系表格正在做这种奇怪的事情,其中粒子被推到联系表格下方。如果我将画布用作该部分的父级,那么即使我将 z-index 设置为 9999,联系表单也会消失。
<section class="fullscreen cover image-bg" id="particles-js" style="height:826px;" >
<div class="container-form" style="background-color: transparent;" >
<form id="contact" action="" method="post">
</form>
</div>
</section>
/*---css for form---*/
.container-form {
max-width:400px;
margin:0 auto;
position:relative;
z-index: 9999;
}
这是没有页脚和字段变量的主容器的内容。如果有人可以帮助我弄清楚为什么“容器形式”类似乎占据了整个屏幕,那将不胜感激。