js-table-print
Version:
一款智能打印插件,目标是处理表格的打印,实现自定义页头、页尾、水印、分页方式等
44 lines (32 loc) • 464 B
CSS
table *{
position: relative;
box-sizing: border-box;
}
table{
width:100%;
border:2px solid black;
border-collapse:collapse;
border-spacing:0;
}
table+table{
border-top: 0;
}
th,
td
{
padding:10px;
border-bottom:1px solid black;
border-right:1px solid black;
}
th:last-child ,
td:last-child {
border-right:0;
}
tr:last-child td{
border-bottom: 0;
}
.title {
text-align: center;
padding: 20px;
font-size: 24px;
}