限制选择下拉菜单的显示高度 [英] Limiting the displayed height of a select drop-down
本文介绍了限制选择下拉菜单的显示高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有很多< option>
的< select>
。有没有办法限制打开时显示的< select>
的高度?
解决方案
大小限制是由浏览器控制的,而不是你可以改变的。
看到这个答案: HTML选择框的高度(下拉)
I have a <select>
with a lot of <option>
's. Is there any way to limit the height of the displayed <select>
when opened?
解决方案
the size limit is controlled by the browser and not something you can alter.
See this answer: Height of an HTML select box (dropdown)
这篇关于限制选择下拉菜单的显示高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文