请老师检查作业
来源:2-8 编程练习
听的说
2022-03-20 17:05:53
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /*在此处补充代码*/ * { padding: 0; margin: 0; } img { vertical-align: middle; } header { display: flex; justify-content: space-between; align-items: center; height: 65px; background-color: #000000; padding: 0 300px; } header ul { display: flex; justify-content: space-between; min-width: 500px; } header ul li { color: #fff; font-size: 18px; list-style: none; } header ul { display: flex; justify-content: space-between; } .login { width: 80px; display: flex; justify-content: space-between; } .login input { font-size: 16px; color: #fff; border-radius: 4px; border: none; 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回答
同学你好,整体效果是可以的,建议优化:
1、去掉左右padding,调整为space-around
2、按钮设置内边距,适当调整文字四周间距,效果会更好,另外,调整下外层盒子宽度。
祝学习愉快~