简体   繁体   English

背景 animation 设置不完善

[英]background animation not setup perfect

My CSS animation is not set properly.我的CSS animation没有设置好。

Here is a codepen example [https://codepen.io/Dev_PHioNiX/pen/XWBjrXY][1]这是一个代码笔示例[https://codepen.io/Dev_PHioNiX/pen/XWBjrXY][1]

I have make one example in this I have added 2 label and input box but it's not showing above canvas and also I want that center.我在这里举了一个例子,我添加了 2 label 和输入框,但它没有显示在 canvas 上面,我也想要那个中心。

I want to set this background on my login div how can I do this?我想在我的登录 div 上设置这个背景,我该怎么做? I have tried but the canvas only showing not the login.我试过了,但 canvas 只显示不登录。

<div class="mb-3">
    <label for="exampleFormControlInput1" class="form-label">Email address</label>
    <input type="email" class="form-control" id="exampleFormControlInput1" placeholder="name@example.com">
  </div>
  <div class="mb-3">
    <label for="exampleFormControlTextarea1" class="form-label">Example textarea</label>
    <textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
  </div>

remove this form from canvas tag and place into从 canvas 标签中删除此表格并放入this div and add little bit css for center it.这个 div 并添加一点 css 作为中心。

div.btnbg {
  position: fixed;
  left: 40%;
  top: 30%;
}

using this css you can center your form.使用这个 css 你可以让你的表格居中。

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

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