苹果手机效果图(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>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 440px;
            height: 610px;
            margin: 100px auto;
        }

        .box img {
            width: 100%;

        }

        .details {
            box-sizing: border-box;
            width: 100%;
            height: 130px;
            padding: 0px 15px 0px 15px;
            /* background-color: rgb(224, 201, 201); */
        }

        .details p {
            margin-bottom: 20px;
        }

        .details .mo1 {
            font-size: 24px;
            font-weight: 700;
            color: red;
        }

        .details .mo2 {
            font-size: 16px;
            color: grey;
            text-decoration: line-through;
        }

        .bar {
            width: 100%;
            height: 20px;
            color: #333;
            font-size: 14px;
            vertical-align: middle;
        }

        .bar_in {
            display: inline-block;
            width: 140px;
            height: 10px;
            border: 1px solid red;
            border-radius: 7px;
            background-color: #fff;
            margin-left: 5px;
        }

        .bar_in .b {
            width: 87%;
            height: 100%;
            background-color: red;
            border-top-left-radius: 7px;
            border-bottom-left-radius: 7px;
        }

        .details .bar span {
            color: red;
        }

        .box button {
            width: 100%;
            height: 70px;
            background-color: #df0021;
            color: #fff;
            font-size: 32px;
            border: 1px solid #df0021;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="images/phone.webp">
        <div class="details">
            <p>Apple iPhone 13 (A2634) 512GB 午夜色 支持移动联通电信5G 双卡双待手机</p>
            <span class="mo1">¥7999</span>
            <span class="mo2">¥8988</span>
            <div class="bar">
                已售<span>87%</span>
                <div class="bar_in">
                    <div class="b"></div>
                </div>
                剩余<span>29</span>件
            </div>
        </div>
        <button>立即抢购</button>
    </div>
</body>

</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值