1.

h3:before {
                content: '添加内容';
}

  

2.

h2:before {
                content: url(一般添加图片);
}

  

3.

h2:before {
                content: "("attr(属性名)")";
}

 注:attr()返回属性值。

 

相关文章:

  • 2021-10-15
  • 2021-08-11
  • 2021-10-31
  • 2021-07-25
  • 2021-06-12
  • 2021-09-14
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-12-07
  • 2022-01-20
  • 2021-07-18
相关资源
相似解决方案