效果图如下:
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>产品模块</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #f5f5f5;
}
.class {
height: 415px;
width: 298px;
background-color: #ffffff;
margin: 100px auto;
}
.class img {
width: 100%;
}
.review {
height: 70px;
font-size: 14px;
padding: 0 28px;
margin-top: 30px;
}
.appraise {
font-size: 12px;
color: #b0b0b0;
margin-top: 20px;
padding: 0 28px;
}
.tt {
font-size: 14px;
padding: 0 28px;
display: inline-block;
margin-top: 10px;
}
.ss {
font-size: 14px;
color: orange;
padding: 0 28px;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="class">
<img src="images/img.jpg" alt="">
<p class="review">我不仅学不完,还学不会,还想摸鱼</p>
<div class="appraise">来自于一个小菜鸡的评论</div>
<div class="info">
<span class="tt">天天想睡觉</span>
<span class="ss">| 永远睡不醒</span>
</div>
</div>
</body>
</html>