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

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

问题描述

我有一个下拉菜单,朝向页面顶部大多数屏幕尺寸,但在较小的屏幕,如笔记本电脑,菜单是在屏幕的中间,因此,下拉列表是去上面的选择器。我想要一个下拉,一直下降,无论在页面上的哪里。这是可能吗?

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天全站免登陆