当我将屏幕缩小到 800px 时,左侧导航将隐藏,它将出现在带有下拉菜单的页面顶部
最佳答案
您应该为此使用媒体查询并将媒体查询的宽度设置为 800px
例如
@media screen and (min-width: 800px) {
#leftmenu {
#css to put menu at top
}
}
关于javascript - 当屏幕尺寸为 800px 时,我想将左侧导航栏菜单 <div> 移至顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37462499/