将引导程序图标添加到按钮

sho*_*a T 4 html css twitter-bootstrap

我有以下代码,里面有带有文本的按钮,我想向按钮添加来自引导程序的图标(在文本的左侧),我应该怎么做?

图标是 glyphicon glyphicon-plus

<div style="margin-top: 20px">
    <p>
        @Html.ActionLink("New", "Create",
        null new { @class = "Button", @style = "float:right" })
    </p>    
</div> 
<br />
<style type="text/css">
        .CreateButton {
            background: blue
;
            color: white;
            padding: 4px 10px 4px 10px;
            height: 30px;
            width: 60px;
        }


    </style>
<br />
Run Code Online (Sandbox Code Playgroud)

Gag*_*ami 7

您可以使用按钮标签代替输入

<button type="submit" class="btn btn-primary">
  <i class="icon-user icon-white"></i> Sign in
</button>
Run Code Online (Sandbox Code Playgroud)