abstract:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">&
<!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>浮动导航条</title>
<style type="text/css">
*{margin: 0px; padding: 0px;}
ul li{
list-style: none;
width: 120px;
height: 30px;
background-color: black;
color: aliceblue;
line-height: 30px;
text-align: center;
margin: 1px 0.5px;
float: left;
}
.clear{
clear: both;
}
.box{
width: 120px;
height: 50px;
background-color: royalblue;
color: aliceblue;
line-height: 50px;
text-align: center;
margin: 1px 0.5px;
float: left;
}
</style>
</head>
<body>
<ul>
<li>PHP</li>
<li>JavaScript</li>
<li>jQuery</li>
<li>VUS</li>
<li>Laravel</li>
</ul>
<div class="clear"></div>
<div class="box">导航1</div>
<div class="box">导航2</div>
<div class="box">导航3</div>
<div class="box">导航4</div>
<div class="box">导航5</div>
</body>
</html>
Correcting teacher:天蓬老师Correction time:2019-06-24 10:03:16
Teacher's summary:浮动导航, 改变了元素原有的文档流布局模式....在布局中应用... 不过, 如果能改成定位, 肯定会更好