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 条评论

  1. reviewer
    verynicepost
    2017年5月9日

    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!

    回复

发表评论

您的电子邮箱地址不会被公开。