【发布时间】:2017-05-09 09:10:18
【问题描述】:
在某些宽度上,我的椭圆被切断了。 I've created a fiddle that demonstrates it。我尝试了不同的边距和填充组合,但似乎无法消除它。我正在使用 Chrome 51。
注意:为了简洁起见,我已经简化了我的示例。我的实际 div 是响应式的,并且文本是动态的。我需要一个适用于任何宽度的任何文本的解决方案。
有什么办法可以解决这个问题吗?
<div class="container">
<div class="nowrap">This text should be truncated</div>
</div>
<div class="container two">
<div class="nowrap">This text should be truncated</div>
</div>
.container{
width:196px;
font-size:30px;
}
.container.two{
width:193px;
}
.nowrap{
text-overflow: ellipsis;
white-space:nowrap;
overflow:hidden;
}
【问题讨论】:
-
显然这是一个错误。
-
如果这是一个错误,有人有我可以关注的链接吗?
-
这不是省略号的作用还是我遗漏了什么?
-
@JakobMillah 最后三个点被剪掉了。
标签: css google-chrome