简体   繁体   English

HTML / JS弹出框

[英]HTML / JS popup box

Is there a way to have a popup box show, not alert .有没有办法让弹出框显示,而不是alert

You know the ones that popup in the centre of the screen, not as a separate window, but just as a content wrapper, also blurring the background and making items in the background unclickable?您知道在屏幕中央弹出的那些,不是作为单独的 window,而是作为内容包装器,还模糊背景并使背景中的项目不可点击?

I can't find much, but if anyone has any ideas or a link to another post, please say!我找不到太多,但如果有人有任何想法或指向另一篇文章的链接,请说!

Thank you!谢谢!

Until dialogInstance.showModal() is available in all browsers, you can use something like CSS Only Modal在所有浏览器中都可以使用dialogInstance.showModal()之前,您可以使用CSS Only Modal 之类的东西

To achieve this kind of stuff, you can consider two best frameworks which provides the best solution for modal popup, slider, search, etc为了实现这种东西,你可以考虑两个为模态弹出提供最佳解决方案的最佳框架,slider,搜索等

  1. Bootstrap https://getbootstrap.com/引导https://getbootstrap.com/
  2. Semantic UI https://semantic-ui.com/ (I love this option)语义 UI https://semantic-ui.com/ (我喜欢这个选项)

Hope It'll help希望它会有所帮助

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

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