css进度条

1.定位left来实现
2.定位width来实现
3 进度背景可以用 background-image: linear-gradient(60deg, transparent 0rem, transparent 0.8rem, #4dafe2 0.8rem, #4dafe2 1.6rem, transparent 1.6rem, transparent 2.4rem, #4dafe2 2.4rem);修饰


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .pride-audio {
        width: 672px;
        height: 200px;
        background-color: #f9f9f9;
        border-radius: 16px;
        padding: 0 30px;
        box-sizing: border-box;
    }

    .pride-audio-title {
        height: 78px;
        line-height: 78px;
        font-size: 32px;
        color: #323232;
        white-space: nowrap;
        /* text-emphasis: none; */
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .pride-audio-subhead-title {
        color: #979797;
        font-size: 22px;
    }

    .pride-audio-content {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pride-audio-progress {
        width: 504px;
        height: 6px;
        background-color: #999;
        position: relative;

    }

    .pride-audio-progress-percent {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 10%;
        background-color: #03020c;

    }

    .pride-audio-progress-percent::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        margin-top: -5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #03020c;

    }

    .pride-audio-progress-time {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pride-audio-icon {
        width: 72px;
        height: 72px;

    }
</style>

<body>
    <div class="pride-audio">
        <div class="pride-audio-title">实时更新:全国现存确诊 新型肺炎实时更新:全国现存确诊 新型肺炎</div>
        <div class="pride-audio-subhead-title">来自好尔美健康管理语音版</div>
        <div class="pride-audio-content">
            <div class="pride-audio-progress">
                <div class="pride-audio-progress-percent"></div>
                <div class="pride-audio-progress-time">
                    <span>04:25</span> 16:45
                </div>
            </div>
            <img class="pride-audio-icon" src="./logo.png" alt="">
        </div>

    </div>
    <script>

    </script>
</body>

</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

web修理工

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值