这样可以吗
来源:3-17 编程练习
Victor19950925
2019-06-22 20:01:56
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /*在此处补充代码*/ * { padding: 0; margin: 0; } header { width: 100%; height: 80px; display: flex; background: black; justify-content: space-around; align-items: center } .nav { display: flex; width: 500px; color: white; list-style: none; font-size: 20px; justify-content: space-around; } .login { display: flex; justify-content: space-around; width: 120px; } input { background: orange; color: white; border-radius: 5px; border: none; width: 45px; height: 25px; } section { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-around; align-content: space-between; } .section { background-color: skyblue; min-width: 400px; width: 45%; height: 140px; display: flex; justify-content: space-around; align-items: center; margin-top: 40px; border-radius: 15px; } .box{ display: flex; flex-direction: column; justify-content: space-around; height: 100%; } .btn{ width: 100px; height: 40px; color: white; background-color: orange; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: bold; } .btn:hover{ color: black; cursor: pointer; } </style> </head> <body> <header> <div class="logo"> <img src="http://climg.mukewang.com/59feb59700019dab01910057.png" 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>《前端小白入门手册》</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回答
樱桃小胖子
2019-06-23
效果实现的是可以的,继续加油哦!
相似问题