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

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

问题描述

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

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