<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>費用明細</title> </head> <style> body { font-family: Arial, sans-serif; margin: 1cm; zoom: 1.5; } .container { width: 100%; height: 100%; max-width: 21cm; max-height: 29.7cm; word-wrap: break-word; } .header { position: relative; padding: 10px; } .header img { position: absolute; left:10px; top: 20%; transform: translateY(-50%); } .header h2 { font-size: 35px; text-align: center; font-weight: normal; margin: 0 auto 10px auto } .statistics { position: relative; padding: 30px 10px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } .statistics h3 { margin-top: 0; } .statistics table { width: 700px; } .statistics p { margin: 20px 0; } .total { display: flex; } .total-area { flex: 1; padding: 0 10px; } .total .total-area p { font-size: 1.2rem; padding: 0; } .total-box { width: 95%; height: 100px; display: flex; align-items: flex-start; justify-content: flex-start; padding: 20px; border: 1px solid #ccc; } .total-box .total-money { font-size: 40px; padding-right: 8px; } .warnTxt { font-size: larger; color: red; text-align: right; margin: 0 !important; padding: 0; } @page { size: A4; margin: 0; } .a4-page { page-break-before: always; } .br { border-spacing: 0px 20px; } </style> <body> {{bill}} </body> </html>