私はに:でFontAwesomeを使用しています。それはクロムでは問題なく動作しますが、IEでは動作しません。上記のコードでFontAwesome in span:
<label><span class="sptxt">Hello</span></label>
.sptxt:after{
font-family: FontAwesome;
content: "\ea28";
text-decoration: inherit;
position: absolute;
font-size: 80px;
color: inherit;
margin: 0px 0 0 4px;
z-index: 1;
visibility: visible;
}
.sptxt{visibility:hidden;}
、私はスパンにテキスト"こんにちは"を隠したいです。 FontAwesomeアイコンをスパンに表示する必要があります。 「こんにちは」の単語をFontAwesomeのアイコンに置き換えます。 Chromeでは期待通りに動作しますが、ではなく、では動作しません。