如图,在谷歌浏览器的收藏夹上看到的,第一个和第三个文本最后都有渐变隐藏的效果,请教如何实现。非常感谢
4 回答
此生不换93
TA贡献2条经验 获得超0个赞
刚刚那个不完整
p::after {
height: 16px;
content: ""; // '...'
position:absolute;
bottom:9px;
right:0;
padding-left:30px;
background:-webkit-linear-gradient(left,transparent,#fff 55%);
background:-o-linear-gradient(right,transparent,#fff 55%);
background:-moz-linear-gradient(right,transparent,#fff 55%);
background:linear-gradient(to right,transparent,#fff 55%);
}
此生不换93
TA贡献2条经验 获得超0个赞
height: 16px;
content: ""; // '...'
position:absolute;
bottom:9px;
right:0;
padding-left:30px;
background:-webkit-linear-gradient(left,transparent,#fff 55%);
background:-o-linear-gradient(right,transparent,#fff 55%);
background:-moz-linear-gradient(right,transparent,#fff 55%);
background:linear-gradient(to right,transparent,#fff 55%);
- 4 回答
- 0 关注
- 2765 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消