I've tried using the @media
query to adjust the styling of the navbar at different screen sizes, but it's not working as expected.
Here's the code I have so far:
.navbar {
height: 60px;
background-color: #333;
}
@media (max-width: 600px) {
.navbar {
height: 100%;
flex-direction: column;
}
}
.navbar {
height: 60px;
background-color: #333;
}
@media screen and (max-width: 600px) {
.navbar {
height: 100%;
flex-direction: column;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.