CSS标签内多余内容隐藏

CSS:

.mazey{width:100px;}
.nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

HTML:

<div class="mazey nowrap">http://www.mazey.net/baby/blog/#http://www.mazey.net/baby/blog/#http://www.mazey.net/baby/blog/#http://www.mazey.net/baby/blog/#http://www.mazey.net/baby/blog/#http://www.mazey.net/baby/blog/#http://www.mazey.net/baby/blog/#</div>

1 Comment

  1. reviewer
    verynicepost
    五月 09, 2017

    Very nice post. I just stumbled upon your blog and wanted to
    say that I’ve really enjoyed browsing your blog posts.
    In any case I will be subscribing to your feed and I hope you write again very soon!

    回复

verynicepost进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注