Bootstrap modal appearing under background

前端 未结 30 1310
离开以前
离开以前 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:32

    This problem can often be experienced when using things like gradients in CSS for things like backgrounds or even accordion headers.

    Unfortunately, modifying or overriding core Bootstrap CSS is undesirable, and can lead to unwanted side effects. The least intrusive approach is to add data-backdrop="false" but you may notice that the fade effect no longer works as expected.

    After following recent releases of Bootstrap, version 3.3.5 seems to resolve this issue with no unwanted side effects.

    Download: https://github.com/twbs/bootstrap/releases/download/v3.3.5/bootstrap-3.3.5-dist.zip

    Be sure to include the CSS files and JavaScript files from 3.3.5.

提交回复
热议问题