Html 如何调整选择下拉高度
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16788863/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to adjust Select drop-down height
提问by Matt Canty
I've looking round the internet for a solution to this and everyone is talking about different things or just saying does size="x"help? I've made a Plunk to illustrate my issue. On my screen I can see up to item 20 when I click the drop down. I'd like to be able to set this to show more, or at least have some control.
我环顾互联网为解决这一点,大家都在谈论不同的事情或只是说做大小=“X”的帮助?我做了一个 Plunk 来说明我的问题。在我的屏幕上,当我单击下拉菜单时,最多可以看到第 20 项。我希望能够将其设置为显示更多,或者至少有一些控制权。
采纳答案by Gabriele Petrioli
You cannot because the select box is a system control..
你不能,因为选择框是一个系统控件..
See Height of an HTML select box (dropdown)
You could use a dropdown replacement widget/module..
您可以使用下拉替换小部件/模块..
回答by krutssss
You are add size tag like this
您正在添加这样的尺寸标签
<select size="30">