Css unicode 显示空白矩形

标签 css unicode

我是这样写的:

.Class{
   Content: 'f0e8'
}

但它向我显示了一个空白矩形而不是我想要的图标 有人知道为什么吗?

最佳答案

您只能在::after 和::before 伪元素中使用“content”。 尝试:

div::before {
  content: '\2193';
}

关于Css unicode 显示空白矩形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45283533/

相关文章:

javascript - header 元素未对齐

css - 在 Squarespace 上交换移动 View 的文本 block 顺序

string - 如何通过正则表达式 3 和 4 字节 UTF-8 进行匹配

c# - WCF 和 Delphi - 我应该使用 bytes[] 还是字符串?

python - 阿拉伯语 - Python 2.7 中的 UnicodeDecodeError

html - Canvas 菜单定位

iframe - 是否可以从 iframe 中检测父级上的滚动?

CSS 选择器效率

html - 不同大小的 Unicode 三角形

html - css::before attr() 和 unicode