112
rated 0 times
[
114]
[
2]
/ answers: 1 / hits: 5113
/ 3 Years ago, sat, july 25, 2020, 12:00:00
I have a bootstrap modal which contains table, and table consist of multiple pages, when i print the modal it only prints the part of modal that is unscrolled, means it looks like on printing the page JS take the screenshot of modal window.
Code i tried:
@media print {
.modal-body {
width: auto;
height: auto;
overflow: visible !important;
}
body.modal-open {
visibility: hidden;
}
body.modal-open .modal .modal-header,
body.modal-open .modal .modal-body {
visibility: visible;
}
.modal-footer{
visibility:hidden;
}
.modal-header{
visibility:hidden;
}
}
This is the image i obtained after using jquery printThis library
More From » html