05购物车静态

<!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>Document</title>
    <style>
        .container {
            width: 450px;
            padding: 10px;
            border: 1px solid #ccc;
            margin: 20px auto;
            line-height: 30px;
        }

        .title {
            font-size: 24px;
            color: burlywood;
            font-weight: 800;

        }

        .container table {
            color: #333;
            font-size: 12px;
            margin: 10px 0px;
        }

        .head {
            background-color: aquamarine;
        }

        tr img {
            width: 50px;
            height: 30px;
            display: block;
            float: left;
            margin: 5px;
        }

        .container .num {
            width: 50px;
        }

        .del .go {
            cursor: pointer;
        }

        .total {
            font-size: 24px;
            font-family: 900;
            color: red;
            margin: 10px auto;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="title">
            全部商品
        </div>
        <table>
            <tr class="head">
                <td>
                    <input type="checkbox"> <span>全选</span>
                </td>
                <td>
                    商品
                </td>
                <td>
                    单价
                </td>
                <td>
                    数量
                </td>
                <td>
                    小计
                </td>
                <td>
                    操作
                </td>
            </tr>

            <tr data-id="">
                <td>
                    <input type="checkbox" checked>
                </td>
                <td>
                    <img src="./imgs/a.jpg" alt="">
                    <p>东西1</p>
                </td>
                <td>
                    ¥100
                </td>
                <td>
                    <span>-</span>
                    <input type="number" class="num" value="200">
                    <span>+</span>
                </td>
                <td>
                    小计¥100
                </td>
                <td>
                    <p class="del">删除</p>
                </td>
            </tr>
        </table>
        <div>
            <span>总价:</span>
            <div class="total">100</div>
            <div class="go">去结算</div>
        </div>
    </div>
    <script>

    </script>
</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值