复杂图文组合

<!DOCTYPE html>

<html lang="zh-CN">

<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>

        *{

            padding: 0;

            margin: 0;

        }

        .box {

            width: 750px;

            height: 400px;

            border: 1px solid gray;

           

        }

        .box1 {

            width: 750px;

            height: 200px;

       

            border-bottom: 1px solid gray;

        }

   

        .content {

            width: 468px;

            height: 180px;

            float: left;

            margin-top: 30px;

         

        }

        .content p {

            color: #808080;

            font-size: 14px;

            height: 70px;

            line-height: 25px;

            margin-top: 10px;

           /* display: -webkit-box;

            -webkit-box-orient: vertical;

            -webkit-line-clamp: 3;  */

            overflow: hidden;

       

        }

        .box2 {

            width: 60px;

            float: left;

        }

        .content .box2 p{

            color: red;

            font-size: 12px;

            float: left;

        }

        .content .box2 img {

             width: 15px;

             height: 15px;

             float: left;

             margin-top: 15px;

             margin-right: 5px;

        }

        .box3 {

            float: left;

            margin-right: 15px

           

        }

        .box3 p {

            font-size: 12px;

        }

        .box4 {

            width: 60px;

            float: left;

        }

        .box4  img {

            width: 15px;

            height: 15px;

            float: left;

            margin-top: 15px;

            margin-right: 5px;

        }

        .box4 p {

            font-size: 12px;

            float: left;

        }

        .box5 {

            width: 60px;

            float: left;

        }

        .box5  img {

            width: 15px;

            height: 15px;

            float: left;

            margin-top: 15px;

            margin-right: 5px;

        }

        .box5 p {

            font-size: 12px;

            float: left;

        }

        .box6 {

            width: 50px;

            float: left;

        }

        .box6  img {

            width: 15px;

            height: 15px;

            float: left;

            margin-top: 15px;

            margin-right: 5px;

        }

        .box6 p {

            font-size: 12px;

            float: left;

        }

        .img1 {

            float: right;

            width: 200px;

            height: 120px;

            margin-top: 30px;

            margin-right: 30px;

        }

    </style>

</head>

<body>

    <div class="box">

        <div class="box1">

            <div class="content">

            <h3>成本太高</h3>

            <p>闺蜜结婚二十年了,孩子今年去考上了一所理想的大学。她跟她老公一直感情不和,都分居十年了,只不过还在一个屋檐下生活。很多次,她跟我抱怨说,老公...</p>

           <div class="box2">

               <img src="./work1/img/zs.png" alt="">

                <p>59.8</p>

           </div>

           <div class="box3">

               <p>尉迟小隐</p>

           </div>

           <div class="box4">

               <img src="./work1/img/pl.png" alt="">

               <p>119</p>

           </div>

           <div class="box5">

               <img src="./work1/img/zan.png" alt="">

               <p>304</p>

           </div>

           <div class="box6">

               <img src="./work1/img/s.png" alt="">

               <p>2</p>

           </div>

           

        </div>

        <img class="img1" src="./work1/img/1.jpg" alt="">

        </div>

        <div class="box1">

            <div class="content">

            <h3>不写就没钱</h3>

            <p>网易号今天提现了,599.35元。这应该是我一个多月没写文,却还能提现的最后一笔收益了。病中,确实不屑太累,等身体好了子啊说吧,有时想想,去...</p>

           <div class="box2">

               <img src="./work1/img/zs.png" alt="">

                <p>9232</p>

           </div>

           <div class="box3">

               <p>牛牛平常</p>

           </div>

           <div class="box4">

               <img src="./work1/img/pl.png" alt="">

               <p>200</p>

           </div>

           <div class="box5">

               <img src="./work1/img/zan.png" alt="">

               <p>1047</p>

           </div>

           <div class="box6">

               <img src="./work1/img/s.png" alt="">

               <p>20</p>

           </div>

           

        </div>

        <img class="img1" src="./work1/img/2.jpg" alt="">

        </div>





 

    </div>

</body>

</html>

 

<!DOCTYPE html>

<html lang="zh-CN">

<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>

        * {

            margin: 0;

            padding: 0;

        }

        .box {

            width: 750px;

            height: 300px;

            padding: 30px ;

            border: 1px solid gray;

        }

        .box .box1 {

            /* width: 750px; */

            height: 120px;

            margin-top: 20px;

        }

        .box .box1 img {

            width: 200px;

            height: 120px;

            float: left;

        }

        .box .box1 p {

            float: left;

            width: 480px;

            height: 120px;

            margin-left: 20px;

            line-height: 30px;

            font-weight:500 ;

        }

        .box22 {

            width: 90px;

            height: 40px;

            line-height: 40px;

            float: left;

            background-color:#e7efff;

            margin-top: 20px;

            border-radius: 5px;

            margin-right: 5px;

           

        }

        .box2 img {

            width: 13px;

            height: 18px;

            float: left;

            margin-left: 5px;

            margin-top: 12px;

        }

        .box22 p {

            font-size: 14px;

            color: #0066fb;

            float: left;

            margin-left: 10px;

            font-weight: 700;

        }

     .box222 {

         width: 40px;

         height: 40px;

         border-radius:5px;

         background-color: #e7efff;

         float: left;

         margin-top: 20px;

     }

     .box222 img {

         margin-left: 15px;

     }

     .box3 {

            width: 90px;

            float: left;

            margin-top: 20px;

            margin-left: 20px;

           

            line-height: 35px;

        }

        .box3  img {

            width: 20px;

            height: 20px;

            float: left;

            margin-top: 7px;

            margin-right: 5px;

        }

        .box3 p {

            font-size: 12px;

            float: left;

            font-size: 14px;

            color: gray;

           

         

        }

        .box4 {

            width: 90px;

            float: left;

            margin-top: 20px;

            margin-left: 20px;

         

            line-height: 35px;

        }

        .box4  img {

            width: 20px;

            height: 20px;

            float: left;

            margin-top: 7px;

            margin-right: 5px;

        }

        .box4 p {

            font-size: 12px;

            float: left;

            font-size: 14px;

            color: gray;

           

         

        }

        .box5 {

            width: 90px;

            float: left;

            margin-top: 20px;

            margin-left: 20px;

           

            line-height: 35px;

        }

        .box5  img {

            width: 20px;

            height: 20px;

            float: left;

            margin-top: 7px;

            margin-right: 5px;

        }

        .box5 p {

            font-size: 12px;

            float: left;

            font-size: 14px;

            color: gray;

           

         

        }

        .box6 {

            width: 90px;

            float: left;

            margin-top: 20px;

            margin-left: 20px;

         

         

        }

        .box6  img {

            width: 30px;

            height: 30px;

            float: left;

            margin-top: 5px;

            margin-right: 5px;

        }

   

       

   

    </style>

</head>

<body>

    <div class="box">

        <h3>春天,五花肉和香椿是天生一对,煮熟了切片,简单拌一拌可真香啊

        </h3>

        <div class="box1">

            <img src="./work2/img/tu.jpg" alt="">

            <p>市井觅食记:春季,有不少的“限定”食材,是其他季节吃不到的,其中香椿就是最受关注的一种。香椿有着浓烈又独特的气味,喜欢吃的人对其滋味迷恋的深沉,不喜欢吃的人闻到味道就退避三舍,真的是一种让人又爱又恨...

            </p>

        </div>

        <div class="box2">

            <div class="box22">

                <img src="./work2/img/sj2.png" alt="">

                <p>赞同 52</p>

            </div>

            <div class="box222">

                  <img  src="./work2/img/sj1.png" alt="">

            </div>

         

        </div>

        <div class="box3">

            <img src="./work2/img/common.png" alt="">

            <p>14条评论</p>

        </div>

        <div class="box4">

            <img src="./work2/img/share.png" alt="">

            <p>分享</p>

        </div>

        <div class="box4">

            <img src="./work2/img/collection.png" alt="">

            <p>收藏</p>

        </div>

        <div class="box5">

            <img src="./work2/img/jb.png" alt="">

            <p>举报</p>

        </div>

        <div class="box6">

             <img src="./work2/img/more.png" alt="">

        </div>

     

    </div>

</body>

</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值