设置bootstrap modal模态框的宽度和宽度
来源:互联网 发布:人人商城v2 数据字典 编辑:程序博客网 时间:2024/06/08 15:31
(1)修改宽度可以通过修改modal中的modal-dialog这个div宽度实现
<div class="modal-dialog" style="width:600px">
(2) 修改高度和宽度最好的办法是修改modal-body中添加的控件,设置控件的大小,modal会自动适应。
例如
<div class="modal fade in" id="_modalDialog" tabindex="-1" role="dialog" aria-labelledby="modalLabel" style="display: block;"> <div class="modal-dialog" role="document" style="width: 680px;"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button> <h4 class="modal-title" id="modalLabel">选择移动到的目录</h4></div> <div id="_modalDialog_body" class="modal-body"> <!-- 设置这个div的大小,超出部分显示滚动条 --> <div id="selectTree" class="ztree" style="height:300px;overflow:auto; "> </div> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary">确定</button> <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> </div> </div> </div></div>
显示效果图
3 0
- 设置bootstrap modal模态框的宽度和宽度
- Bootstrap模态框modal的高度和宽度设置
- 修改bootstrap modal模态框的宽度
- jquery bootstrap 中的 模式对话框 modal 设置宽度和高度
- bootstrap modal 宽度
- bootstrap表单宽度设置
- bootstrap表单宽度设置2
- bootstrap插件bootbox参数和自定义弹出框宽度设置
- bootstrap插件bootbox参数和自定义弹出框宽度设置
- 设置控件/对话框的宽度和高度
- 如何设置对话框的宽度和高度
- 设置 超链接的宽度和高度
- 设置button的边框颜色和宽度
- POI设置单元格的宽度和高度
- 动态设置ImageView的宽度和高度
- [QNX]PtList的居中和宽度设置
- item设置的高度和宽度不起作用
- 设置背景图片的宽度和高度
- Vijos 1549题:中位数
- Opencv2.4.9源码分析——HoughLinesP
- DataBinding使用进阶
- 换部门与看录像——北漂18年(90)
- TabContainerView一一实现底部导航栏效果
- 设置bootstrap modal模态框的宽度和宽度
- Java继承_基类Object(三)
- 2.ehcache memcache redis 三大缓存男高音
- Lists是google对java.util.List类的封装
- input输入框value获取JS中值
- 【COCI2015】bzoj3881 Divljak
- 实现spring事务的四种方式
- ros下的plugin学习
- 参考知识库