zoukankan      html  css  js  c++  java
  • zbb20171221 bootstrap 模态窗口

    1、BootStrap 模态框禁用空白处点击关闭

    模态框为信息编辑窗口,涉及好多内容,填了半天,若一不小心点了空白处.....

    $('#myModal').modal({backdrop: 'static', keyboard: false});

    backdrop:static时,空白处不关闭.

    keyboard:false时,esc键盘不关闭.

    上述代码用以打开模态框

    在最外层的盒子加个data-backdrop="static"就可以了

    2、滚动条

    <!-- 模态框(Modal)自选人工智能 -->
                                    <div class="modal fade" id="T_BASIC_DATA_AI_MODEL"
                                        data-backdrop="static" tabindex="-1" role="dialog"
                                        aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-dialog" style=" 80%; height: 80%">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal"
                                                        aria-hidden="true">&times;</button>
                                                    <h7 class="modal-title" id="myModalLabel">自选人工智能</h7>
                                                </div>

                                                <div class="modal-body">

                  //-----------------------------------------滚动条-滚动条-滚动条-滚动条-滚动条-滚动条
                                                    <div class="row pre-scrollable">

                                                        <table class="table table-striped">
                                                            <thead>
                                                                <tr>
                                                                    <th>序号</th>
                                                                    <th>日期</th>
                                                                    <th>代码</th>
                                                                    <th>名称</th>
                                                                    <th>涨幅</th>
                                                                    <th>涨速</th>
                                                                    <th>rxg</th>
                                                                    <th>5逆</th>
                                                                    <th>现手</th>
                                                                    <th>总额</th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <tr th:each="obj : ${aiList}">
                                                                    <td th:text="${obj.id}">-</td>

                                                                    <td
                                                                        th:text="${#dates.format(obj.contentADate, 'dd/MMM/yyyy')}">-</td>
                                                                    <td th:text="${obj.contentB}">-</td>
                                                                    <td th:text="${obj.contentC}">-</td>
                                                                    <td th:text="${obj.contentD}">-</td>
                                                                    <td th:text="${obj.contentE}">-</td>
                                                                    <td th:text="${obj.contentF}">-</td>
                                                                    <td th:text="${obj.contentG}">-</td>
                                                                    <td th:text="${obj.contentH}">-</td>
                                                                    <td th:text="${obj.contentI}">-</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>

                                                    </div>
                                                </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-primary"
                                                        data-dismiss="modal">确定</button>
                                                    <button type="button" class="btn btn-default"
                                                        data-dismiss="modal">关闭</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

  • 相关阅读:
    【Azure Redis 缓存】Azure Redis 功能性讨论二
    【Azure Developer】如何用Microsoft Graph API管理AAD Application里面的Permissions
    【Azure 环境】通过Python SDK收集所有订阅简略信息,例如订阅id 名称, 资源组及组内资源信息等,如何给Python应用赋予相应的权限才能获取到信息呢?
    【Azure 应用服务】App Service与APIM同时集成到同一个虚拟网络后,如何通过内网访问内部VNET的APIM呢?
    【Azure 云服务】如何从Azure Cloud Service中获取项目的部署文件
    【Azure Redis 缓存】Azure Redis 异常
    【Azure 微服务】基于已经存在的虚拟网络(VNET)及子网创建新的Service Fabric并且为所有节点配置自定义DNS服务
    【Azure Redis 缓存】遇见Azure Redis不能创建成功的问题:至少一个资源部署操作失败,因为 Microsoft.Cache 资源提供程序未注册。
    【Azure Redis 缓存】如何得知Azure Redis服务有更新行为?
    【Azure API 管理】在 Azure API 管理中使用 OAuth 2.0 授权和 Azure AD 保护 Web API 后端,在请求中携带Token访问后报401的错误
  • 原文地址:https://www.cnblogs.com/super-admin/p/8080719.html
Copyright © 2011-2022 走看看