.words{
font-size: 14px;
color: #4A4A4A;
overflow: hidden;
line-height: 26px;
position: relative;
height: 45px;
}
.words:after {
content: '...';
text-align: right;
position: absolute;
bottom: 0;
right: 0;
width: 10%;
height: 1.8em;
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
}
-webkit-line-clamp兼容IE及火狐
最新推荐文章于 2023-06-27 09:03:27 发布