<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
<style type="text/css" media="screen">
*{
margin:0px;
padding:0px;
}
.wrapper{
width:300px;
height:200px;
border:1px solid black;
display:flex;
margin: 0 auto;
}
.con{
height:30px;
flex:1 1 auto;
border:1px solid black;
box-sizing: border-box;
text-align: center;
line-height: 30px;
font-size: 15px;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="con">标题1</div>
<div class="con">标题2</div>
<div class="con">标题3</div>
<div class="con">标题4</div>
<div class="con">标题4</div>
</div>
</body>
</html>
添加一个导航之后