简体   繁体   English

Bootstrap Modal效果不佳

[英]Bootstrap Modal doesnt work well

I'm trying to open a form with bootstrap modal, my first problem was that bootstrap modal disappear immediately after click on my button but searching in other questions I found the solution deleting from my template: 我正在尝试使用引导程序模式打开表单,我的第一个问题是单击了按钮后,引导程序模式会立即消失,但是在搜索其他问题时,我发现解决方案已从模板中删除:

{!!Html::script('js/plugins/bootstrap.min.js')!!} {!! HTML :: script('js / plugins / bootstrap.min.js')!!}

Now I have other problem, the form of modal open but I can not do nothing, I can not submit my form, I attached a file with photo. 现在我还有其他问题,模式打开的表单不起作用,但是我什么也不能做,我不能提交表单,我附带了带照片的文件。 在此处输入图片说明

It's all dark and I can not do nothing. 天黑了,我无能为力。

  • How can I fix this problem? 我该如何解决这个问题?
  • Is a problem if I deleted bootstrap.min.js ?(I'm afraid that after something goes wrong) 如果我删除了bootstrap.min.js是一个问题吗?(恐怕出问题之后)
  • There other way to create modal form? 还有其他方式可以创建模式形式吗? (maybe javascript) (也许是javascript)

Thank you for your help! 谢谢您的帮助!

Your modal is may be inside some other div , that is affecting it . 您的情态可能在其他div内,这正在影响它。 Try putting it outside that div it will work !! 尝试将其放在该div之外,它将起作用! Or try putting this in your css file it may work div.modal div.modal-backdrop { z-index: 0; } 或者尝试将其放在您的CSS文件中,这样可能会起作用div.modal div.modal-backdrop { z-index: 0; } div.modal div.modal-backdrop { z-index: 0; }

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

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