《2018年11月9日》【连续401天】
标题:字体图标使用;
内容:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
@font-face { /*声明字体 引用字体*/
font-family: "icomoon";
src: url("icomoon/fonts/icomoo.eot?7kkyc2");
src: url("icomoon/fonts/icomoon.eot?7kkyc2#iefix") format("embedded-opentype"),
url("icomoon/fonts/icomoon.ttf?7kkyc2")format("truetype"),
url(icomoon/fonts/icomoon.woff?7kkyc2)format("woff"),
url(icomoon/fonts/icomoon.svg?7kkyc2#icomoon)format('svg');
font-style: normal; /*倾斜字体正常*/
}
span {
font-family: "icomoon";
font-size: 100px;
color: red;
}
</style>
</head>
<body>
<span></span>
</body>
</html>
复制小方格进入span:
效果: