1:创建/font/iconfont.css
在线方式:
@font-face {
font-family: "iconfont"; /* Project id 3266214 */
src:
url('https://at.alicdn.com/t/font_3266852_eypzg2x8bh8.ttf?t=1647920902148') format('truetype');
}
离线方式:
@font-face {
font-family: "iconfont"; /* Project id 3266214 */
src:
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA9cAAwAAAAAG5wAAA8MAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIoF8IxYGYAA8Cqxsoz8BNgIkA4E8C2AABCAFgXwHIBu+FSMDwcYBUAg+QPbPA9t2kZ4QaqUYhPGnjWBhMn+a786fkHAc3UIw6edx0/9zA56QpFCKN5BQUawmQKEPa52aTkyYuHzp9jqxTvyJSvdEp1IC4tTPOA9gQLKBw6PL9/QyFqSi9cW1N21vlBx9I+c0k2M3TuyLPRjznzrfp5alXifJHxDHAo7tGUoAzpqsspSPwIb/mytt+N25jbprHaCxpypklcxMku79TBZmDyfZ9HVSvONsAclV1daRMEnxgKZACtgBC9NXyUqaLmvLwVWCXYSVL0cGAAMAEsBFNMyP8DSVrwpUoSrKFgNAJBAAqRIieBFCgCybgZB4hCoONMxAoghMOaGpICLRTIgS1BhZFSJqtqpG1pqIzkT0JmIwkdg3hTAAjABMEBYAB8AMIA4SDyABkgggCZIMIAVAqlKTBiDdL8SgCk+FBHc3dA48nvZkALIYR2tBoGwVbseGAGXGpaCNJnBAJ6PEdcflXbkXvox/Q4oMmID3gQgAxKUN+1UUI6d7SXQHYYPwq0iEneRhhSusgYGM5V+RsXzgJy0q7v6IBeS2bVsARCcBJPGRZxQDKiCKNR3txOxw6K8KGB+ECEQAYgdDwAMMHw77DUo00CQZT7JVpFwkUIuSi0iTlvSPRGqFUi2ZINJFEURePH0aSpFB0DpCptckOclYjVb5B+hpIx1dqSjI6VCTZJs2eua0/5OcburcQ8nmi5G5uIYNmbSUQ9Q2IhYgLQkeYpC7LXICeUJnZMBDIKaOUxWZQoZshlQ+dTPqJM4xzSRrhhQ+pXoHs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CjNPz8PTHg5OBewTU+cY9rJg4CSHHwA=') format('woff2');
}
2:引用
App.vue中 添加
<style>
@import './font/iconfont.css';
</style>
3:使用
<icon class="iconfont icon_ts "></icon>
设置大小
font-size:xxx