BootStrap模态框
来源:互联网 发布:gcc编译器下载 linux 编辑:程序博客网 时间:2024/06/05 15:24
模态框示例图:
比如点击下图操作里的修改按钮,弹出上面的模态框:
<inputtype="button" id="updateBtn" value="修改" class="btn btn-primary"
data-toggle="modal"data-target="#updateUser"/> //这里的data-target与下面模态框div的id对应
<!- 模态框(Modal) -->
<div class="modal fade" id="updateUser" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" >
<div class="modal-content" style="background:#E6E6FA;width:350px;height:380px;margin:auto;">
<div class="modal-header" >
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">修改用户信息</h4>
</div>
<div class="modal-body" >
<div class="updateUserModal">
<ul >
<li >
<label style="position:relative;left:15px;" >用户名</label>
<input type="text" id="userCode" class="input" readOnly="true" style="position:relative;left:22px;"/>
</li>
<li>
<span >*</span><label style="position:relative;left:15px;">角色</label>
<input type="text" id="roleID" class="input " style="position:relative;left:28px;"/>
</li>
<li ><label style="position:relative;left:1px;" >联系方式</label>
<input type="text" id="phonenumber" class="input " style="position:relative;left:7px;" />
</li>
</ul>
</div>
<div id="updateButton">
<input type="button" id="updateUserBtn" value="修改" style='font-size:20px' class="btn btn-add" />
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
- bootstrap--模态框
- bootstrap 模态框
- BootStrap模态框
- bootstrap模态框
- bootstrap模态框
- BootStrap 模态框
- Bootstrap 模态框
- Bootstrap模态框
- bootstrap模态框
- Bootstrap模态框
- BootStrap模态框
- bootstrap模态框
- bootstrap模态框
- Bootstrap模态框
- Bootstrap模态框
- bootstrap模态框
- bootstrap模态框
- bootstrap模态框
- Qt程序在windows下的发布
- Spring的事务隔离级别
- Java静态域与静态方法
- Myeclipse开发遇到错误:java.lang.OutOfMemoryError: PermGen space
- zabbix简介及安装
- BootStrap模态框
- mybatis学习一框架搭建
- Android 7.0 调用系统相机崩溃解决 android.os.FileUriException
- JAVA中的格式化输出
- 统计一个字符串中各个字符的百分比:
- 8月4日学习笔记
- BZOJ 2038 莫队 解题报告
- json 与 string 互转
- R语言学习-提取igraph的节点和边