How does the Glyphicons icon of bootstrap correspond to the: before,: after code?

if you use the Glyphicons icon of bootstrap, the following code can display a cup.

<span class="glyphicon glyphicon-glass" aria-hidden="true"></span>

check what CSS looks like

each icon corresponds to a different hexadecimal, such as\ e001

here.

how is the hexadecimal corresponding to each icon generated? Why can"t the icon be displayed when it is changed to e002?

Css
Mar.22,2021

have you ever used font-awesome or something like that?

these all need to load a font file, and this \ e001 corresponds to the character of a cup (the same length as) in that font file.

Menu