是否有一个信息图标的 HTML 实体?

我正在寻找一个基本的信息图标像这样:

137937 次浏览

After some more searching, I myself have found the entity. The code for it is ⓘ, and it looks like this: ⓘ

There's 🛈 (U+1F6C8, CIRCLED INFORMATION SOURCE). As an HTML entity: 🛈.


There are plenty of tools, many online, that let you search for, and get more information about, Unicode characters. My personal favourite is this one.

this may help you , using html and css we can achieve this results

<!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">&#x1F6C8;
<span class="tooltiptext">Tooltip text</span>
</div>






</body>
</html>

UNICODE U+02139

HEX CODE &#x2139;

HTML CODE &#8505;

CSS CODE \2139

// css example
span {
content: "\2139";
}
HTML Example


<span>&#8505;</span>

Source

Use the unicode: &#9432; into the HTML.

These days I use emoji for "info" ℹ️ or "documentation" 📄 or "source" 📚

Previously, I would put the ⓘ inside superscript because it reflects that it is a footnote to the text.

<sup>&#9432;</sup>

Also, consider the ☰ symbol over the 🛈 as it respects the baseline.

HTML Code: &#8505;

CSS Code: \2139

enter image description here

Use tailwind CSS (https://tailwindcss.com/) then the code below will create a nice info button.

<div class="flex items-center justify-center italic
text-stone-500 cursor-default w-5 h-5
rounded-full border border-gray-500 bg-green-100">
i
</div>