相关疑难解决方法(0)

在多行跨度中添加三个点

我在这里找到了这个问题,解决方案非常简单:

jsfiddle:http://jsfiddle.net/Y5vpb/

HTML:

<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen look</span>?
Run Code Online (Sandbox Code Playgroud)

CSS:

span{
    display:inline-block;
    width:180px;
    white-space: nowrap;
    overflow:hidden !important;
    text-overflow: ellipsis;
}
Run Code Online (Sandbox Code Playgroud)

它的工作方式与预期一致,它打印: Lorem Ipsum is simply du...

现在,我想做同样的事情,但继续失败,创建以下示例:

jsfiddle:http://jsfiddle.net/9HRQq/

HTML:

<div class="textContainer">                
    <img src="#" …
Run Code Online (Sandbox Code Playgroud)

html css

22
推荐指数
1
解决办法
5万
查看次数

标签 统计

css ×1

html ×1