老师帮忙看下我这里写的有什么不足的地方么

来源:3-17 编程练习

qq_Unique彼岸花丶花海_0

2021-05-22 20:27:13

​<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,minimum-scale=1,maximum-scale=1">
<title>Document</title>
<style>
* {
padding: 0;
list-style: none;
}

header {
background-color: #000;
height: 100px;
display: flex;
justify-content: space-around;
}

.nav {
color: white;
display: flex;
align-items: center;
min-width: 500px;
justify-content: space-around;
}

.login {
min-width: 120px;
display: flex;
align-items: center;
justify-content: space-around;

}

.login input {
padding: 3px 1px;
color: white;
border: none;
background-color: orange;
}

section {
margin-top: 30px;
display:flex;
/* min-height: 200px; */
border: 1px solid red;
flex-wrap: wrap;
justify-content: space-around;

}
.section{
background-color: rgba(222,10,10,.5);
border-radius: 10px;
/* flex-grow: 1; */
width: 40%;
display: flex;
align-items: center;
justify-content: space-around;
}
.box div{
line-height: 30px;
}
.shopping .btn{
width: 100px;
height: 45px;
background-color: orange;
text-align: center;
line-height: 45px;
border-radius: 10px;
color: white;
}
</style>
</head>

<body>
<header>
<div class="logo">
<img src="http://climg.mukewang.com/59197ab000014f1503000100.jpg" alt="">
</div>
<ul class="nav">
<li>课程</li>
<li>路径</li>
<li>猿问</li>
<li>手记</li>
</ul>
<div class="login">
<input type="button" value="登录">
<input type="button" value="注册">
</div>
</header>
<!-- 主体内容 -->
<section>
<div class="section">
<div class="box">
<p>《前端小白入门手册》</p>
<div>适用人群:没有任何前端基础的小白</div>
<div>费用:¥499</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
<div class="section">
<div class="box">
<p>《HTML5月CSS3实现动态网页》</p>
<div>适用人群:有html和css基础的童鞋</div>
<div>费用:¥599</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
</section>
<section>
<div class="section">
<div class="box">
<p>《前端小白入门手册》</p>
<div>适用人群:没有任何前端基础的小白</div>
<div>费用:¥499</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
<div class="section">
<div class="box">
<p>《HTML5月CSS3实现动态网页》</p>
<div>适用人群:有html和css基础的童鞋</div>
<div>费用:¥599</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
</section>
</body>

</html>


写回答

1回答

好帮手慕星星

2021-05-23

同学你好,已经在另外一个相似问题中进行了回复,可以查看下:

https://class.imooc.com/course/qadetail/289926


另外建议提交问题遇到审核时,不要再次提交,老师们是可以看到的,避免重复。

祝学习愉快!

0

0 学习 · 15276 问题

查看课程