当我的导航栏显示在小屏幕上(移动示例)时,它没有按预期显示,我无法解决问题
我试图改变我的css
几次,但情况变得更糟
你能帮我一下吗:)
https://codepen.io/Chrisfrade/pen/NmgEbv
@media( max-width: 1200px){
header{
/*margin: 20px;*/
}
}
@media( max-width: 768px){
.menu-toggle{
display: block;
width: 40px;
height: 40px;
margin: 10px;
float: right;
cursor: pointer;
text-align: center;
font-size: 30px;
color: #069370;
}
.menu-toggle:before{
content: '\f0c9';
font-family: FontAwesome;
line-height: 40px;
}
.menu-toggle.active:before{
content: '\f00d';
font-family: FontAwesome;
line-height: 40px;
}
nav {
display: none;
}
nav.active {
display: block;
width: 100%;
}
nav.active ul {
display: block;
}
nav.active ul li a {
margin: 0;
}
}
Qyouu
慕后森
相关分类