请老师检查作业
来源:3-3 编程练习
听的说
2022-03-21 14:25:59
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /* 在此处补充代码*/ * { padding: 0; margin: 0; } header { display: flex; align-items: center; justify-content: space-around; height: 80px; background-color: #000; color: #fff; } header .logo img { width: 150px; } header .nav { flex-basis: 500px; display: flex; justify-content: space-between; width: 500px; } header .login { display: flex; justify-content: space-between; width: 120px; } header .login input { background-color: orange; border: none; padding: 5px; border-radius: 4px; color: #fff; margin-right: 10px; } img { vertical-align: middle; } li { list-style: none; } section { display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: 10px; } section .section { display: flex; justify-content: space-between; align-items: center; width: 650px; height: 150px; padding: 0 20px; margin-bottom: 10px; border-radius: 8px; background-color: #aed8e6; box-sizing: border-box; } section .section .box { display: flex; flex-direction: column; justify-content: space-around; height: 100px; } section .section .shopping { padding: 10px; background-color: orange; border-radius: 4px; font-weight: 600; color: #fff; } </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> <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> <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回答
樱桃小胖子
2022-03-21
同学你好,代码效果实现的很好,继续加油,祝学习愉快!