小编all*_*nce的帖子

如何在ASP.Net中的asp:Button中放置Bootstrap Glyphicon?

我在我的项目中使用Bootstrap 3,我想在ASP.net按钮中使用Bootstrap Glyphicons.

这是我使用的代码,虽然它没有成功(我得到了一个使用Twitter Bootstrap <span>标签而不是<i>标签的示例):

<asp:Button ID="btnRandom"
    runat="server"
    Text="<span aria-hidden='true'
        class='glyphicon glyphicon-refresh'>
        </span>"
    onclick="btnRandom_Click" />
Run Code Online (Sandbox Code Playgroud)

也许应该做一些额外的事情.

我怎样才能让它发挥作用?在此先感谢您的回复.

html asp.net button aspbutton twitter-bootstrap

50
推荐指数
3
解决办法
9万
查看次数

标签 统计

asp.net ×1

aspbutton ×1

button ×1

html ×1

twitter-bootstrap ×1