编写下拉菜单
<!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>
/* 重置默认样式 */
html , body , ul , ol{
padding: 0;
margin: 0;
}
ul , ol{
list-style: none;
}
/* 书写自定义样式 */
.wrapper{
width: 1000px;
margin-left: 50px;
margin-top: 50px;
}
.nav{
height:80px;
background-color: #ccc;
}
.first-list{
width: 180px;
float: left;
margin-right: 50px;
}
.first-list > li{
width: 180px;
}