<div class="oDiv">
hahahahahhahhahahahahah
</div>
<style>
.oDiv{
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
这里限制了容器的宽度,当超出设置的宽度即出现...代替
<div class="oDiv">
hahahahahhahhahahahahah
</div>
<style>
.oDiv{
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
这里限制了容器的宽度,当超出设置的宽度即出现...代替