答案 0 :(得分:1)
@media print{
table td:last-child, th:last-child{
display:none!important;
}
}
$("#print").on("click",function(){
window.print();
});
td{border:solid 1px #000;font-size:25px;}
@media print {
table td:last-child{
display:none;
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table id="table">
<tr>
<td>test </td>
<td>test </td>
<td><input type="button" value="delete"/></td>
</tr>
<tr>
<td>test </td>
<td>test </td>
<td><input type="button" value="delete"/></td>
</tr>
</table>
<br>
<input type="button" id="print" value="print"/>