Is it possible to use Icons with css:before without hardcoding the code?
问题 I am using the method answered here on StackOverflow to use custom police definition with other classes. This method is summarized below: [class^="icon-"]:before, [class*=" icon-"]:before { font-family: FontAwesome; } .icon-custom:before { content: "\f0c4"; } When I'm using a custom class to use it, I have to use the code generated by the library: i:after { content: '\f0c4'; } In case this code f0c4 change in the library, I would like to avoid reporting the change in every custom class one by