我应该如何放置 fontawesome 图标I.E
`<i class="fa fa-info" aria-hidden="true"></i>
`在下面的" info"的地方。html
以下是我的javascript
dlg.innerHTML = "<span class='alert-headingg'>Info<" + "/span>";
尝试一下,您必须将图标元素放在跨度内。
dlg.innerHTML = "<span class='alert-headingg'><i class="fa fa-info" aria-hidden="true"></i></span>";
<i class="icon-github"></i>
div.github:before
{
content: "f09b";
font-family: FontAwesome;
}