mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-22 14:58:14 +08:00
3c0161eb5f
* First Commit * Update README.md * Delete botui.js * Delete img/svg/mine directory * Delete animation404.js * Delete mastodon-about.js * Delete js/highlight directory * Create relay * Add files via upload * Delete other-sites/me directory * Delete relay * Delete js/pure-js-lib directory * Update static * 'Update' * 'Update' * Update * Update
451 lines
17 KiB
HTML
451 lines
17 KiB
HTML
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8"/>
|
||
<title>IconFont</title>
|
||
<link rel="stylesheet" href="demo.css">
|
||
|
||
<style type="text/css">
|
||
|
||
@font-face {font-family: "iconfont";
|
||
src: url('iconfont.eot'); /* IE9*/
|
||
src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||
url('iconfont.woff') format('woff'), /* chrome, firefox */
|
||
url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
||
url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
|
||
}
|
||
|
||
.iconfont {
|
||
font-family:"iconfont" !important;
|
||
font-size:16px;
|
||
font-style:normal;
|
||
-webkit-font-smoothing: antialiased;
|
||
-webkit-text-stroke-width: 0.2px;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="main markdown">
|
||
<h1>IconFont 图标</h1>
|
||
<ul class="icon_lists clear">
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">cat</div>
|
||
<div class="code">&#xe65d;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">cat-in-white-silhoue</div>
|
||
<div class="code">&#xe65e;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">markdown</div>
|
||
<div class="code">&#xe664;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6A3</div>
|
||
<div class="code">&#xe67e;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6A0</div>
|
||
<div class="code">&#xe67f;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6B4</div>
|
||
<div class="code">&#xe680;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6BC</div>
|
||
<div class="code">&#xe681;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6BF</div>
|
||
<div class="code">&#xe682;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6C4</div>
|
||
<div class="code">&#xe683;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6E5</div>
|
||
<div class="code">&#xe684;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6EB</div>
|
||
<div class="code">&#xe685;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6F3</div>
|
||
<div class="code">&#xe686;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6DE</div>
|
||
<div class="code">&#xe687;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE64B</div>
|
||
<div class="code">&#xe688;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE65F</div>
|
||
<div class="code">&#xe689;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE64C</div>
|
||
<div class="code">&#xe68a;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE66F</div>
|
||
<div class="code">&#xe68b;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE66C</div>
|
||
<div class="code">&#xe68c;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE66B</div>
|
||
<div class="code">&#xe68d;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE68C</div>
|
||
<div class="code">&#xe68e;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE69F</div>
|
||
<div class="code">&#xe68f;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE65C</div>
|
||
<div class="code">&#xe690;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE71F</div>
|
||
<div class="code">&#xe691;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE70A</div>
|
||
<div class="code">&#xe692;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE73D</div>
|
||
<div class="code">&#xe693;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE75C</div>
|
||
<div class="code">&#xe694;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE75D</div>
|
||
<div class="code">&#xe695;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE607</div>
|
||
<div class="code">&#xe696;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE604</div>
|
||
<div class="code">&#xe697;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE628</div>
|
||
<div class="code">&#xe698;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE6E3</div>
|
||
<div class="code">&#xe699;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE644</div>
|
||
<div class="code">&#xe69a;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE646</div>
|
||
<div class="code">&#xe69b;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE74A</div>
|
||
<div class="code">&#xe69c;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE651</div>
|
||
<div class="code">&#xe69d;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE645</div>
|
||
<div class="code">&#xe69e;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE657</div>
|
||
<div class="code">&#xe69f;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE665</div>
|
||
<div class="code">&#xe6a0;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE668</div>
|
||
<div class="code">&#xe6a1;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE663</div>
|
||
<div class="code">&#xe6a2;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE667</div>
|
||
<div class="code">&#xe6a3;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE669</div>
|
||
<div class="code">&#xe6a4;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE679</div>
|
||
<div class="code">&#xe6a5;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE686</div>
|
||
<div class="code">&#xe6a6;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE684</div>
|
||
<div class="code">&#xe6a7;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE691</div>
|
||
<div class="code">&#xe6a8;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE720</div>
|
||
<div class="code">&#xe6a9;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE708</div>
|
||
<div class="code">&#xe6aa;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE731</div>
|
||
<div class="code">&#xe6ab;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE661</div>
|
||
<div class="code">&#xe6ac;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE739</div>
|
||
<div class="code">&#xe6ad;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE78B</div>
|
||
<div class="code">&#xe6ae;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE761</div>
|
||
<div class="code">&#xe6af;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE741</div>
|
||
<div class="code">&#xe6b0;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE758</div>
|
||
<div class="code">&#xe6b1;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE791</div>
|
||
<div class="code">&#xe6b2;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">uniE769</div>
|
||
<div class="code">&#xe6b3;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">bing</div>
|
||
<div class="code">&#xe6b4;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">sakura-black</div>
|
||
<div class="code">&#xe6b5;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">pixiv-gray</div>
|
||
<div class="code">&#xe6b6;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">gear</div>
|
||
<div class="code">&#xe6b7;</div>
|
||
</li>
|
||
|
||
<li>
|
||
<i class="icon iconfont"></i>
|
||
<div class="name">dots</div>
|
||
<div class="code">&#xe6b8;</div>
|
||
</li>
|
||
|
||
</ul>
|
||
<h2 id="unicode-">unicode引用</h2>
|
||
<hr>
|
||
|
||
<p>unicode是字体在网页端最原始的应用方式,特点是:</p>
|
||
<ul>
|
||
<li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
|
||
<li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
|
||
<li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
|
||
</ul>
|
||
<blockquote>
|
||
<p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
|
||
</blockquote>
|
||
<p>unicode使用步骤如下:</p>
|
||
<h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
|
||
<pre><code class="lang-js hljs javascript">@font-face {
|
||
font-family: <span class="hljs-string">'iconfont'</span>;
|
||
src: url(<span class="hljs-string">'iconfont.eot'</span>);
|
||
src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
|
||
url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
|
||
url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
|
||
url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
|
||
}
|
||
</code></pre>
|
||
<h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
|
||
<pre><code class="lang-js hljs javascript">.iconfont{
|
||
font-family:<span class="hljs-string">"iconfont"</span> !important;
|
||
font-size:<span class="hljs-number">16</span>px;font-style:normal;
|
||
-webkit-font-smoothing: antialiased;
|
||
-webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
</code></pre>
|
||
<h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
|
||
<pre><code class="lang-js hljs javascript"><i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>>&#x33;<span class="xml"><span class="hljs-tag"></<span class="hljs-name">i</span>></span></span></code></pre>
|
||
|
||
<blockquote>
|
||
<p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
|
||
</blockquote>
|
||
</div>
|
||
|
||
|
||
</body>
|
||
</html>
|