问题标签 [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.

0 投票
9 回答
4340 浏览

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 中解决了这个问题。

0 投票
4 回答
48944 浏览

javascript - HTML