老师,帮忙看一下

来源:3-13 编程练习

City_Hunter_

2018-12-31 21:04:45

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
 *{
  margin: 0;
  padding: 0;
 }
 header{
  width: 100%;
  height: 100px;
  background-color: #000;
  display: flex;
  justify-content: space-around;
  align-items: center;
 }
 ul{
  list-style-type: none;
  display: flex;
  justify-content: space-between;
 }
 ul li{
  color: #fff;
  font-size: 27px;
  text-align: center;
  line-height: 100px;
  width: 195px;
/*  flex-grow: 1;*/
 }
 .login{
  display: flex;
  justify-content: space-between;
  width: 154px;
 }
 .login input{
  width: 58px;
  height: 39px;
  background: #ffa500;
  color: #fff;
  text-align: center;
  line-height: 39px;
  border-radius: 4px;
  border:none;
  font-size: 22px;
 }
</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回答

好帮手慕星星

2019-01-01

同学你好,经测试代码实现效果没有问题,继续加油!

0

0 学习 · 5012 问题

查看课程