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

后端 未结 9 1759
南笙
南笙 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条回答
  •  -上瘾入骨i
    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);
    

提交回复
热议问题