请老师检查代码♥
来源:2-8 编程练习
xcn_aaaa
2022-12-06 21:32:21
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /*在此处补充代码*/ * { margin: 0; padding: 0; } li { list-style: none; } header { display: flex; background-color: #000; height: 60px; line-height: 60px; /* padding: 0 60px; */ justify-content: space-around; } .nav { width: 500px; display: flex; justify-content: space-between; } .nav li { color: #fff; } .login input[type="button"] { width: 40px; height: 25px; border-radius: 4px; color: white; background-color: orange; } </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> </body> </html>
1回答
同学你好,代码正确,很棒,祝学习愉快!