<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ Unicode - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ freeCodeCamp 是一个免费学习编程的开发者社区，涵盖 Python、HTML、CSS、React、Vue、BootStrap、JSON 教程等，还有活跃的技术论坛和丰富的社区活动，在你学习编程和找工作时为你提供建议和帮助。 ]]>
        </description>
        <link>https://www.freecodecamp.org/chinese/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ Unicode - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/chinese/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Sun, 10 May 2026 13:50:28 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/chinese/news/tag/unicode/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ HTML 箭头——单箭头、双箭头、左箭头和右箭头的 Unicode 符号 ]]>
                </title>
                <description>
                    <![CDATA[ 原文：HTML Arrow – Symbol Unicode for Single and Double Arrows, Left and Right Arrows [https://www.freecodecamp.org/news/html-arrow-symbol-unicode-for-single-and-double-arrows-left-and-right-arrows/] ，作者：Dillion Megida [https://www.freecodecamp.org/news/author/dillionmegida/] Unicode 是什么 Unicode 是代表不同事物的通用字符。这些可以是符号、字符、脚本以及更多形式的字符组合。 许多平台（移动和网络）采用 Unicode 来使字符随处可用。 为什么 Unicode 有用 Unicode 很有用，因为它们为跨不同系统和语言的字符表示提供了标准。 Unicode 还表示 ASCII [https://en.wikipedia.org/wiki/ASCII]  中不可用的特殊字符，并帮助我们在各种平台上创 ]]>
                </description>
                <link>https://www.freecodecamp.org/chinese/news/html-arrow-symbol-unicode-for-single-and-double-arrows-left-and-right-arrows/</link>
                <guid isPermaLink="false">62c7e434d6500f07f8cea167</guid>
                
                    <category>
                        <![CDATA[ Unicode ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Chengjun.L ]]>
                </dc:creator>
                <pubDate>Thu, 07 Jul 2022 02:00:00 +0000</pubDate>
                <media:content url="https://chinese.freecodecamp.org/news/content/images/2022/07/unicode-for-arrows.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>原文：<a href="https://www.freecodecamp.org/news/html-arrow-symbol-unicode-for-single-and-double-arrows-left-and-right-arrows/">HTML Arrow – Symbol Unicode for Single and Double Arrows, Left and Right Arrows</a>，作者：<a href="https://www.freecodecamp.org/news/author/dillionmegida/">Dillion Megida</a></p><h2 id="unicode-">Unicode 是什么</h2><p>Unicode 是代表不同事物的通用字符。这些可以是符号、字符、脚本以及更多形式的字符组合。</p><p>许多平台（移动和网络）采用 Unicode 来使字符随处可用。</p><h2 id="-unicode-">为什么 Unicode 有用</h2><p>Unicode 很有用，因为它们为跨不同系统和语言的字符表示提供了标准。</p><p>Unicode 还表示 <a href="https://en.wikipedia.org/wiki/ASCII">ASCII</a> 中不可用的特殊字符，并帮助我们在各种平台上创建一致的字符显示。</p><p>你还可以像处理其他字符一样对它应用样式（颜色、大小）。</p><h2 id="-html-unicode">如何在 HTML 中使用 Unicode</h2><p>你可以通过两种方式编写大多数 Unicode 符号：使用十六进制引用或使用实体名称。</p><p>十六进制引用通常难以阅读，但实体名称通常用于描述你要编写的 Unicode 符号。</p><p>对于十六进制数，你将它们写在 <code>&amp;#</code> （与号和数字符号）和 <code>;</code>（分号）之间，像这样：</p><pre><code class="language-html">&amp;#[NUMBER];
</code></pre><p>对于实体名称，你将它们写在 <code>&amp;</code> 和 <code>;</code> 之间，像这样：</p><pre><code class="language-html">&amp;[ENTITY];
</code></pre><p>这种语法是必要的，以便 HTML 理解你正在编写的字符不仅仅是文本，而是 Unicode 符号。</p><h2 id="-unicode">单箭头和双左右箭头的 Unicode</h2><p>现在我们已经简要了解了 Unicode 是什么以及如何在 HTML 中使用它，让我们看一些示例。</p><p>你可以在 HTML 中使用许多具有 Unicode 的符号。在本文中，我将分享四个箭头符号的示例。</p><p>有不同的箭头符号和 Unicode 值。此处使用的箭头只是示例。</p><h3 id="-"><strong>左箭头</strong></h3><p>对于单个左箭头：</p><p>十六进制引用为 <strong>8592</strong>，实体名称为 <strong><strong>larr</strong></strong>。在 HTML 中，我们会这样写：</p><pre><code class="language-html">&amp;#8592;
&lt;!-- or --&gt;
&amp;larr;
</code></pre><p>这段代码将在页面上打印：</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2022/06/image-100.png" class="kg-image" alt="image-100" width="600" height="400" loading="lazy"></figure><p>对于双左箭头：</p><p>十六进制引用为 <strong>8647</strong>，实体名称为 <strong>llarr</strong>，写为：</p><pre><code class="language-html">&amp;#8647;
&lt;!-- or --&gt;
#llarr
</code></pre><p>这段代码将显示：</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2022/06/image-99.png" class="kg-image" alt="image-99" width="600" height="400" loading="lazy"></figure><h3 id="--1"><strong>右箭头</strong></h3><p>对于单个右箭头：</p><p>十六进制引用是 <strong>8594</strong>，实体名称是 <strong>rarr</strong>，写法如下：</p><pre><code class="language-html">&amp;#8594;
&lt;!-- or --&gt;
&amp;rarr;
</code></pre><p>显示为：</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2022/06/image-98.png" class="kg-image" alt="image-98" width="600" height="400" loading="lazy"></figure><p>对于双右箭头：</p><p>十六进制引用为 <strong>8649</strong>，实体名 <strong>rrarr</strong>，代码为：</p><pre><code class="language-html">&amp;#8649;;
&lt;!-- or --&gt;
#rrarr
</code></pre><p>结果是：</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2022/06/image-101.png" class="kg-image" alt="image-101" width="600" height="400" loading="lazy"></figure><p>你可以使用 Unicode 表示在 HTML 中打印许多其他符号。正如我在本文中向你展示的那样，你可以使用十六进制引用或符号的实体名称。</p> ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
