你如何阻止下拉菜单上升? [英] How do you stop a dropdown menu from going up?

查看:18
本文介绍了你如何阻止下拉菜单上升?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于大多数屏幕尺寸,我有一个位于页面顶部的下拉菜单,但在较小的屏幕(例如笔记本电脑)上,菜单位于屏幕中间,因此,下拉列表将显示在选择器上方.我想要一个下拉菜单,无论它在页面上的哪个位置,它都会一直向下.这可能吗?

I have a dropdown menu that's towards the top of the page for most screen sizes, but on smaller screens, such as a laptop, the menu is in the middle of the screen, and because of this, the dropdown list is going above the selector. I want a dropdown that will consistently go down, no matter where on the page it is. Is this at all possible?

推荐答案

下拉菜单由浏览器/操作系统呈现.您无法使用 CSS 或 JavaScript 控制此类行为.

Drop-downs are rendered by the Browser/OS. You cannot control this type of behaviour using CSS or JavaScript.

这篇关于你如何阻止下拉菜单上升?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆