如何让多出的文本用省略号表示
<div class="bigg">
<nobr><img src="images/you.png">2017夏季学生韩版显瘦百搭卡通刺绣半袖圆领上衣女</nobr>
</div>
.bigg{width: 230px;overflow:hidden;text-overflow:ellipsis}
nobr 是 No Break 的缩写,意思是禁止换行。
<nobr> 作为定义外观的标签,在 W3C 里未被采用。要用样式表来实现禁止换行的效果的话,可以用white-space 指定 nowrap。
<div style="white-space: nowrap;"> 即使浏览器的横幅不够,这里也不会换行。 </div>