【发布时间】:2016-02-26 00:02:37
【问题描述】:
我正在寻找这样的基本信息图标:
【问题讨论】:
-
答案有点晚了,但你可以使用 Font-Awesome,有很多图标。 fortawesome.github.io/Font-Awesome 你只需用 fa-info-circle 标记你的 css
标签: html unicode html-entities
我正在寻找这样的基本信息图标:
【问题讨论】:
标签: html unicode html-entities
经过一番搜索,我自己找到了该实体。它的代码是ⓘ,它看起来像这样:ⓘ
【讨论】:
🛈 ℹ 和 ⓘ html 实体将为您提供信息按钮。
有?(U+1F6C8,圆圈信息源)。作为 HTML 实体:🛈。
有很多工具,很多是在线的,可让您搜索并获取有关 Unicode 字符的更多信息。我个人最喜欢的是this one。
【讨论】:
p::before { content: "\1f6c8"; } 我需要它。顺便说一句,仅在 Win10 上的 Chrome 中进行测试。
这可能对你有帮助, 使用html和css我们可以达到这个效果
<!DOCTYPE html>
<html>
<style>
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
/* Position the tooltip */
position: absolute;
z-index: 1;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
</style>
<body style="text-align:center;">
<div class="tooltip">🛈
<span class="tooltiptext">Tooltip text</span>
</div>
</body>
</html>
【讨论】:
UNICODE U+02139
十六进制代码&#x2139;
HTML代码&#8505;
CSS代码\2139
// css example
span {
content: "\2139";
}
HTML Example
<span>ℹ</span>
【讨论】:
在 HTML 中使用 unicode:&#9432;。
【讨论】:
这些天我用表情符号表示“信息”ℹ️或“文档”?或“来源”?
以前,我会将 ⓘ 放在上标 ⓘ 内,因为它反映了它是文本的脚注。
<sup>&#9432;</sup>
此外,考虑 ? 上方的 ☰ 符号,因为它尊重基线。
【讨论】: