HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="../css/test4.css">
</head>
<body>
<div class="box">
<img src="./img/Snipaste_2022-06-25_20-39-26.png">
<p class="review">Bilibili MeowRain</p>
<div class="appraise">来自于bilibili弹幕网,1000+观看</div>
<div class="info"><span>Price:</span><span class="price">$200</span></div>
</div>
</body>
</html>
CSS
* {
margin: 0;
padding: 0;
}
.box {
width: 298px;
height: 415px;
background-color: #ffffff;
margin: 100px auto;
}
body {
background-color: #f5f5f5;
}
.box img {
width: 100%;
}
.review {
height: 70px;
font-size: 30px;
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
}
.appraise {
color: rgb(198, 201, 198);
font-size: 14px;
margin-top: 10px;
}
.info {
padding-top: 20px;
font-size: 10px;
color: black;
}
.price{
color: rgb(255, 160, 88);
}
![image-1656161950657](/upload/2022/06/image-1656161950657.png)