案例一
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: #f1f1f1;
}
.product{
width: 270px;
height: 255px;
background-color: #ffff;
margin: 50px auto;
border-radius: 10px;
padding: 40px;
text-align: center;
}
.tu{
padding-left: 50px;
padding-right: 50px;
}
.product h4{
font-size: 18px;
color: #333;
font-weight: 400;
margin-top:20px ;
margin-bottom: 12px;
}
.product p{
font-size: 12px;
color: #555;
}
</style>
</head>
<body>
<div class="product">
<img src="./liveSDK.svg" alt="" class="tu">
<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>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
}
.new{
width: 300px;
height: 280px;
background-color: white;
margin: 50px auto;
}
.new .hd{
height: 30px;
background-color: #e7e2e2;
border: 1px solid #b3b1b1;
border-left: 0;
}
.new .hd a{
display: block;
width: 50px;
height: 30px;
background-color: #fff;
border-top: 4px solid #f0951dfe;
border-right:1px solid #b3b1b1;
margin-top: -1px;
color: black;
text-align: center;
line-height: 30px;
font-size: 12px;
}
.new .bd ul{
list-style: none;
}
.new .bd ul li{
background-image: url(./square.png);
background-position: 12px center;
background-repeat: no-repeat;
padding-left:12px ;
}
.new .bd ul li a{
display: block;
background-image: url(./img.gif);
background-position: 12px center;
background-repeat: no-repeat;
padding-left: 48px;
text-decoration: none;
color: darkgrey;
font-weight: 200;
font-size: 12px;
}
.new .bd ul li a:hover{
color: orange;
}
</style>
</head>
<body>
<div class="new">
<div class="hd"><a href="">新闻</a></div>
<div class="bd"><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>
结果