如何将字形图标添加到我的 HTML 页面标题中?
How do I add a glyphicon into my HTML page title?
我正在考虑在我的页面标题中添加一个字形图标(不是网站图标)。我试过 <title>Portal - <span class="glyphicon glyphicon-globe"> Network</span></title>
但它只是将 <span>
元素显示为纯文本。
我相信你只能在 <title>
标签中添加 unicode 符号和表情符号。
It can only contain text, and any contained tags are ignored.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title
我正在考虑在我的页面标题中添加一个字形图标(不是网站图标)。我试过 <title>Portal - <span class="glyphicon glyphicon-globe"> Network</span></title>
但它只是将 <span>
元素显示为纯文本。
我相信你只能在 <title>
标签中添加 unicode 符号和表情符号。
It can only contain text, and any contained tags are ignored.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title