html+css 练笔:普通发票电子版

 

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>电子发票(普通发票)</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      span {
        font-size: 14px;
      }
      ul,
      ul li {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      body {
        font-family: "KaiTi";
        font-weight: 500;
      }

      label {
        color: #902020;
      }

      .rmb {
        font-family: Arial, Helvetica, sans-serif;
      }

      .c-red {
        color: #ff3133;
      }

      .c-black {
        color: #000;
      }

      .f-big {
        font-size: 16px;
        font-family: "Courier New", monospace;
      }

      .f-small {
        font-size: 12px;
      }
      .invoiceMain {
        box-sizing: border-box;
        width: 794px;
        margin: 0 auto;
        font-size: 14px;
        color: #000;
        padding: 20px;
        border: 1px solid #000;
      }

      .invoiceHeader {
        display: flex;
        justify-content: space-between;
      }

      .headerLeft {
        width: 300px;
        display: flex;
      }

      .headerLeft div:nth-child(1) {
        line-height: 26px;
      }

      .headerLeft div p {
        line-height: 26px;
      }

      .headerLeft div:nth-child(2) p.c-red {
        width: 170px;
        height: 46px;
        text-align: center;
        line-height: 42px;
        font-size: 24px;
        letter-spacing: 2px;
      }

      .headerLeft div p.c span {
        font-size: 18px;
        letter-spacing: 1px;
      }

      .headerRight {
        margin-top: 10px;
        padding-left: 28px;
        width: 316px;
      }

      .headerRight p {
        text-align: left;
        margin-bottom: 11px;
      }

      .headerMiddle {
        text-align: center;
        width: 350px;
      }

      .headerMiddle h1 {
        font-size: 26px;
        font-weight: 500;
        color: #902020;
        padding-bottom: 10px;
      }
      .total .rmb {
        font-size: 14px;
        font-family: "Courier New", Courier, monospace;
      }

      .line {
        height: 2px;
        border-top: #5f3f3f 1px solid;
        border-bottom: #000000 1px solid;
        margin-bottom: 40px;
      }
      .invoiceBody {
        border: 1px solid #902020;
      }

      .userInfo {
        width: 100%;
        display: flex;
        align-items: center;
        height: 83px;
        border-bottom: 1px solid #902020;
      }

      .userInfo ul {
        width: 50%;
        margin: 0 5px;
        padding: 0;
      }

      .userInfo ul li {
        line-height: 24px;
      }

      .userInfo ul li:nth-child(2) .f-big {
        letter-spacing: 2px;
      }

      .userInfo ul li:nth-child(3) {
        position: relative;
      }
      .buy {
        width: 20px;
        border-right: 1px solid #902020;
        padding: 0 5px;
        text-align: center;
        height: 100%;
        display: flex;
        align-items: center;
        color: #902020;
        line-height: 14px;
      }
      .sell {
        width: 20px;
        border-right: 1px solid #902020;
        border-left: 1px solid #902020;
        padding: 0 5px;
        text-align: center;
        height: 100%;
        display: flex;
        align-items: center;
        color: #902020;
        line-height: 14px;
      }
      .GoodsTable {
        height: 166px;
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
      }

      .GoodsTable td {
        color: #902020;
        padding: 0 4px;
      }

      .invoice-list {
        height: 126px;
        overflow: hidden;
        border-right: 1px solid #902020;
      }
      .invoice-list td {
        color: #000;
        vertical-align: middle;
      }
      .invoice-list td:nth-child(3) {
        text-align: center;
      }
      .invoice-list td:nth-child(4),
      .invoice-list td:nth-child(5),
      .invoice-list td:nth-child(6),
      .invoice-list td:nth-child(7),
      .invoice-list td:nth-child(8),
      .total td:nth-child(5),
      .total td:nth-child(6),
      .total td:nth-child(7),
      .total td:nth-child(8) {
        text-align: right;
      }

      .invoice-list tr td {
        height: 21px;
      }

      .GoodsTable thead tr {
        height: 24px;
        text-align: center;
      }

      .GoodsTotal {
        height: 34px;
      }

      .GoodsTotal {
        border-top: 1px solid #902020;
        border-bottom: 1px solid #902020;
      }

      .total td {
        color: #000;
      }

      .total td:nth-child(1) {
        text-align: center;
        color: #902020;
      }

      .total td:nth-child(6),
      .total td:nth-child(8) {
        font-size: 18px;
      }
      .remark {
        display: flex;
        border-right: 1px solid #765954;
        height: 75px;
      }
      .remark-title {
        width: 20px;
        height: 100%;
        border-right: 1px solid #902020;
        padding: 0 5px;
        text-align: center;
        display: flex;
        align-items: center;
        color: #902020;
        line-height: 14px;
      }
      .remark-content {
        padding: 10px;
        word-break: break-all;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow-y: hidden;
      }
      .invoiceFooter {
        padding-top: 20px;
        padding-left: 60px;
        display: flex;
        justify-content: space-between;
      }

      .invoiceFooter li {
        width: 25%;
      }
    </style>
  </head>

  <body>
    <div class="invoiceMain">
      <div class="invoiceHeader">
        <div class="headerLeft">
          <div style="margin-right: 5px">
            <!-- 二维码占位 -->
            <!-- <img src="qrcode.png" width="75" height="75" alt="" /> -->
          </div>
          <div>
            <!-- 标签占位 -->
            <!-- <img src="qrcode.png" width="105" height="75" alt="" /> -->
          </div>
        </div>
        <div class="headerMiddle">
          <h1>电子发票(普通发票)</h1>
          <div class="line"></div>
        </div>
        <div class="headerRight">
          <p>
            <label>发票号码:</label>
            <!-- <span>35891172</span> -->
          </p>
          <p>
            <label>开票日期:</label>
            <!-- <span>2021年06月07日</span> -->
          </p>
        </div>
      </div>
      <div class="invoiceBody">
        <div class="userInfo">
          <div class="buy">购买方信息</div>
          <ul>
            <li>
              <label>名称:</label>
              <!-- <span></span> -->
            </li>
            <li>
              <label>统一社会信用代码/纳税人识别号:</label>
              <!-- <span class="f-big"></span> -->
            </li>
          </ul>
          <div class="sell">销售方信息</div>
          <ul>
            <li>
              <label>名称:</label>
              <!-- <span></span> -->
            </li>
            <li>
              <label>统一社会信用代码/纳税人识别号:</label>
              <!-- <span class="f-big"></span> -->
            </li>
          </ul>
        </div>
        <div>
          <table class="GoodsTable" cellpadding="0" cellspacing="0">
            <thead>
              <tr>
                <td style="width: 24%">项目名称</td>
                <td style="width: 10%; text-align: left">规格型号</td>
                <td style="width: 7%">单位</td>
                <td style="width: 10%; text-align: right">数 量</td>
                <td style="width: 10%; text-align: right">单 价</td>
                <td style="width: 16%; text-align: right">金 额</td>
                <td style="width: 12%">税率/征收率</td>
                <td style="width: 16%; text-align: right; border-right: none">
                  税 额
                </td>
              </tr>
            </thead>
            <tbody class="invoice-list" style="height: 126px">
              <!-- 表格数据-遍历 -->
              <tr>
                <!-- <td><span>打车费</span></td>
                <td><span>网约车</span></td>
                <td><span>个</span></td>
                <td><span>5</span></td>
                <td><span>2.364</span></td>
                <td><span>11.82</span></td>
                <td><span>1%</span></td>
                <td style="border-right: 1px solid #765954">
                  <span>1.18</span>
                </td> -->
              </tr>
            </tbody>
            <tfoot style="border-right: 1px solid #902020">
              <tr class="total">
                <td>合 &nbsp;&nbsp;&nbsp;计</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <!-- <td><span class="rmb">¥</span>13000.00</td> -->
                <td></td>
                <!-- <td><span class="rmb">¥</span>13000.00</td> -->
              </tr>
              <tr class="GoodsTotal">
                <td style="text-align: center; border-right: 1px solid #902020">
                  价税合计(大写)
                </td>
                <td colspan="7">
                  <div style="width: 100%; display: flex">
                    <div type="text" style="width: 60%">
                      <!-- <span class="c-black">壹万叁仟元整</span> -->
                    </div>

                    <div type="text" style="width: 30%">
                      (小写)
                      <span class="c-black">
                        <!-- <span class="rmb">¥</span><span>13000.00</span> -->
                      </span>
                    </div>
                  </div>
                </td>
              </tr>
            </tfoot>
          </table>
        </div>
        <div class="remark">
          <div class="remark-title">备注</div>
          <!-- <div class="remark-content">
            一行备注一行备注一行备注一行备注一行备注
          </div> -->
        </div>
      </div>
      <ul class="invoiceFooter">
        <li>
          <label>开票人:</label>
          <!-- <span>路人甲</span> -->
        </li>
      </ul>
    </div>
  </body>
</html>

  • 11
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值