问题标签 [html-select]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 下拉列表问题
我遇到了一个问题,即 IE 6/7 中的下拉列表的行为如下:
您可以看到下拉列表width
不够宽,无法在不展开整体下拉列表的情况下显示整个文本。
但是在 Firefox 中,没有问题,因为它expands the width
相应地。这是我们在 IE 6/7 中想要的行为:
我们已经研究了利用onfocus, onblur, onchange, keyboard and mouse events
来尝试解决问题的各种方法,但仍然存在一些问题。
我想知道是否有人在不使用任何工具包/框架(YUI、Ext-JS、jQuery 等)的情况下在 IE 6/7 中解决了这个问题。