【问题标题】:ie9 html select option does not display long textie9 html选择选项不显示长文本
【发布时间】:2012-10-31 16:49:47
【问题描述】:

我在 ie9 上的 html select 遇到了这个问题(浏览器模式:compatblity view 和 doc 模式:ie7 标准)。

<select ...>
   <option title="test1">test1</option>
   <option title="test2">test2</option>
   <option title="longer text....more than 255">longer text....more than 255</option>
</select>

在 ie7 中显示了选项以及更长的文本……但在 ie9 中,问题是下拉菜单不再起作用(它不显示选项)。它只显示第一项。我该如何解决这个问题?

【问题讨论】:

    标签: html internet-explorer select


    【解决方案1】:

    我会建议你两个选择:

    1. 使用向下拉列表添加波纹管属性,即使在加载页面时未显示完整的文本,您也可以使用工具提示显示完整的消息。 ToolTip="你的字符串"

    2. 将下拉菜单的宽度设置为其最大长度,据我所知应该是 256。(但它不会很好,b 'cz 它会反映你的 GUI)

    【讨论】:

    • 我已经有了工具提示。无论如何,这是一个 ie9 已知问题吗? co'z 打算向 msdn 提交工单
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-21
    • 1970-01-01
    • 2020-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多