请老师看看是否正确。谢谢。
来源:4-15 项目作业
慕斯卡2474635
2021-06-08 16:08:38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<div class="box">
<a href="" class="button"><img src="imgs/btn.png" alt=""></a>
<a href="" class="car"><img src="imgs/cart.png" alt=""></a>
<div class="number">3</div>
</div>
</body>
</html>
body .box {
width: 700px;
margin: 0 auto;
background-color: rgb(235, 235, 235);
overflow: hidden;
padding: 40px;
position: relative;
}
body .box .button {
float: left;
margin-top: 62px;
}
body .box .car {
float: right;
}
body .box .number {
width: 55px;
height: 55px;
border-radius: 50%;
background-color: red;
color: white;
position: absolute;
right: 28px;
top: 46px;
text-align: center;
line-height: 55px;
font-size: 28px;
}
1回答
同学你好,效果是正确的,继续加油,祝学习愉快~
相似问题
回答 1
回答 1
回答 1
回答 1
回答 3