html - 下拉框和组合框有什么区别吗?

标签 html drop-down-menu combobox user-controls

下拉框和组合框[HTML]有什么区别吗?

其实重点是,每次我说:“组合框有问题”,我的学长说:“那不是下拉列表的组合框", :)

最佳答案

从技术上讲,HTML 中没有组合框,因为 <SELECT>无法输入。参见 the Wikipedia article on Combo Box (强调我的):

A combo box is a commonly-used graphical user interface widget. It is a combination of a drop-down list or list box and a single-line textbox, allowing the user to either type a value directly into the control or choose from the list of existing options.

虽然drop-down list的定义|与 HTML <SELECT> 完全匹配元素做:

When activated, it displays (drops down) a list of values, from which the user may select one.

所以你的前辈是对的。

关于html - 下拉框和组合框有什么区别吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2176297/

相关文章:

javascript - 如何在从服务器加载图像时设置预加载图像

javascript - jquery如何获取shift+鼠标滚动事件

javascript - 为什么选择自动选择元素?

第二级位置不正确的CSS菜单

c# - CSharp .NET 3.5 Windows 窗体数据绑定(bind)组合框到列表<>

c# - 如何按名称而不是位置索引图像列表?

html - 面包屑将使用 uikit 放置在右上角的侧按钮中

html - CSS 下拉菜单在 IE8 中消失

java - 如何使用 Selenium Java 处理 https ://www. SPACEJET.com/PASSENGERS 字段的静态下拉列表

c# - Combobox.Visible 属性不起作用