From 2354da135ed4cc64f7cb10c0e41539c891b8c0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BF=8A=E5=85=B4?= <3250103239@qq.com> Date: Mon, 11 Dec 2023 20:49:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...41\347\220\206\347\263\273\347\273\237.md" | 244 ++++++++++++++++++ 1 file changed, 244 insertions(+) create mode 100644 "14 \346\235\216\344\277\212\345\205\264/20231208 \345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" diff --git "a/14 \346\235\216\344\277\212\345\205\264/20231208 \345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" "b/14 \346\235\216\344\277\212\345\205\264/20231208 \345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" new file mode 100644 index 0000000..6770149 --- /dev/null +++ "b/14 \346\235\216\344\277\212\345\205\264/20231208 \345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" @@ -0,0 +1,244 @@ +### 笔记 + +1. 什么是 Bootstrap 弹框? + + * 不离开当前页面,显示单独内容,供用户操作 + +  + +2. 需求:使用 Bootstrap 弹框,先做个简单效果,点击按钮,让弹框出现,点击 X 和 Close 让弹框隐藏 + +  + +3. 如何使用 Bootstrap 弹框呢? + + 1. 先引入 bootstrap.css 和 bootstrap.js 到自己网页中 + + 2. 准备弹框标签,确认结构(可以从 Bootstrap 官方文档的 Modal 里复制基础例子)- 运行到网页后,逐一对应标签和弹框每个部分对应关系 + + 3. 通过自定义属性,通知弹框的显示和隐藏,语法如下: + + ```html + + + + ``` + + + +4. 去代码区实现一下 + + ```html + + + +
+ + + +