How to use data attributes with Font Awesome?

前端 未结 2 1468
不思量自难忘°
不思量自难忘° 2021-01-21 06:35

I want to convert a rel content into a Font Awesome CSS icon, so I won\'t have to write 20 lines for a simple menu.

Maybe some code would make it easier to

2条回答
  •  长发绾君心
    2021-01-21 06:56

    There no way to do that in css, because there is no variables. You can use compiled css (like sass). The other way to do that is js. And the third way is to add style inside html in server side.

提交回复
热议问题