正在回答 回答被采纳积分+1
这个老师讲过的;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>not</title>
<style type="text/css">
*{
margin:0;
padding:0;
border:none;
}
nav >a{
display:block;
width:100px;
height:30px;
float:left;
font-size: 13px;
color:#333;
text-decoration:none;
}
nav{
width:500px;
margin:0 auto;
}
nav >a:not(:last-of-type){
border-right:1px solid orange;
}
</style>
</head>
<body>
<nav>
<a href="#">first</a>
<a href="#">second</a>
<a href="#">thrid</a>
<a href="#">fourth</a>
</nav>
</body>
</html>
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星