Card实现

效果图:
在这里插入图片描述

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="./reset.css">
    <link rel="stylesheet" href="./font/css/all.css">
  <style>
      .outer{
          width: 200px;
          margin: 100px auto;
          /* 阴影 */
          box-shadow: 0 0 10px rgba(0,0,0,0.3);
      }
      .img-wrapper img{
          width: 100%;
          /* 取消基线对准 */
          vertical-align: bottom;
      }
      .info{
          padding: 0px 18px;
           color:#717171;
           font-size: 14px;
      }
      .info .title{
          font-size: 18px;
          margin:13px 0 15px 0;
      }
      .info .category{
          margin-left: 4px;
          margin-right: 7px;
      }
      .info .intro{
          margin: 18px 4px;
          line-height: 20px;
      }
      .star-wrapper{
          height: 45px;
          line-height: 45px;
          border-top: 1px solid #e9e9e9;
          color: #ddd;
          margin: 0px 16px;
      }
      .star-wrapper .star{
          float: left;
      }
      .star-wrapper .light{
          color: rgb(204, 204, 88);
      }
      .star-wrapper .weibo{
          float: right;
      }

  </style>
</head>
<body>
    <div class="outer">
        <div class="img-wrapper">
             <img src="./IMG/9.png" alt="">
        </div>
        <div class="info">
            <h2 class="title">
                动画电影
            </h2>
            <h3 class="category">
                <i class="fas fa-map-marker-alt"></i>
                动画
            </h3>
            <p class="intro">这是一部迪士尼的动画电影,很好看</p>


        </div>
        <!-- 评分 -->
        <div class="star-wrapper">
            <ul class="star">
                <li class="fas fa-star light"></li>
                <li class="fas fa-star light"></li>
                <li class="fas fa-star"></li>
                <li class="fas fa-star"></li>
            </ul>
            <ul class="weibo">
            <li class="fab fa-weibo"></li>
            </ul>

        </div>

    </div>
    
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值