我想打印我的页面,其中有表格。当我打印它时,它总是更改为引导程序默认颜色。我正在使用 ctrl+p / cmd+p 进行打印。我正在使用引导程序 4 和 laravel 5.7
我试过用!important;
还是不行
我的 CSS
<style media="screen">
@media print{
.table thead tr td,.table tbody tr td {
border: 1px solid #000000!important;
}
}
</style>
我的桌子
<table class="col-12 table table-bordered table-sm" >
<thead class="thead-light">
<tr>
<th>Description</th>
<th>Quantity</th>
<th>Unit Price (IDR)</th>
<th>Amount (IDR)</th>
</tr>
</thead>
@php
$total=0;
@endphp
@foreach($ra->sale->details as $items)
<tr>
<td>{{ $items->good->name }}</td>
<td>{{ $items->qty }} pcs</td>
<td>{{ number_format($items->units,0,',','.') }}</td>
<td>{{ number_format($items->total,0,',','.') }}</td>
</tr>
@php
$total += $items->total;
@endphp
@endforeach
</table>