下拉列表问题 [英] Drop Down List Issue
问题描述
我遇到一个问题,即IE 6/7中的下拉列表的行为如下:
I’m having an issue where a drop down list in IE 6/7 is behaving as such:
您可以看到下拉 width
的宽度不足以显示整个文本而不扩展整个下拉列表。
You can see that the drop down width
is not wide enough to display the whole text without expanding the overall drop down list.
但是在Firefox中,没有问题,因为相应地扩展宽度
。这是我们在IE 6/7中想要的行为:
However in Firefox, there is no issue as it expands the width
accordingly. This is the behaviour we want in IE 6/7:
我们研究了各种利用 onfocus,onblur,onchange,键盘和鼠标事件的方法
尝试解决问题,但仍然存在一些问题。
We’ve looked at various ways to utilize the onfocus, onblur, onchange, keyboard and mouse events
to attempt to solve the problem but still some issues.
我想知道是否有人在不使用IE 6/7的情况下解决了此问题工具包/框架(YUI,Ext-JS,jQuery等)。
I was wondering if anyone has solved this issue in IE 6/7 without using any toolkits/frameworks (YUI, Ext-JS, jQuery, etc…).
推荐答案
这家伙与您有相同的问题,他想出了一个解决方案。这有点麻烦,取决于您如何设置UI,但这是一个选择。希望对您有所帮助。
This guy had the same problem as you and he came up with a solution. It is a bit of a hack and depends on how you have your UI setup, but it is an option. I hope it helps.
编辑
我开始寻找的链接实际上是此,与Tim所建议的相同。我认为这是比我最初的发现更好的解决方案。 第二次编辑该解决方案实际上依赖于YUI框架,但我不认为要复制其背后的主要思想太难了。否则,第一个链接也可以,并且更简单。
The link that I started off looking for was actually this one, which is the same one Tim suggested. I think it is a better solution than my original find. 2nd edit This solution is actually dependent on the YUI framework, but I wouldn't imagine replicating the main idea behind it being too hard. Otherwise, the 1st link is alright too, and much simpler.
祝你好运。
这篇关于下拉列表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!