Bootstrap modal appearing under background

前端 未结 30 1289
离开以前
离开以前 2020-11-22 17:09

I have used the code for my modal straight from the Bootstrap example, and have included only the bootstrap.js (and not bootstrap-modal.js). However, my modal is appearing u

30条回答
  •  耶瑟儿~
    2020-11-22 17:17

    what i find is that:

    in bootstrap 3.3.0 it's not right,but when in bootstrap 3.3.5 it's right.let's see the code. 3.3.0:

    this.$backdrop = $('

    3.3.5

      this.$backdrop = $(document.createElement('div'))
            .addClass('modal-backdrop ' + animate)
            .appendTo(this.$body)
    

提交回复
热议问题