lhb25

您可能感兴趣的相关文章

漂亮的文本渐变效果

h2[data-text] {
  position: relative;
}
h2[data-text]::after {
  content: attr(data-text);
  z-index: 10;
  color: #e3e3e3;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0)), color-stop(50%, rgba(0,0,0,1)), to(rgba(0,0,0,0)));

 

更多实用 CSS3 技巧:帮助你美化网站的10+实用 CSS3 技巧

编译来源:梦想天空 ◆ 关注前端开发技术 ◆ 分享网页设计资源

分类:

技术点:

相关文章:

  • 2021-06-22
  • 2022-01-20
  • 2021-10-16
  • 2021-10-16
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-09-14
  • 2021-12-22
  • 2021-12-22
  • 2021-10-16
  • 2021-08-07
  • 2021-10-16
相关资源
相似解决方案