bootstrap modal弹窗 点击窗口中的按钮不消失

[html]  view plain  copy
  1. <div class="modal fade bs-example-modal-sm2" tabindex="-1" role="dialog"  
  2. aria-hidden="true" data-backdrop="static">  
  3.     <div class="table-responsive">  
  4.         <div class="modal-dialog modal-sm2">  
  5.             <div class="modal-content">  
  6.                 <div class="modal-header">  
  7.                     <button type="button" class="close" data-dismiss="modal" aria-label="Close">  
  8.                         <span aria-hidden="true">  
  9.                             ×  
  10.                         </span>  
  11.                     </button>  
  12.                     <h4 class="modal-title" id="myModalLabel2">  
  13.                         <label data-locale="i18n_wasteQuantity">  
  14.                             测试  
  15.                         </label>  
  16.                     </h4>  
  17.                 </div>  
  18.                 <div class="modal-body">  
  19.                     <div class="table-responsive">  
  20.                         <table class="table table-striped table-bordered">  
  21.                             <tbody id="wasteStatisticsContent">  
  22.                             </tbody>  
  23.                         </table>  
  24.                     </div>  
  25.                     <div class="modal-footer">  
  26.                         <button type="button" class="btn btn-default" data-dismiss="modal">  
  27.                             <label data-locale="i18n_cancel">  
  28.                             </label>  
  29.                         </button>  
  30.                         <button type="button" class="btn btn-primary" data-dismiss="modal">  
  31.                             <label data-locale="i18n_sure" onclick="saveStrWasteNum()">  
  32.                             </label>  
  33.                         </button>  
  34.                     </div>  
  35.                 </div>  
  36.             </div>  
  37.         </div>  
  38.     </div>  
  39. </div>  
注意:添加属性
[html]  view plain  copy
  1. data-backdrop="static"  


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值