How to adjust Select drop-down height [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-12-21 12:41:12

问题


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.

http://plnkr.co/edit/gsFK5NmHKo4xopYBruD6?p=preview


回答1:


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..




回答2:


You are add size tag like this

   <select size="30">


来源:https://stackoverflow.com/questions/16788863/how-to-adjust-select-drop-down-height

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!