gpt4 book ai didi

html - 选择元素上下拉框的大小

转载 作者:技术小花猫 更新时间:2023-10-29 12:04:18 24 4
gpt4 key购买 nike

如何设置选择元素上下拉框的大小?不是选择元素本身,而是单击选项时的下拉框部分?

______________
|____________| input box
| |
| |
| |
|____________| size of drop down box containing options

感谢您的帮助!

最佳答案

如果您只想更改大小以增加显示的选项数量,请使用 HTML,例如:<select size="3" ... .

但是如果你想改变“弹出窗口”的大小,就像其他人所说的那样,你不能用 CSS 做到这一点。

最好的解决方法是使用众多 jQuery 插件之一。参见 this answer .

关于html - 选择元素上下拉框的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3115981/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com