下拉宽度 - IE标签裁剪 [英] Drop-down width -- IE labels crop

查看:82
本文介绍了下拉宽度 - IE标签裁剪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可以为下拉菜单设置CSS宽度。在FF中,顶部窗口受其影响,而选项项目缩放到它们中的内容,然而在IE中,选项也与窗口一样宽,从而剪切选项的标签。

I know it is possible to set a CSS width for a drop-down menu. In FF the top window is affected by it, while the option items scale as far as the content in them, however in IE the options are also as wide as the window, thus cutting the options' labels.

有没有更好的方法来控制SELECT元素的宽度?

Is there a better way to control the width of SELECT element?

<select style="width:100px">
    <option>Very long label 1 is gpoing to be here</option>
    <option>Very long label 2 is gpoing to be here</option>
</select>

推荐答案


  • 请将选择元素作为
    元素,因为下拉可以推断出其他
    完全

    • When talking to developers, please refer to select elements as select elements, because a "drop-down" can infer something else entirely.

      有一个修复此处

      这篇关于下拉宽度 - IE标签裁剪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆