Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140705

Bootstrap Table Style Not Working With window.print();

$
0
0

My Bootstrap table style color not working on window.print() preview.

This is the result that the table style not work : https://imgur.com/a/dQ7bHgN

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.


Viewing all articles
Browse latest Browse all 140705

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>