伪元素选择器使用场景-字体图标(CSS3)

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS3伪元素选择器使用场景-字体图标</title>
<style>
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?s6yjcv');
src: url('fonts/icomoon.eot?s6yjcv#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?s6yjcv') format('truetype'),
url('fonts/icomoon.woff?s6yjcv') format('woff'),
url('fonts/icomoon.svg?s6yjcv#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}

div {
width: 200px;
height: 35px;
border: 1px solid red;
}

div::after {
font-family: 'icomoon';
content: '';
}