简体   繁体   English

我想移动左导航栏菜单 <div> 屏幕尺寸为800px时返回顶部

[英]I want to move my Left nav bar menu <div> to Top when the screen size is 800px

当我将屏幕缩小到800px时,左侧导航栏将隐藏起来,它将显示在页面顶部的下拉菜单中

You should use a media query for this and set the width of the media query to 800px 您应该为此使用媒体查询,并将媒体查询的宽度设置为800px

for example 例如

@media screen and (min-width: 800px) {
    #leftmenu {
        #css to put menu at top
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 justifiedGallery:屏幕 &lt;800px 时尝试更改图像路径 - justifiedGallery : Trying to change image path when screen <800px Javascript-如果窗口宽度&lt;= 800px,则将活动链接移至导航顶部 - Javascript - Move active link to top of navigation if window-width <= 800px 当我的窗口宽度小于800px时,如何将js滑块效果更改为淡入淡出? - how do i change the js slider effect to fade when my window width is less than 800px? 当浏览器的尺寸小于800px时如何隐藏div - How to hide div when browser resizes to less than 800px 原型:滚动页面800px时显示元素 - prototype: show a element when scroll page pased 800px 如果窗口宽度大于800px时刷新站点,则jQuery click事件不起作用 - jQuery click event doesn't work if I refresh site when window width is bigger than 800px 当侧边菜单div接近0px时,导航链接不会隐藏 - Nav links not hiding when side menu div closes to 0px 使用 javascript 时,如何只让我的 header 菜单在屏幕尺寸大于 700 像素时缩小? - How can I only let my header menu shrink when the screen size is larger than 700px by using javascript? 单击按钮将div1移出屏幕,将div2从顶部移至20px时会弹出动画效果 - bouncing animation effect when click on button to move div1 out of screen and div2 to 20px from top 我希望此div在选择菜单时显示并向上移动 - I want this div to display and move up when menu is selected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM