muzi0307 2021-11-13 16:26 采纳率: 100%
浏览 694
已结题

css盒子模型制作一个如下图所示的播放器图标

img

  • 写回答

2条回答 默认 最新

  • 落落Plus 2021-11-13 16:32
    关注
    <div class="card">
            <div class="bg">
                <div class="video">
                    <div class="play">
                        <span></span>
                    </div>
                </div>
            </div>
        </div>
    
     .card {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 240px;
            height: 240px;
            background-image: linear-gradient(purple, #eee, #482631);
        }
        .bg {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 180px;
            height: 180px;
            background-image: linear-gradient(to bottom right, purple, #333);
            border-radius: 15px;
        }
        .video {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 120px;
            height: 70px;
            background-image: linear-gradient(to bottom right, gold, #999);
            border: 10px solid #000;
            border-radius: 15px;
            overflow: hidden;
        }
        .play {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #fff;
            overflow: hidden;
        }
        span {
            border: 10px solid #fff;
            margin: 10px 0 10px 15px;
            border-left-color: #000;
        }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 11月21日
  • 已采纳回答 11月13日
  • 创建了问题 11月13日

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效