<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>发票示例</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
.invoice {
width: 80%;
margin: 0 auto;
border: 1px solid #000;
padding: 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
}
.company-info {
font-size: 14px;
}
.invoice-info {
font-size: 14px;
text-align: right;
}
.invoice-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.invoice-table th, .invoice-table td {
border: 1px solid #000;
padding: 8px;
text-align: left;
}
.total {
margin-top: 20px;
text-align: right;
}
</style>
</head>
<body>
<div class="invoice">
<div class="header">
<div class="company-info">
<h2>公司名称</h2>
<p>地址:XX省XX市XX区XX街道XX号</p>
<p>电话:010-12345678</p>
<p>税号:123456789012345</p>
</div>
<div class="invoice-info">
<h2>发票</h2>
<p>发票号码:12345678</p>
<p>开票日期:2023年10月10日</p>
</div>
</div>
<table class="invoice-table">
<thead>
<tr>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>数量</th>
<th>单价</th>
<th>金额</th>
</tr>
</thead>
<tbody>
<tr>
<td>商品A</td>
<td>型号A</td>
<td>件</td>
<td>10</td>
<td>100.00</td>
<td>1000.00</td>
</tr>
<tr>
<td>商品B</td>
<td>型号B</td>
<td>件</td>
<td>5</td>
<td>200.00</td>
<td>1000.00</td>
</tr>
</tbody>
</table>
<div class="total">
<p>合计金额:2000.00元</p>
<p>大写金额:贰仟元整</p>
</div>
</div>
</body>
</html> 网友回复


