如何控制下拉列表的扩展方向? [英] How can I control the expansion direction of a drop-down list?

查看:122
本文介绍了如何控制下拉列表的扩展方向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何控制下拉列表的扩展方向?我在页面右侧有一个很长的列表,因为它扩展了右边的页面。我可以把它扩展到左边吗?

How can I control the expansion direction of a drop-down list? I've got a long list on the right side of the page that goes off the page because it expands right. Can I make it expand to the left?

推荐答案

据我所知,这不是设计师的控制,浏览器,至少对于正常选择标签。您可以随时考虑使用像jQuery这样的现有库来滚动自己的选择实现(当然这更多涉及到),那么可以随意控制它们。有关如何执行此操作,请参阅此问题

As far as I'm aware that's not under the designer's control but under the browser's, at least for "normal" select tags. You could always consider using an existing library like jQuery to "roll your own" select implementations (which is more involved, of course), then you can control them at will. See this question for how to do that.

这篇关于如何控制下拉列表的扩展方向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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