我制作了一个CSS响应式菜单。我想在屏幕较小时添加一个显示菜单的按钮。这是我my current code pen的链接 这是stackoverflow代码片段中的代码
.nav ul {
list-style: none;
background-color: #00FFFF;
text-align: center;
padding: 0;
margin: 0;
}
.nav li {
font-family: Georgia;
font-size: 1.2em;
line-height: 40px;
height: 40px;
border-bottom: 1px solid #ffffff;
}
.nav a {
text-decoration: none;
color: #000000;
display: block;
transition: .3s background-color;
}
.nav a:hover {
background-color: #036;
color: #ffffff;
}
@media screen and (min-width: 600px) {
.nav li {
width: 120px;
border-bottom: none;
height: 50px;
line-height: 50px;
font-size: 1.4em;
}
/* Option 1 - Display Inline */
.nav li {
display: inline-block;
margin-right: -4px;
}
/* Options 2 - Float
.nav li {
float: left;
}
.nav ul {
overflow: auto;
width: 600px;
margin: 0 auto;
}
.nav {
background-color: ffffff;
}
*/
}

<div class="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="resume.html">Resume</a></li>
<li><a href="aboutme.html">Biography</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
&#13;