下拉框和组合框[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/