请老师检查代码♥
<!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://img1.sycdn.imooc.com/climg//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>5
收起
正在回答 回答被采纳积分+1
1回答
好帮手慕久久
2022-12-07 09:38:01
同学你好,代码是不是粘贴错了。如下练习的代码已经帮同学检查过了:https://class.imooc.com/lesson/2141#mid=53792
同学是不是想提交2-9的练习?
https://class.imooc.com/lesson/2141#mid=53793
如果是的话,把代码回复一下,老师再帮你解答。
祝学习愉快!
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星