Twitter Bootstrap: Modal popup won't fade

后端 未结 2 1538
醉梦人生
醉梦人生 2021-01-22 02:51

I have the following markup using a twitter bootstrap modal plugin:

    
    <
2条回答
  •  生来不讨喜
    2021-01-22 03:17

    First place your modal pop outside the body tag.After that comment or remove display property from class modal-backdrop in bootstrap.css as i have done below

    .

    modal-backdrop {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1040;
      background-color: #000;
      /*display:none;*/

    now write some jquery as i have mentioned below:
    

    $("#Yourid").click(function() {
    
      $('.modal-backdrop fade in').attr("display", "block");
    });

提交回复
热议问题