html - Unicode 中的软连字符不呈现

标签 html css web unicode html-entities

我创建了一组 CSS 实用程序,用于将 html 实体渲染为图标,其中大部分都在渲染。

我在使用软连字符实用程序时遇到问题。它根本没有渲染。这是代码(我将它放在版权标志旁边,只是为了对比而呈现):

    .u-icon-soft-hyphen::before {
        content: '\000AD' !important;
    }

    .u-icon-copyright-sign::before {
        content: '\000A9' !important;
    }

This is the test .如果您搜索 u-icon-soft-hyphen,您将看到它没有呈现。

想法?

最佳答案

软连字符不应该像那样按需显示。来自 Wikipedia :

[The soft hyphen] serves as an invisible marker used to specify a place in text where a hyphenated break is allowed without forcing a line break in an inconvenient place if the text is re-flowed. It becomes visible only after word wrapping at the end of a line.

关于html - Unicode 中的软连字符不呈现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54542028/

相关文章:

html - 两个自动宽度的 flexbox 列,只有一个可以换行

html - Internet Explorer 8 在 :hover 上产生奇怪的 CSS 错误

c# - 如何为元素设置值?

html - 最小化文本框在 html 中的尺寸非常大。它没有响应

html - Div 底部的边框,没有填充或边距

php - 如何将选择表值存储为 php 以在 sql 查询中使用

javascript - 如何创建一个在单击时在两个值之间翻转的元素?

html - 使用 CSS 和 HTML 在文本之间添加 div 容器

javascript - 动态添加图像的媒体查询

html - 如何在外部元素中触发悬停操作