字体很棒,没有出现在IE和mozila中 [英] Font awesome not appear in IE and mozila

查看:84
本文介绍了字体很棒,没有出现在IE和mozila中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:LinkButton 

	runat="server" 

	ID="btnRun" 

	ToolTip="Large String" 

	OnClick="btnRun_Click" 

	Text="<i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>"





什么我试过了:





我在我的页面中使用了字体awsome图标它已经适用于Chrome只有IE和Mozila没有出现我不知道为什么你能分享你的解决方案如果你正面对这个问题



What I have tried:


I have used Font awsome icon in my page it has been working fine for Chrome only but IE and Mozila is not appear i dont know why can you please share your solution if you are Facing this issuse

推荐答案

以下标记显示铅笔图标在网络浏览器

The following markup displays the pencil icon in the web browser
<asp:LinkButton
    runat="server"
    ID="btnRun"
    ToolTip="Large String"
    OnClick="btnRun_Click"
    Text='<i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>'>
</asp:LinkButton>

<asp:LinkButton
    runat="server"
    ID="btnRunA"
    ToolTip="Large String"
    OnClick="btnRun_Click">
    <i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>
</asp:LinkButton>

在chrome,firefox和Internet Explorer(11)中测试过。<请注意第一个asp:LinkBut​​ton中的Text属性是如何使用单引号的。

和第二个asp:LinkBut​​ton没有使用Text属性。



使用Font Awesome 4.3.0

Tested in chrome, firefox and internet explorer (11).

Note how in the first asp:LinkButton the Text attribute is using single quotes.
And the second asp:LinkButton is not using the Text attribute.

Using Font Awesome 4.3.0


这篇关于字体很棒,没有出现在IE和mozila中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆