My Bootstrap table style color not working on window.print()
preview.
This is the result that the table style not work : https://i.stack.imgur.com/eyxjl.jpg
This is my code
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="table-info">NIP</th>
<th class="table-info">Nama</th>
<th class="table-info">Hak Akses</th>
<th class="table-info">Kelas Mengajar</th>
</tr>
</thead>
<tbody>
<?php
$show = mysqli_query($conn, "SELECT * FROM user");
while ($row = mysqli_fetch_assoc($show)) {
echo "
<tr>
<td>$row[nip]</td>
<td>$row[nama]</td>
<td>$row[role]</td>
<td>$row[kelas]</td>
</tr>
";
}
?>
</tbody>
</table>
I want the result window.print()
the function is the same as the page I created that contains a table with bootstrap styles.