How do you stop a dropdown menu from going up?

后端 未结 3 2061
伪装坚强ぢ
伪装坚强ぢ 2020-12-20 03:34

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 beca

3条回答
  •  执笔经年
    2020-12-20 04:16

    As it's an element left to the browser to render, no, it's not possible (at least not as far as standards are concerned).

    Your best option is to use an HTML substitute for the dropdown menu - this can be achieved with CSS and Javascript, though multiple javascript/jQuery libraries alread exist to perform this task.

提交回复
热议问题