<分区>
<分区>
此代码显示一行代码,然后给出三个点。 示例:
The Alsos Mission was an Allied unit formed to ...
我要两三行然后三点
例子:
The Alsos Mission was an Allied unit formed to
investigate Axis scientific developments ...
div{
width : 500px;
overflow:hidden;
display:inline-block;
text-overflow: ellipsis;
white-space: nowrap;
}
<div>
The Alsos Mission was an Allied unit formed to investigate Axis scientific developments, especially nuclear, chemical and biological weapons, as part of the Manhattan Project during World War II. Colonel Boris Pash, a former Manhattan P
</div>
最佳答案
也许它可以工作!
div {
最大宽度:75ch;//人物
}
div:after {
内容: ”...”
}
关于html - 溢出 :hidden dots at the end in 2 line paragraphs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49475613/