Bootstrap Modal popping up but has a “tinted” page and can't interact

后端 未结 9 1648
南笙
南笙 2020-12-08 05:18

I am using bootstrap to set up a modal popup. When a button is clicked, the modal dialog opens, but the entire page is slightly \"tinted\", and I can\'t interact with the m

相关标签:
9条回答
  • 2020-12-08 05:46

    I know this is an old question, but I had a similar issue and in case anyone has the same, here is what worked for me. Make sure you include the modal css file!

    0 讨论(0)
  • 2020-12-08 05:49

    If you're using ASP.NET, make sure you place the modal's div block inside a <asp:Content ContentPlaceHolderID="BottomOfForm" runat="server">.

    0 讨论(0)
  • 2020-12-08 05:51

    If you want to open the print dialog on button present on modal itself and after printing your webpage is not accessible then it will definitely work for you rather then the window.print().

    Use below code. First of all you need to close the modal dialog and open the print dialog after few seconds.

    setTimeout(function() { printnow('printdiv', 10); }, 500);
    
    0 讨论(0)
提交回复
热议问题