代码 一个收银台的HTML

2025-01-17 16:15:32 +0800 CST views 639

该文本描述了一个收银台的HTML结构,包含了页面的样式和内容。页面展示了商品编码、订单金额、商品编号和创建时间,并提供了微信支付和支付宝支付的按钮。整体设计简洁,使用了响应式布局,适合移动设备浏览。

<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <title>收银台</title>
    <style>
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
        }

        .header {
            background-color: #34c759;
            height: 150px;
            position: relative;
        }

        .content {
            position: absolute;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .content-header {
            display: flex;
            align-items: center;
            padding: 15px;
            /*background-color: #34c759;*/
            /*color: #fff;*/
            text-align: center;
            justify-content: center;
            font-size: 30px;
        }

        .content-header img {
            width: 24px;
            height: 24px;
            margin-right: 10px;
        }

        .content-header span {
            font-size: 30px;
            font-weight: bold;
        }

        .content-body {
            padding: 15px;
        }

        .content-body .row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 14px;
            color: #333;
        }

        .content-body .row .value {
            font-weight: bold;
        }

        .content-body .row .value.red {
            color: red;
        }

        .pay-button {
            display: block;
            width: 90%;
            margin: 20px auto;
            padding: 15px;
            text-align: center;
            background-color: #34c759;
            color: #fff;
            font-size: 16px;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }

        .pay-button:hover {
            background-color: #2da94e;
        }
        .alipay{
                background-color: #5e72f5;
        }
    </style>
</head>
<body>
    <div class="header"></div>
    <div class="content">
        <div class="content-header">
            
            <span>收银台</span>
        </div>
        <div class="content-body">
            <div class="row">
                <span>商品编码:</span>
                <span class="value">dfksdkfsd</span>
            </div>
            <div class="row">
                <span>订单金额:</span>
                <span class="value red">¥ 0.01</span>
            </div>
            <div class="row">
                <span>商品编号:</span>
                <span class="value">29KN8QHdpkE9miToFnhe</span>
            </div>
            <div class="row">
                <span>创建时间:</span>
                <span class="value">2025-01-17 15:49:03</span>
            </div>
        </div>
        <button class="pay-button">微信支付</button>
        <button class="pay-button alipay">支付宝支付</button>
    </div>
</body>
</html>
复制全文 生成海报 电子商务 网页设计 支付系统

推荐文章

为什么大厂也无法避免写出Bug?
2024-11-19 10:03:23 +0800 CST
禁止调试前端页面代码
2024-11-19 02:17:33 +0800 CST
Vue3中如何使用计算属性?
2024-11-18 10:18:12 +0800 CST
基于Webman + Vue3中后台框架SaiAdmin
2024-11-19 09:47:53 +0800 CST
mysql删除重复数据
2024-11-19 03:19:52 +0800 CST
实用MySQL函数
2024-11-19 03:00:12 +0800 CST
对多个数组或多维数组进行排序
2024-11-17 05:10:28 +0800 CST
JavaScript设计模式:组合模式
2024-11-18 11:14:46 +0800 CST
向满屏的 Import 语句说再见!
2024-11-18 12:20:51 +0800 CST
php获取当前域名
2024-11-18 00:12:48 +0800 CST
纯CSS绘制iPhoneX的外观
2024-11-19 06:39:43 +0800 CST
php strpos查找字符串性能对比
2024-11-19 08:15:16 +0800 CST
Nginx 防盗链配置
2024-11-19 07:52:58 +0800 CST
Redis和Memcached有什么区别?
2024-11-18 17:57:13 +0800 CST
如何在 Vue 3 中使用 TypeScript?
2024-11-18 22:30:18 +0800 CST
CSS 媒体查询
2024-11-18 13:42:46 +0800 CST
markdowns滚动事件
2024-11-19 10:07:32 +0800 CST
robots.txt 的写法及用法
2024-11-19 01:44:21 +0800 CST
全栈工程师的技术栈
2024-11-19 10:13:20 +0800 CST
MyLib5,一个Python中非常有用的库
2024-11-18 12:50:13 +0800 CST
详解 Nginx 的 `sub_filter` 指令
2024-11-19 02:09:49 +0800 CST
程序员茄子在线接单