卡片及新闻小头条样式设置

产品卡片

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>产品卡片</title>

    <style>

* {

           margin: 0;

           padding: 0;

            box-sizing: border-box;

  }

  body{

    background-color: #f1f1f1;

  }

 .product {

    width: 270px;

    height: 250px;

    background-color: #fff;

    margin:50px auto ;

    text-align: center;

    padding-top:40px ;

    border-radius: 5%;

 }

 .product h4{

    font-size: 17px;

    color: black;

   margin-top: 20px;

   font-weight: 500;

 }

 .product p{

    font-size: 12px;

    color: black;

    margin-top: 15px;

 }

    </style>

</head>

<body>

<div class="product">

    <img src="./images/liveSDK.svg" alt="">

    <h4>抖音直播SDK</h4>

    <p>包含抖音直播看播功能</p>

</div>

</body>

</html>

新闻列表

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>新闻列表</title>

    <style>

        *{

            margin: 0;

            padding:0;

            box-sizing: border-box;

         }

         li{

            list-style: none;

         }

         a{

            text-decoration: none;

         }

.box{

    margin: 100px auto;

    width: 360px;

    height: 200px;

    background-color:#fff;


 

   

}

.top{

    height: 34px;

    background-color: #eee;

    border:1px solid #dbdee1;

    border-left: none;

}

.box .top a {

    display: block;

    width: 50px;

    height: 34px;

    background-color: #fff;

    text-align: center;

    line-height: 32px;

    color: #333;

    border-top: 3px solid orange;

    margin-top: -1px;

    border-right: 1px solid #dbdee1;

   

}

.box ul li{

    background-image: url(./images/square.png);

    padding-left: 20px;

    background-repeat: no-repeat;

    background-position: 0 center;

    margin-left: 15px;

}

.box ul li a{

  padding-left: 20px;

 background:url(./images/img.gif) no-repeat 0 center;

    font-size: 12px;

    color: #666;

    line-height: 24px;

}

.box ul li a:hover{

    color: orange;

}

    </style>

</head>

<body>

    <div class="box">

        <div class="top">

            <a href="#" class="a">新闻</a>

        </div>

        <div>

        <ul>

         <li><a href="">点赞“新农人” 温暖的伸手</a></li>

         <li><a href="">在希望的田野上...</a></li>

         <li><a href="">“中国天眼”又有新发现 已在《自然》杂志发表</a></li>

         <li><a href="">急!这个领域,缺人!月薪4万元还不好招!啥情况?</a></li>

         <li><a href="">G9“带货”背后:亏损面持续扩大,竞争环境激烈</a></li>

         <li><a href="">多地力推二手房“带押过户”,有什么好处?</a></li>


 

        </ul>

        </div>

    </div>

</body>

</html>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值