Home > Article > Web Front-end > Bootstrap 模态框(Modal)插件_html/css_WEB-ITnose
http://www.runoob.com/bootstrap/bootstrap-modal-plugin.html
模态框(Modal)是覆盖在父窗体上的子窗体。通常,目的是显示来自一个单独的源的内容,可以在不离开父窗体的情况下有一些互动。子窗体可提供信息、交互等。
如果您想要单独引用该插件的功能,那么您需要引用 modal.js。或者,正如 Bootstrap 插件概览 一章中所提到,您可以引用 bootstrap.js 或压缩版的 bootstrap.min.js。您可以切换模态框(Modal)插件的隐藏内容:
$('#identifier').modal(options)
一个静态的模态窗口实例,如下面的实例所示:
Bootstrap 实例 - 模态框(Modal)插件 创建模态框(Modal)
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn