【发布时间】:2018-02-07 00:05:36
【问题描述】:
.wrapper {
background: tomato;
width: 100px;
display: flex;
}
.left {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.right {
}
<div class=wrapper>
<div class="left">
title title title title
</div>
<div class="right">
123
</div>
</div>
我有一个 DIV (wrapper),里面有 2 个 DIV:left 和 right。
wrapper 的宽度是已知的。如果不适合,我想截断left DIV 中的文本。 right 中的文本应始终可见。我在这里尝试了几种技术,但唯一有效的是基于 flex box。不幸的是,它不适用于 IE10。我使用了-ms- 前缀,但没有成功。
有什么办法让它在 IE10 上运行?
【问题讨论】:
标签: html css flexbox internet-explorer-10