产品卡片
<!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>