bootstrap 模态框属性及warning
来源:互联网 发布:网络诈骗按照什么罪 编辑:程序博客网 时间:2024/05/21 14:58
1.不要同时打开多个模态框,不要在一个模态框上重叠另一个模态框2.务必将模态框的HTML代码放在文档的最高层级内(也就是说,尽量作为body标签的直接子元素),以避免其他组件影响模态框的展现和功能3.tabindex="-1" 如果模态框(modal)不设置tabindex="-1",可以通过tab键切换除模态框外的其他元素的焦点,模态框设置了tabindex='-1',tab键只能切换模态框内的元素的焦点4.增强模态框的可访问性 : .modal 添加 role=”dialog” 和 aria-labelledby=”…” 属性,用于指向模态框的标题栏;为 .modal-dialog 添加 aria-hidden=”true” 属性。另外,还应该通过 aria-describedby属性为模态框 .modal 添加描述性信息 5.data-backdrop="static"//点击模态框以外地方,模态框不关闭例子:<div class="modal fade" id="myModal" role="dialog" aria-labelledby="myModalLabel" aria-describedby="this is a modal!"></div>
0 0
- bootstrap 模态框属性及warning
- bootstrap bootbox 属性及用法
- bootstrap属性
- 【Bootstrap】html属性顺序的编码规范及表单
- bootstrap datepicker 属性设置
- bootstrap+css属性
- bootstrap display属性
- Bootstrap中jumbotron属性
- bootstrap属性笔记
- bootstrap中的data-***属性
- bootstrap的属性contentType
- bootstrap的模态框modal的hidden.bs.modal属性
- #pragma warning作用及使用方法
- 关于#pragma warning 及warning4786
- bootstrap的一些属性问题
- Bootstrap -- css的media属性
- Bootstrap中的data-*属性总结
- 深入Bootstrap中data属性
- 湖北民族学院oj(dfs+枚举) 之 彩票
- 杭电 搜索 1253 胜利大逃亡
- 在ROS下使用RS232串口读取LSM200激光测距仪数据的具体步骤
- AngularJS快速入门2--基础语法
- JavaScript中的继承(下)
- bootstrap 模态框属性及warning
- Angular 常见内置指令
- BZOJ 1367: [Baltic2004]sequence 左偏树
- 【电机控制】整流电路Simulink仿真
- 跟小刀学习 lucene 分词的原理
- 内部排序算法1(插入排序)
- LeetCode之ArrayPartition
- Optimal Milking POJ
- C# 中的委托和事件(详解)