C# CSS文本溢出:省略号;不适用于IE中的html.listbox
我的HTMLcode是:C# CSS文本溢出:省略号;不适用于IE中的html.listbox,c#,.net,listbox,ellipsis,C#,.net,Listbox,Ellipsis,我的HTMLcode是: @Html.ListBoxFor(m => m.AvailableOrchestration, new SelectList(Model.AvailableOrchestrations, "Value", "Value", "- select -"), new { @class = "listbox_100per textOverflow",
@Html.ListBoxFor(m => m.AvailableOrchestration, new SelectList(Model.AvailableOrchestrations, "Value", "Value", "- select -"), new
{
@class = "listbox_100per textOverflow",
@tabindex = "3",
@id = "AvailableOrchestrations"
})
“textOverflow”的css类
这在Chrome和FireFox中也同样适用。你的问题是什么?属性文本溢出:省略号在IE浏览器中不起作用如果我的列表框值很大,那么“…”应该出现在结尾,并且全文将显示在收费提示中。
.textOverflow {
overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}