html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="strcpy">
<meta name="description" content="来自黑马教程">
<title> Example </title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="box">
<div class="image">
</div>
<p class="review">输出一段话!</p>
<div class="appraise">来自于 117348222 的评价</div>
</div>
</body>
</html>
css:
*{
margin: 0;
padding: 0;
}
body{
background-color: #f5f5f5;
}
.box{
margin: 10px 10px;
width: 298px;
height: 415px;
background-color: #fff;
}
.box .image{
height: 50%;
width: 100%;
border: 5px solid black;
box-sizing: border-box;
}
.review{
height: 70px;
font-size: 15px;
margin-top: 30px;
border: 2px solid black;
padding: 0px 28px;
}
.appraise{
font-size: 12px;
color: #b0b0b0;
margin-top: 20px;
padding:0 28px;
border: 2px solid black;
}